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)
Sat, Jan 18, 11:40 AM
Unknown Object (File)
Fri, Jan 17, 5:17 PM
Unknown Object (File)
Mon, Jan 6, 11:03 AM
Unknown Object (File)
Tue, Dec 31, 1:15 PM
Unknown Object (File)
Tue, Dec 24, 5:14 PM
Unknown Object (File)
Dec 19 2024, 9:25 PM
Unknown Object (File)
Dec 3 2024, 3:34 PM
Unknown Object (File)
Dec 3 2024, 3:33 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