Page MenuHomePhabricator

Allow global excludes to be specified in `.arclint`.
ClosedPublic

Authored by joshuaspence on May 11 2014, 12:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 11:52 AM
Unknown Object (File)
Wed, Dec 4, 1:37 AM
Unknown Object (File)
Tue, Dec 3, 2:45 PM
Unknown Object (File)
Fri, Nov 29, 12:48 AM
Unknown Object (File)
Tue, Nov 26, 11:24 AM
Unknown Object (File)
Mon, Nov 25, 6:29 AM
Unknown Object (File)
Fri, Nov 22, 11:08 PM
Unknown Object (File)
Nov 22 2024, 5:49 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
Restricted Maniphest Task
Commits
rARCc4985ef41556: Allow global excludes to be specified in `.arclint`.
Summary

Currently, paths to be excluded from linting need to be specified for each linter individually. This is a pain for projects that are using even a moderate number of linters and which have common paths which should be excluded from linting completely.

Test Plan

Unfortunately, it's hard to test this sort of stuff. I cloned the arclint-examples repository and tested my changes there,

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Allow global excludes to be specified in `.arclint`..
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/lint/engine/ArcanistConfigurationDrivenLintEngine.php
28

We added regex to PhutilTypeSpec a while ago -- in the existing case you get a more detailed error from validateRegexps() than checkMap() can raise, but the two errors might have similar usefulness here. I'll just pull this for now and we can evaluate cleaning it up later, I'd like to tune the per-linter errors to make them easier to figure out anyway.

This revision is now accepted and ready to land.May 11 2014, 12:32 PM
epriestley updated this revision to Diff 21500.

Closed by commit rARCc4985ef41556 (authored by @joshuaspence, committed by @epriestley).

joshuaspence added a task: Restricted Maniphest Task.May 11 2014, 9:07 PM