Page MenuHomePhabricator

Minor improvements to `ArcanistPhpLinter`
ClosedPublic

Authored by joshuaspence on Jan 7 2015, 9:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 6:12 PM
Unknown Object (File)
Fri, Dec 20, 5:44 PM
Unknown Object (File)
Tue, Dec 17, 10:51 AM
Unknown Object (File)
Tue, Dec 17, 5:15 AM
Unknown Object (File)
Fri, Dec 13, 12:35 AM
Unknown Object (File)
Thu, Dec 12, 10:40 PM
Unknown Object (File)
Thu, Dec 5, 1:19 AM
Unknown Object (File)
Nov 11 2024, 7:27 AM
Subscribers

Details

Summary

Various minor improvements to ArcanistPhpLinter.

Test Plan

arc unit

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Minor improvements to `ArcanistPhpLinter`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jan 7 2015, 12:54 PM
epriestley edited edge metadata.

Oh, WIP + test failure.

This revision now requires changes to proceed.Jan 7 2015, 12:54 PM

FWIW, I do not get "PHP" in the output in 5.4.30:

epriestley@orbital ~/dev/phabricator $ php -v
PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
epriestley@orbital ~/dev/phabricator $ php -l derp 

Parse error: parse error in derp on line 3
Errors parsing derp

Note "Parse error", not "PHP Parse error".

Don't allow linter severity to be customized

joshuaspence edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jan 8 2015, 8:38 AM
src/lint/linter/ArcanistPhpLinter.php
97

Maybe phutil_utf8_strtolower().

joshuaspence edited edge metadata.

Use getLintMessageName

This revision was automatically updated to reflect the committed changes.