Page MenuHomePhabricator

Minor improvements to `ArcanistPhpLinter`
ClosedPublic

Authored by joshuaspence on Jan 7 2015, 9:29 AM.
Tags
None
Referenced Files
F13213250: D11265.diff
Fri, May 17, 7:33 AM
Unknown Object (File)
Tue, May 7, 5:47 AM
Unknown Object (File)
Fri, May 3, 3:30 AM
Unknown Object (File)
Mon, Apr 29, 3:57 PM
Unknown Object (File)
Wed, Apr 24, 11:09 PM
Unknown Object (File)
Fri, Apr 19, 9:05 PM
Unknown Object (File)
Apr 11 2024, 7:48 AM
Unknown Object (File)
Apr 10 2024, 8:10 PM
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.