Added IDE analyzers checks and enabled certain checks#8336
Merged
MichalPavlik merged 12 commits intodotnet:mainfrom Jan 26, 2023
Merged
Added IDE analyzers checks and enabled certain checks#8336MichalPavlik merged 12 commits intodotnet:mainfrom
MichalPavlik merged 12 commits intodotnet:mainfrom
Conversation
0b809ad to
de9558d
Compare
JanKrivanek
approved these changes
Jan 23, 2023
Member
JanKrivanek
left a comment
There was a problem hiding this comment.
Overall I love this!
I just want to have extra caution around the license header
4a9dc2c to
67bfb7d
Compare
AR-May
approved these changes
Jan 26, 2023
…les to suggestion
manually fixed unresolvable cases
…tch the required text
clarified CTA on how to bypass the error
a489431 to
83fd3ba
Compare
Merged
rainersigwald
added a commit
to rainersigwald/msbuild
that referenced
this pull request
Jan 26, 2023
Recent changes dotnet#8336 and dotnet#8350 collided to produce a build break on just-introduced formatting.
rainersigwald
added a commit
that referenced
this pull request
Jan 26, 2023
Forgind
reviewed
Feb 6, 2023
| dotnet_diagnostic.IDE0005.severity = warning | ||
|
|
||
| # Use explicit type instead of 'var' | ||
| dotnet_diagnostic.IDE0008.severity = suggestion |
Contributor
There was a problem hiding this comment.
built-in: suggestion
apparent: suggestion
everything else: warning
Member
rainersigwald
left a comment
There was a problem hiding this comment.
Comments from core team discussion.
| dotnet_diagnostic.IDE0008.severity = suggestion | ||
|
|
||
| # Populate switch | ||
| dotnet_diagnostic.IDE0010.severity = suggestion |
| dotnet_diagnostic.IDE0010.severity = suggestion | ||
|
|
||
| # Null check can be simplified | ||
| dotnet_diagnostic.IDE0016.severity = suggestion |
Member
There was a problem hiding this comment.
leave suggestion, but open to moving to warning if an autofixer is available
| dotnet_diagnostic.IDE0016.severity = suggestion | ||
|
|
||
| # Object initialization can be simplified | ||
| dotnet_diagnostic.IDE0017.severity = suggestion |
| dotnet_diagnostic.IDE0017.severity = suggestion | ||
|
|
||
| # Variable declaration can be inlined | ||
| dotnet_diagnostic.IDE0018.severity = suggestion |
| dotnet_diagnostic.IDE0018.severity = suggestion | ||
|
|
||
| # Use pattern matching | ||
| dotnet_diagnostic.IDE0019.severity = suggestion |
| dotnet_diagnostic.IDE0041.severity = suggestion | ||
|
|
||
| # Variable declaration can be deconstructed | ||
| dotnet_diagnostic.IDE0042.severity = suggestion |
| dotnet_diagnostic.IDE0042.severity = suggestion | ||
|
|
||
| # Made field readonly | ||
| dotnet_diagnostic.IDE0044.severity = suggestion |
Comment on lines
+280
to
+281
| dotnet_diagnostic.IDE0045.severity = suggestion | ||
| dotnet_diagnostic.IDE0046.severity = suggestion |
| dotnet_diagnostic.IDE0046.severity = suggestion | ||
|
|
||
| # Parentheses can be removed | ||
| dotnet_diagnostic.IDE0047.severity = suggestion |
| # Parentheses can be removed | ||
| dotnet_diagnostic.IDE0047.severity = suggestion | ||
|
|
||
| # Parentheses should be added for clarity |
Member
There was a problem hiding this comment.
***** start here for follow up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #7174
Context
While working in the repo different code style issues are observed
Changes Made
warning, set the rules that are currently violated tosuggestionAll the work was done in separate commits to facilitate easier review.
Testing
Notes
The following checks to be added to #7174 to be gradually fixed: