Description
Describe the bug
When using the EditorConfig template produced by dotnet new .editorconfig
I noticed that the applicable_kinds
for the type_parameters
naming symbol is set to namespace
instead of type_parameter
. This leads to type parameters being missed when attempting to enforce a naming convention.
To Reproduce
With your SDK version of choice (tested with both 8 and 9) run dotnet new .editorconfig
.
Within the produced .editorconfig
, locate the naming symbol for type parameters (dotnet_naming_symbols.type_parameters
) and inspect the value generated for applicable_kinds
, it should be namespace
.
Additional information
I didn't notice any existing issues/discussions surrounding having the incorrect kind, and it looks like the value has been namespace
since the initial creation of the template, but please let me know if there's some extra info on if it's intentional.
I'm also familiar with templates, so I'm more than happy to make the necessary changes if this becomes a confirmed issue since it's simply replacing the offending line with:
dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
Thanks in advance!
Activity
[-]Editorconfig template has `namespace` for `applicable_kinds` of `type_parameters` naming symbol[/-][+]EditorConfig template has `namespace` for `applicable_kinds` of `type_parameters` naming symbol[/+]daeghanelkin commentedon Feb 8, 2025
Based on the
CODEOWNERS
file, I believe this was mislabeled as Area-WebSDK and should instead use Area-Templates .