We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.editorconfig
I want to define a rule where I can define C style #define naming rules. For example the following examples are acceptable by my style
#define
const string HELLO_WORLD = "Hello World!"; const string HELLO = "Hello World!";
But with my default .editorconfig setup I get the following diagnostic:
Diagnostics: Remove the underscores from member name pmtk.Models.prline.HELLO_WORLD [CA1707]
Thus I have defined a new editorconfig rule:
# Custom Naming Style for const string values to mimic C style #define formatting dotnet_naming_style.c_style_define.capitalization = all_upper dotnet_naming_style.c_style_define.required_prefix = dotnet_naming_style.c_style_define.required_suffix = dotnet_naming_style.c_style_define.word_separator = _ # Symbol specification for const string fields dotnet_naming_symbols.const_string_fields.applicable_kinds = field dotnet_naming_symbols.const_string_fields.applicable_accessibilities = public, private, protected, internal dotnet_naming_symbols.const_string_fields.required_modifiers = const # Naming rule for const string fields to follow C style #define formatting dotnet_naming_rule.const_strings_c_style.severity = error dotnet_naming_rule.const_strings_c_style.symbols = const_string_fields dotnet_naming_rule.const_strings_c_style.style = c_style_define
But this does not seem to work.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to define a rule where I can define C style
#define
naming rules. For example the following examples are acceptable by my styleBut with my default
.editorconfig
setup I get the following diagnostic:Thus I have defined a new editorconfig rule:
But this does not seem to work.
The text was updated successfully, but these errors were encountered: