]> khamidou — GitHub mirrors - arcanist.git/commit
Improve validation of 'name' and 'code' parameters for lint messages
authorepriestley <git@epriestley.com>
Fri, 25 Sep 2015 18:16:04 +0000 (11:16 -0700)
committerepriestley <git@epriestley.com>
Fri, 25 Sep 2015 18:16:04 +0000 (11:16 -0700)
commite8a0ebaeffaa0a7d5e8f34c7ce014f0092f36a6e
tree9c7d6271344cea8f602a4acf5588f8ea56797257
parent9c056c5cc887aa3d4b7fc25118606df6e5e955cc
Improve validation of 'name' and 'code' parameters for lint messages

Summary: Ref T9145. Fixes T9316. We now require "name" and "code" has a maximum length (currently, this is 32, but the next diff will raise it to 128).

Test Plan:
  - Installed PHPCS.
  - Hit both the "name" and "code" issues.
  - Applied this patch.
  - Got better errors sooner.

Reviewers: chad

Reviewed By: chad

Subscribers: aik099

Maniphest Tasks: T9145, T9316

Differential Revision: https://secure.phabricator.com/D14165
src/lint/ArcanistLintMessage.php
src/lint/engine/ArcanistLintEngine.php
src/lint/linter/ArcanistPhpcsLinter.php