-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect column reported by max-line-length #2286
Labels
Comments
Fantastic sleuthing @m-allanson 👍 Can you add a test or tests for that code (or similar) you have in the Extra example above, it'd be great to ensure that that issue is also sorted in the resolution of this issue |
davidtheclark
pushed a commit
that referenced
this issue
Jan 28, 2017
davidtheclark
pushed a commit
that referenced
this issue
Jan 28, 2017
davidtheclark
pushed a commit
that referenced
this issue
Jan 28, 2017
sergesemashko
pushed a commit
to sergesemashko/stylelint
that referenced
this issue
Mar 3, 2017
* Add a failing test for issue stylelint#2286 * Fix max-line-length column number for lines with urls Closes stylelint#2286
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A bug where
max-line-length
will report an incorrect column number.max-line-length
7.7.1
(actually
master@3183227
, but I don't think that makes a difference)CLI
No
A warning to be flagged, with the column indicating the end of the line:
The following warning was flagged, listing an incorrect column number.
Cause
The rule ignores long urls by replacing
url('some ignored url')
withurl()
before checking the line length.If a line is still longer than the min length, the reported column number will be at the end of the line minus the
url
value:instead of the end of the line including the url
value
:Note that this bug is only triggered on lines that are still longer than
max-line-length
after theurl
value has been replaced.Extra example
This issue can also cause errors to be reported on incorrect lines. The following CSS will report two errors on line 1, instead of an error on each line.
The text was updated successfully, but these errors were encountered: