]> khamidou — GitHub mirrors - arcanist.git/commit
Add ArcanistConduitLinter, a linter that delegates through Conduit
authoradonohue <aran@fb.com>
Fri, 20 Jan 2012 01:09:27 +0000 (17:09 -0800)
committeradonohue <aran@fb.com>
Fri, 20 Jan 2012 19:17:12 +0000 (11:17 -0800)
commit2c4eb00a128cf900ddc964387545f773645448c7
tree87955e831687a66126775eac7a34e0b8ae961cad
parent3299f1fc73565730bbb90709011ed57d1bbaf8f4
Add ArcanistConduitLinter, a linter that delegates through Conduit

Summary:
Julien built a really cool static analysis database of our codebase. One
capability is that it can suggest typehints that are not in the code. The
analysis to do this is very expensive, so it can't reasonably be run locally.
But it can remain indexed on a server.

The idea here is to provide a familiar interface to it through arc lint, via a
generic Conduit service call.

In our lint engine, this will probably be gated on --advice for performance.
This will introduce a slight awkwardness in that running with --advice can add
new non-advice lint if the server chooses, but this isn't likely to cause a
practical problem.

Test Plan:
Construct a fake Conduit lint endpoint, attach this linter to it, and see bogus
lint
appear with --advice.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran
Differential Revision: https://secure.phabricator.com/D1462
src/__phutil_library_map__.php
src/lint/linter/conduit/ArcanistConduitLinter.php [new file with mode: 0644]
src/lint/linter/conduit/__init__.php [new file with mode: 0644]