1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-01-24 21:48:20 +01:00
phorge-arcanist/src/lint/engine
Wez Furlong 4a3d829223 Fixup lint testing for changes in D6798
Summary:
We have some linters that trigger based on the path name
in the tree (some rules apply in some dirs and not others).
The changes in D6798 caused all the paths to appear to be outside
the tree, so allow for passing a fake through from those test cases
that are sensitive to this.

We also have a test for the copyright linter, and that needs to read
settings from the .arcconfig file.  The change to faking a working
copy meant that this config option was effectively unset, so add a way
to pass the entire arcconfig through from the tests that need it.

Lastly, the logic to skip deleted files needs to be special cased
when we're faking paths like this: if we've added data for a file
in the testable engine, we should also consider that file as existing.

Test Plan:
`arc unit --everything` here, and passing our tests in
our repo over there.

Reviewers: epriestley, mareksapota

Reviewed By: epriestley

CC: Korvin, aran

Differential Revision: https://secure.phabricator.com/D6841
2013-08-29 09:55:30 -07:00
..
ArcanistConfigurationDrivenLintEngine.php Expose PEP8, Flake8 and CSSLint engines to .arclint 2013-08-23 11:58:07 -07:00
ArcanistLintEngine.php Support PHPCS as a .arclint linter 2013-08-29 06:47:27 -07:00
ArcanistSingleLintEngine.php Delete license headers from files 2012-11-05 11:16:24 -08:00
ComprehensiveLintEngine.php Ready more linters and linter functions for .arclint 2013-08-26 05:37:10 -07:00
ExampleLintEngine.php Delete license headers from files 2012-11-05 11:16:24 -08:00
PhutilLintEngine.php Ready more linters and linter functions for .arclint 2013-08-26 05:37:10 -07:00
UnitTestableArcanistLintEngine.php Fixup lint testing for changes in D6798 2013-08-29 09:55:30 -07:00