non pascal_case constant not violating rule
- Dominant language
- No language data
- Stars
- 1.9k
- Forks
- 173
- Avg merge
- 10d 13h
- Merged PRs (30d)
- 1
Description
Given the following editor config
```
# top-most EditorConfig file
root = true
# Dotnet code style settings:
[*.{cs,vb}]
# IDE1006: Naming rule violation
dotnet_diagnostic.IDE1006.severity = error
# Constants are PascalCase
dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.required_modifiers = const
dotnet_naming_symbols.constants.applicable_accessibilities = *
dotnet_naming_style.constants_style.capitalization = pascal_case
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = constants_style
dotnet_naming_rule.constants_should_be_pascal_case.severity = error
```
and the following csharp code
```csharp
public class HasScopeHandler
{
private const string PERMISSIONS_TYPE = "permissions";
}
```
I would expect to see a violation when running `dotnet format --verify-no-changes`, but I don't.
If I change the `capitalization` to `camel_case`, then I receive an error so it must be picking up the rule.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.