Skip to content

False positive in Microsoft.Spacing rule #68

@bdovaz

Description

@bdovaz

In the technical documentation for the team, we have links in markdown such as:

[My.Project](My.Project.csproj)

And errors such as the following appear:

 8:28   error  'o.L' should have one space.    Microsoft.Spacing 
 8:36   error  'e.S' should have one space.    Microsoft.Spacing 
 8:43   error  'r.A' should have one space.    Microsoft.Spacing 
 17:17  error  'o.L' should have one space.    Microsoft.Spacing 
 17:25  error  'e.S' should have one space.    Microsoft.Spacing 
 17:32  error  'r.A' should have one space.    Microsoft.Spacing 
 31:9   error  'o.L' should have one space.    Microsoft.Spacing 
 31:17  error  'e.S' should have one space.    Microsoft.Spacing 
 31:24  error  'r.N' should have one space.    Microsoft.Spacing

Options:

  • Do not apply the rule to links?
  • Detect that if there is only one word between the dots and in that case don't apply the rule? I suppose this option will be more difficult because I think the rules are executed with regex, and I don't know if it's possible with regex to match this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions