Skip to content

Add code fix to enforce analyzer extended rules #6133

Open

Description

We should add a code fix for SymbolIsBannedInAnalyzersAnalyzer for the following diagnostic:

// error RS1036: 'MyAnalyzer': A project containing analyzers or source generators should specify the editorconfig setting 'dotnet_code_quality.enforce_extended_analyzer_rules = true'.


It would be awesome if this supported a code fix that either creates or appends to an .editorconfig file and adds <%option%> = true entry. Can you file a tracking issue for adding this code fix in future?

Originally posted by @mavasani in #6115 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions