empty-section
What it does
Section titled “What it does”Reports a [section] header with no settings under it. Comments do not count as settings.
Why it matters
Section titled “Why it matters”It usually is what is left when the last setting of a section was removed. A reader of the file wonders if the section matters, and some programs treat an empty section differently from a missing one.
To fix, delete the header, or add the setting.
Example
Section titled “Example”[core]bare = false
[empty]
[comment-only]; nothing here
[user]...Configuration
Section titled “Configuration”ini: lint: rules: empty-section: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line empty-section in a comment of the file’s language.