System.IO.Abstractions.Analyzers icon indicating copy to clipboard operation
System.IO.Abstractions.Analyzers copied to clipboard

Bug: First line after comment is not flagged

Open shuebner opened this issue 9 months ago • 0 comments

Usage of static File is not flagged when it is the first non-empty code line after a comment:

Image

Reproduce:

  1. Write code that should be flagged (e. g. usage of static File)
  2. Observe that it is flagged
  3. Add a code comment with // above the flagged line, optionally add empty lines between

Expected Behavior: The code line is flagged.

Actual Behavior: The code line is no longer flagged

Remove the code comment and observe that the line is flagged again.

shuebner avatar Mar 31 '25 04:03 shuebner