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)
Mar 31 2026, 8:01 PM
Unknown Object (File)
Feb 17 2026, 8:18 PM
Unknown Object (File)
Jan 19 2026, 12:58 PM
Unknown Object (File)
Jan 18 2026, 2:26 PM
Unknown Object (File)
Dec 23 2025, 11:10 AM
Unknown Object (File)
Nov 28 2025, 4:23 AM
Unknown Object (File)
Sep 30 2025, 11:07 PM
Unknown Object (File)
Sep 17 2025, 6:22 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