dotnet / dotnet/sdk

Allow to parametrize IdentifiersShouldNotMatchKeywords rule with exceptions

Open
#54,152 0 comments 0 reactions 0 assignees View on GitHub
untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

In our _legacy_ codebase we use some common terms like "Readonly", in number of locations, and this is common terminology used by our project and our customers.

While we would like to enable IdentifiersShouldNotMatchKeywords rule, we would like to add couple exceptions in our .editorconfig, not to poison the whole codebase with `#pragma warning disable CA1716` followed by `#pragma warning enable CA1716`

### Describe the solution you'd like
Respect some property in .editorconfig with comma-separated list of keywords to bypass validation. Maybe have an optional extra list to add to validation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.