Page MenuHomePhabricator

Only lint files in the working copy with `arc lint --everything`.
ClosedPublic

Authored by joshuaspence on Jun 23 2014, 12:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 9:25 PM
Unknown Object (File)
Tue, Dec 3, 3:34 PM
Unknown Object (File)
Tue, Dec 3, 3:33 PM
Unknown Object (File)
Tue, Dec 3, 3:33 PM
Unknown Object (File)
Tue, Dec 3, 3:13 PM
Unknown Object (File)
Nov 22 2024, 6:29 AM
Unknown Object (File)
Nov 20 2024, 10:39 PM
Unknown Object (File)
Nov 15 2024, 8:11 PM
Subscribers

Details

Summary

Fixes T5442. arc lint --everything currently uses a FileFinder to discover paths for linting. A consequence of this is that files that are ignored or otherwise excluded from version control are linted.

Test Plan

Ran arc lint --everything in rPHU and noticed that I wasn't prompted to add a trailing newline to src/.phutil_module_cache.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Only lint files in the working copy with `arc lint --everything`..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/workflow/ArcanistLintWorkflow.php
220–221

This comment is probably no longer very useful.

This revision is now accepted and ready to land.Jun 23 2014, 12:20 AM