unknown-property
What it does
Section titled “What it does”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.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”[*.cs]indent_syle = spaceINDENT_STYLE = spacedotnet_style_qualification_for_feild = false:suggestioncsharp_new_line_befor_open_brace = alldotnet_diagnostic.CA1000.sevrity = nonedotnet_naming_rule.types.symbol = typesdotnet_diagnostic.CA1000.severity = nonedotnet_naming_style.pascal.capitalization = pascal_caseresharper_apply_auto_detected_rules = false...Configuration
Section titled “Configuration”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.