Page MenuHomePhabricator

Fix ArcanistCSSLintLinter issue for messages without line number
ClosedPublic

Authored by dereckson on Nov 17 2015, 5:31 AM.
Tags
None
Referenced Files
F18339759: D14497.id.diff
Mon, Aug 25, 9:43 PM
F18085325: D14497.id.diff
Tue, Aug 5, 7:09 PM
F17736126: D14497.diff
Jul 20 2025, 4:19 PM
Unknown Object (File)
Jun 27 2025, 2:22 PM
Unknown Object (File)
Jun 19 2025, 1:34 PM
Unknown Object (File)
May 25 2025, 6:36 AM
Unknown Object (File)
May 14 2025, 1:50 AM
Unknown Object (File)
May 8 2025, 10:33 PM
Subscribers

Details

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

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to Fix ArcanistCSSLintLinter issue for messages without line number.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added reviewers: epriestley, joshuaspence.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 17 2015, 3:13 PM
This revision was automatically updated to reflect the committed changes.