Skip to content

unknown-property

INI / EditorConfig / .gitignorecorrectnessno fixdefault: warn

Reports a property name that is not an EditorConfig or .NET property (dotnet_*, csharp_*, visual_basic_*, naming rules, dotnet_diagnostic.<ID>.severity) but is one typo away from one. Names of other tools (resharper_*, ij_*) are not reported. The option strict also reports dotnet_*, csharp_* and visual_basic_* names that are close to no known property. The known names are in crates/lang-editorconfig/data/properties.txt.

A misspelled property is not an error to an editor, which ignores what it does not know, so the setting silently does nothing and a reader assumes it works.

To fix, correct the name; the message names the closest one.

Reported
[*.cs]
indent_syle = space
INDENT_STYLE = space
dotnet_style_qualification_for_feild = false:suggestion
csharp_new_line_befor_open_brace = all
dotnet_diagnostic.CA1000.sevrity = none
dotnet_naming_rule.types.symbol = types
dotnet_diagnostic.CA1000.severity = none
dotnet_naming_style.pascal.capitalization = pascal_case
resharper_apply_auto_detected_rules = false
...
editorconfig:
lint:
rules:
unknown-property:
level: warn # off, warn (default), error
options:
strict: false
Option Type Default Description
strict bool false Also report dotnet_*, csharp_* and visual_basic_* names that are close to no known property (the list may lag behind new .NET options).

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