]> khamidou — GitHub mirrors - arcanist.git/commit
Introduce a rough abstract base class for "linters which run programs and read the...
authorepriestley <git@epriestley.com>
Fri, 23 Aug 2013 18:52:44 +0000 (11:52 -0700)
committerepriestley <git@epriestley.com>
Fri, 23 Aug 2013 18:52:44 +0000 (11:52 -0700)
commite23fc30c195a42bf1e36fbebd7d1a40545124db7
treeff0a3b5456c21f8cdb9fb7e554c5257758a12abd
parentc882877f50010c90a2c6638deb447e80c96a0a3c
Introduce a rough abstract base class for "linters which run programs and read the results"

Summary:
Ref T3186. We have about 50 linters which run programs and read the results, all of which have ad-hoc one-off custom config that isn't formalized anywhere.

Consolidate all this stuff into `ArcanistExternalLinter`, which is configurable through `.arclint` (although nothing supports this quite yet).

Extend CSSLint and Pep8Lint from `ArcanistExternalLinter`.

Add unit tests for both.

There are still some rough edges here, but it mostly seems to work pretty well.

Test Plan: Ran unit tests, hit some (most?) of the error cases.

Reviewers: btrahan

Reviewed By: btrahan

CC: chad, aran, Firehed
Maniphest Tasks: T3186

Differential Revision: https://secure.phabricator.com/D6800
src/__phutil_library_map__.php
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
src/lint/linter/ArcanistCSSLintLinter.php
src/lint/linter/ArcanistExternalLinter.php [new file with mode: 0644]
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistPEP8Linter.php
src/lint/linter/__tests__/ArcanistCSSLintLinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/ArcanistPEP8LinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/csslint/duplicate-properties.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/csslint/empty-rule.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/pep8/imports.lint-test [new file with mode: 0644]