You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be called "Foo`1.cs" (assuming fileNamingConvention = "metadata" in stylecop.json). Yet SA1649 (File name should match first type name) is triggered unless the file name is "Foo.cs".
Things start going downhill fast if you have multiple Foo<> delegates:
Now the two delegate types cannot be in two separate files, as they should both be names "Foo.cs". However, keeping them both in "Foo.cs" triggers SA1402 (File may only contain a single type).
The possible workarounds are pretty obvious (either disable SA1402 in "Foo.cs", or disable SA1649 in all "Foo`{n}.cs" files) but this behavior of SA1649 still looks like a bug to me.
The text was updated successfully, but these errors were encountered:
A file containing this code:
should be called "Foo`1.cs" (assuming
fileNamingConvention = "metadata"
instylecop.json
). Yet SA1649 (File name should match first type name) is triggered unless the file name is "Foo.cs".Things start going downhill fast if you have multiple
Foo<>
delegates:Now the two delegate types cannot be in two separate files, as they should both be names "Foo.cs". However, keeping them both in "Foo.cs" triggers SA1402 (File may only contain a single type).
The possible workarounds are pretty obvious (either disable SA1402 in "Foo.cs", or disable SA1649 in all "Foo`{n}.cs" files) but this behavior of SA1649 still looks like a bug to me.
The text was updated successfully, but these errors were encountered: