Skip to content

Conversation

@epriestley
Copy link
Contributor

Summary: Currently, there's no way to determine which rule generated a lint
message if you have a parser on top of CSSLint. Provide a rule attribute
which has the rule ID.

(The specific motivating use case is that I have a program which runs multiple
linters, manages lint message severity above the linter level, and has more
severity levels than CSSLint itself does, so using flags like --ignore would
require special casing and reduce flexibility.)

Test Plan: Added new test coverage and executed unit tests.

Summary: Currently, there's no way to determine which rule generated a lint
message if you have a parser on top of CSSLint. Provide a `rule` attribute
which has the rule ID.

(The specific motivating use case is that I have a program which runs multiple
linters, manages lint message severity above the linter level, and has more
severity levels than CSSLint itself does, so using flags like `--ignore` would
require special casing and reduce flexibility.)

Test Plan: Added new test coverage and executed unit tests.
@joshuaspence
Copy link

+1

@nschonni nschonni added this to the 0.11.0 milestone Apr 2, 2014
@svemir
Copy link

svemir commented Apr 17, 2014

+1

@XhmikosR XhmikosR modified the milestones: 0.11.0, 1.0.0 Jan 9, 2016
XhmikosR added a commit that referenced this pull request Jan 9, 2016
Add "rule" attribute to "lintxml" output format
@XhmikosR XhmikosR merged commit e7e1fa9 into CSSLint:master Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants