Skip to content

Pass along option to diagnostic analyzer.#48333

Merged
4 commits merged intodotnet:masterfrom
CyrusNajmabadi:addOption
Oct 6, 2020
Merged

Pass along option to diagnostic analyzer.#48333
4 commits merged intodotnet:masterfrom
CyrusNajmabadi:addOption

Conversation

@CyrusNajmabadi
Copy link
Contributor

Fixes #48327

THe option: null code was added in 5b6cee9. I can't really understand why though. Absent a good reason for this, this analyzer should behave the same as the rest of our analyzers. @mavasani do you know why you did things this way in that PR?

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner October 5, 2020 16:49
Copy link
Contributor

@mavasani mavasani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want to pass configurable: false or we want the analyzer diagnostic to allow configurable code style option?

@ghost
Copy link

ghost commented Oct 5, 2020

Hello @CyrusNajmabadi!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 12 minutes, a condition that will be fulfilled in about 6 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@CyrusNajmabadi
Copy link
Contributor Author

or we want the analyzer diagnostic to allow configurable code style option?

i think it should follow that option. if the user disables the option, we'd want the hints to go away. etc.

@mavasani
Copy link
Contributor

mavasani commented Oct 5, 2020

@CyrusNajmabadi there are test failures.

@ghost ghost merged commit a515efc into dotnet:master Oct 6, 2020
@ghost ghost added this to the Next milestone Oct 6, 2020
@Cosifne Cosifne modified the milestones: Next, 16.9.P1 Oct 12, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the addOption branch April 11, 2021 18:24
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer should pass the correct code style option

3 participants