Page MenuHomePhabricator

Minor improvements to `ArcanistPhpLinter`
ClosedPublic

Authored by joshuaspence on Jan 7 2015, 9:29 AM.
Tags
None
Referenced Files
F15424173: D11265.id27094.diff
Sat, Mar 22, 8:40 PM
F15378823: D11265.id27092.diff
Thu, Mar 13, 5:13 PM
F15367308: D11265.diff
Tue, Mar 11, 5:01 PM
Unknown Object (File)
Feb 22 2025, 4:23 PM
Unknown Object (File)
Feb 8 2025, 12:55 AM
Unknown Object (File)
Feb 1 2025, 1:37 AM
Unknown Object (File)
Jan 30 2025, 3:49 AM
Unknown Object (File)
Jan 28 2025, 11:33 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.