inline-comment
What it does
Section titled “What it does”Reports a pattern line with a # after the pattern. Files of this syntax have no end-of-line comments: *.log # logs is a pattern for a file name with spaces and a #, which matches nothing. No fix.
Why it matters
Section titled “Why it matters”The line looks like a pattern with a comment, but the whole text is the pattern, so the files the author wants to ignore are not ignored.
To fix, put the comment on a line of its own above the pattern.
Example
Section titled “Example”*.log # logs# a # bname#xdist/Configuration
Section titled “Configuration”gitignore: lint: rules: inline-comment: warn # off, warn (default), errorSuppress one line with sudsy-disable-next-line inline-comment in a comment of the file’s language.