Closed CodingBeagle closed 2 days ago
Using StyleCop.Analyzers version 1.2.0-beta.556 with the following PackageReference:
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference>
It appears that I get false positives when using file scoped namespaces? Example, given the following declaration at the top of a class:
namespace My.Example.Namespace;
I get the following error: "A syntax error has been discovered in file '...' [StyleCop Rule: SA0102]"
SA0102 is never reported by this analyzer package. It looks like you are also using StyleCop "Classic" somehow and that one is reporting the error you are seeing.
Using StyleCop.Analyzers version 1.2.0-beta.556 with the following PackageReference:
It appears that I get false positives when using file scoped namespaces? Example, given the following declaration at the top of a class:
namespace My.Example.Namespace;
I get the following error: "A syntax error has been discovered in file '...' [StyleCop Rule: SA0102]"