Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add option to filter diagnostics by id - #1007

#1007
Merged
JoeRobich merged 3 commits into
dotnet:masterdotnet/format:masterfrom
JoeRobich:add-diagnostics-filterJoeRobich/format:add-diagnostics-filterCopy head branch name to clipboard
Feb 26, 2021
Merged

Add option to filter diagnostics by id#1007
JoeRobich merged 3 commits into
dotnet:masterdotnet/format:masterfrom
JoeRobich:add-diagnostics-filterJoeRobich/format:add-diagnostics-filterCopy head branch name to clipboard

Conversation

@JoeRobich

Copy link
Copy Markdown
Member

Resolves #1006

Comment thread src/FormatCommand.cs
},
new Option(new[] { "--diagnostics" }, Resources.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues)
{
Argument = new Argument<string[]>(() => Array.Empty<string>())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would like it if we could provide a helpful message if this option is provide and we are not in a --fix-stlye or --fix-analyzers mode

@JoeRobich
JoeRobich force-pushed the add-diagnostics-filter branch from 4b40a17 to ed79a06 Compare February 26, 2021 16:43
@JoeRobich
JoeRobich merged commit d4bedaf into dotnet:master Feb 26, 2021
@JoeRobich
JoeRobich deleted the add-diagnostics-filter branch March 5, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to filter diagnostics being fixed by specifying a list of diagnostic ids

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.