no-duplicate-pattern
What it does
Section titled “What it does”Reports a pattern that appears twice with no opposite pattern (!x for x) between the two, on the second.
Why it matters
Section titled “Why it matters”The second pattern changes nothing. It is a copy and paste leftover that makes the file longer, and a reader looks for what it adds.
To fix, delete the second pattern.
Example
Section titled “Example”*.logbuild/*.log!keep.log!keep.log*.tmp!*.tmp*.tmpConfiguration
Section titled “Configuration”gitignore: lint: rules: no-duplicate-pattern: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line no-duplicate-pattern in a comment of the file’s language.