]> khamidou — GitHub mirrors - arcanist.git/commit
Fix CPP Lint severity
authorepriestley <git@epriestley.com>
Tue, 19 May 2015 14:58:24 +0000 (07:58 -0700)
committerepriestley <git@epriestley.com>
Tue, 19 May 2015 14:58:59 +0000 (07:58 -0700)
commitddfdfce3f57e2b35539a40ae9cf5a64dd9be83e0
tree80c82d502d10f5246051ece75a90eec51bd6334f
parent60a5a24033606a7da77a467d40cc64b437a3d770
Fix CPP Lint severity

Summary: Currently all CPPLint issues are hard-coded to warning level, which prevents customising the severity in .arclint. Change to pick up the configured severity. Note that getLintMessageSeverity will call getDefaultMessageSeverity if nothing is configured for that error category.

Test Plan: Tested manually to confirm configured categories display with the correct severity and that non-configured ones return with the default severity (ERROR).

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9682
src/lint/linter/ArcanistCpplintLinter.php