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)
Sun, Feb 16, 9:51 PM
Unknown Object (File)
Sun, Feb 16, 8:05 PM
Unknown Object (File)
Sun, Feb 9, 1:49 PM
Unknown Object (File)
Sun, Feb 9, 1:49 PM
Unknown Object (File)
Sun, Feb 9, 1:49 PM
Unknown Object (File)
Sun, Feb 9, 1:49 PM
Unknown Object (File)
Jan 18 2025, 11:40 AM
Unknown Object (File)
Jan 17 2025, 5:17 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