]> khamidou — GitHub mirrors - arcanist.git/commit
Fix ArcanistCSSLintLinter issue for messages without line number
authorSébastien Santoro <dereckson@espace-win.org>
Tue, 17 Nov 2015 15:14:13 +0000 (07:14 -0800)
committerepriestley <git@epriestley.com>
Tue, 17 Nov 2015 15:14:13 +0000 (07:14 -0800)
commitb25cf080bc55d01e6a381bc22a331ad281b51516
tree242a13475ef8568101b4ef022cba94af4d4eae22
parent66ab1c955d27ff7875f62eb51a0bd6c4770a7ae3
Fix ArcanistCSSLintLinter issue for messages without line number

Summary:
csslint offers some diagnostics related to all the document without any
relevant line number.

In such case, arc lint failed, as setLine expects null or an integer,
but not an empty string.

The 'char' and 'line' attributes in XML report are now optional.

Fixes T9804.

Test Plan: test case to repro the issue added

Reviewers: chad, joshuaspence, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Maniphest Tasks: T9804

Differential Revision: https://secure.phabricator.com/D14497
src/lint/linter/ArcanistCSSLintLinter.php
src/lint/linter/__tests__/csslint/no-line-related-issue.lint-test [new file with mode: 0644]