Skip to content

invalid-property-value

INI / EditorConfig / .gitignorecorrectnessno fixdefault: warn

Reports a known EditorConfig or .NET property that has a value it does not accept (indent_style = tabs, dotnet_diagnostic.CA1000.severity = high). Values are case-insensitive, unset is always valid, and .NET code-style options may end in :silent, :suggestion, :warning or :error, which formatting options may not. A trailing # comment is ignored. Unknown properties are not checked.

An editor ignores a value it does not know, so the setting silently has no effect (indent_style = tabs does not select tabs). The file looks right and the code is formatted another way.

To fix, use a value that the property accepts; the message names the closest one.

Reported
indent_style = tabs
indent_style = Tab
indent_size = four
indent_size = 4
indent_size = TAB
indent_size = 4 # four
indent_size = four ; words
indent_size = unset
tab_width =
max_line_length = off
charset = "utf-8-bom"
trim_trailing_whitespace = yes
end_of_line = LF
dotnet_diagnostic.CA1000.severity = high
dotnet_diagnostic.CA1000.severity = Warning
dotnet_style_qualification_for_field = maybe:suggestion
csharp_style_var_elsewhere = true:suggestoin
csharp_style_var_elsewhere = true:suggestion
csharp_new_line_before_open_brace = all
csharp_new_line_before_open_brace = methods, types
csharp_new_line_before_open_brace = methods, typs
csharp_new_line_before_else = true:suggestion
dotnet_naming_symbols.x.applicable_kinds = class, strukt
dotnet_code_quality.CA1822.api_surface = anything, goes
not_a_known_property = whatever
editorconfig:
lint:
rules:
invalid-property-value: warn # off, warn (default), error

Suppress one line with sudsy-disable-next-line invalid-property-value in a comment of the file’s language.