]> khamidou — GitHub mirrors - arcanist.git/commit
Support for lint messages which are always shown
authorOmer Strulovich <ostrulovich@fb.com>
Sun, 9 Jun 2013 15:37:40 +0000 (08:37 -0700)
committerepriestley <git@epriestley.com>
Sun, 9 Jun 2013 15:38:30 +0000 (08:38 -0700)
commit9a46ba7ea1a780e657f40d58682ac3894e7217bc
tree26b46d94cdc501181b1e02bc517d9e11460af516
parent3de49842565dbd2710c2c8c7c2c456500a58f2df
Support for lint messages which are always shown

Summary: If one wishes to implement a linter which finds unused resources or variables the current scheme does not work as the lint engine filters all changes from lines which were not introduced in a diff. To solve that, I've added an "always show" configuration for a lint message allowing creation of such linters.

Test Plan:
1. Created a custom linter for finding unused Android resources in a project
2. Ran arc lint with linter added and received warnings as expected

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D6119
src/lint/ArcanistLintMessage.php
src/lint/engine/ArcanistLintEngine.php