]> khamidou — GitHub mirrors - arcanist.git/commit
Improve parsing of `csslint` output
authorJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:47:51 +0000 (06:47 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:47:51 +0000 (06:47 +1100)
commite4149e43cd19aa015a2d697d041991684bece4b7
tree465d1a5b782ca53d804c61d16c9b8ee2b918280c
parent7b383632dde194c90309fde5f0303013fe569c34
Improve parsing of `csslint` output

Summary: `csslint` returns an `evidence` field which contains the line of the "original text" which produced the linter message (see https://github.com/CSSLint/csslint/blob/5dd84b259b90c5ea8adbaf03d31e9df093cc3dcd/src/core/Reporter.js#L64). We can use this data instead of trying to achieve the same result using `$this->getData($path)`.

Test Plan: {F265449}

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11311
src/lint/linter/ArcanistCSSLintLinter.php
src/lint/linter/__tests__/csslint/parse-error.lint-test [new file with mode: 0644]