-
Notifications
You must be signed in to change notification settings - Fork 396
Fastuptodate should check analyzers, rulesets and editorconfigs #2374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We already do track analyzer references. |
Rulesets also are tracked as None input items. |
And how do editorconfig file affect the build? Don't just they affect the editor defaults? I don't see them show up anywhere in project files. |
Rulesets are not none items - they are specified by a codeanalysisruleset property. @jmarolf how are editorconfigs represented in the project? |
Never mind about the ruleset, I got confused by the test scenario I was looking at. |
There's work being done (not sure of the current state - @jasonmalinowski ?) to pass editorconfig to the compiler so that editorconfig can affect commandline build |
The ability to pass .editorconfig files to the compiler layer is targeted to 15.6. It's well underway but not yet completed. At that point they will be similar to rule set files in their ability to change the impact of analyzers on the build. |
Except that worse thing (looking at the last design I saw) is that .editorconfig's don't appear as items in the project. Not sure how we're supposed to be aware of them. |
dotnet/roslyn#19029 is tracking updating the project systems (both this one and the legacy one) for .editorconfig. And @davkean is correct that we'll have to do a bit of work here. |
@srivatsn Is code analysis working in .NET Core projects? I see #988 about the fact that the UI doesn't work, but when I set a CodeAnalysisRuleSet and turn on code analysis, I get a build error that the platform can't be identified. Wanted to make sure I wasn't doing something wrong, as would need to test this, obviously... |
FxCop doesn't work but ruleset files affect roslyn analyzers too which works for netcore. |
Original fix cause regressions, see referenced PRs |
|
Workaround for dotnet/project-system#2374 Workaround for dotnet/roslyn#25041
@drewnoakes I don't think I'm going to get to look at this soon. Is this something you could look at? |
Sure, I'll pick it up. |
A build should happen after changing :
The text was updated successfully, but these errors were encountered: