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
csproj targets netstandard2.1 but with <Language>latest</Language>. Not sure if it's related to this problem.
SA1000 wants to add a space after target-typed new statements making them look like new (). All official examples show the new target-typed new syntax as new() without a space. SA1000 shouldn't suggest the space for target-typed new statements.
The text was updated successfully, but these errors were encountered:
ssg
changed the title
SA1000 ("'new' keyword should be followed by space") shouldn't be thrown for typeless new.
SA1000 ("'new' keyword should be followed by space") shouldn't be thrown for target-typed new.
Oct 10, 2021
ssg
changed the title
SA1000 ("'new' keyword should be followed by space") shouldn't be thrown for target-typed new.
SA1000 ("'new' keyword should be followed by space") shouldn't be thrown for target-typed new().
Oct 10, 2021
@lachezar-gizdov it seems likely that one way or another, an older version is still running. Probably best to file a new issue with a sample solution to reproduce the issue.
StyleCop.Analyzers 1.1.118.
csproj targets
netstandard2.1
but with<Language>latest</Language>
. Not sure if it's related to this problem.SA1000 wants to add a space after target-typed
new
statements making them look likenew ()
. All official examples show the new target-typed new syntax asnew()
without a space. SA1000 shouldn't suggest the space for target-typednew
statements.The text was updated successfully, but these errors were encountered: