Page MenuHomePhabricator

Don't use error context from JSHint in linter messages
ClosedPublic

Authored by joshuaspence on Jun 23 2014, 12:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 9 2024, 7:11 PM
Unknown Object (File)
Sep 4 2024, 12:58 AM
Unknown Object (File)
Sep 1 2024, 3:24 PM
Unknown Object (File)
Aug 26 2024, 11:13 PM
Unknown Object (File)
Aug 22 2024, 6:21 PM
Unknown Object (File)
Aug 20 2024, 12:16 PM
Unknown Object (File)
Aug 18 2024, 12:08 AM
Unknown Object (File)
Aug 9 2024, 11:07 AM
Subscribers

Details

Summary

The error context (a.k.a. "original text") as provided by jshint is not very useful and actually causes arc lint to display the lint message incorrectly.

jshint-evidence (579×1 px, 77 KB)

The underlying problem here is that the error context from jshint contains the entire line from the input file rather than just the offending source code.

Test Plan

Ran arc lint -- webroot/rsrc/js/core/behavior-hovercard.js (in rP) and verified that the output looked reasonable.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Don't use error context from JSHint in linter messages.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 23 2014, 12:32 AM