no-duplicate-sections
all languagescorrectnessno fixdefault: warn
What it does
Section titled “What it does”Reports a section that has the same name as an earlier section of the file (INI and EditorConfig: the section header, for EditorConfig the glob).
Why it matters
Section titled “Why it matters”Readers of the format handle repeated sections in different ways: some merge them, some keep only the last, so the settings of one of them may be lost or applied in an order that is hard to see.
To fix, merge the two sections into one.
Example
Section titled “Example”...[*.vb]indent_size = 2
[*.cs]tab_width = 4[*.CS]tab_width = 4Configuration
Section titled “Configuration”lint: rules: no-duplicate-sections: warn # off, warn (default), errorSuppress one line with sudsy-disable-next-line no-duplicate-sections in a comment of the file’s language.