Page MenuHomePhabricator

Adding php -l linter
ClosedPublic

Authored by bluehawk on Aug 27 2014, 9:15 PM.
Tags
None
Referenced Files
F18782351: D10370.id24968.diff
Mon, Oct 13, 1:19 AM
F18780541: D10370.id24960.diff
Sun, Oct 12, 5:05 PM
F18760308: D10370.id.diff
Mon, Oct 6, 8:57 AM
F18758583: D10370.diff
Sun, Oct 5, 10:49 PM
F18756202: D10370.diff
Sun, Oct 5, 10:00 AM
F18712144: D10370.id.diff
Sep 29 2025, 5:17 AM
F18455524: D10370.id.diff
Sep 1 2025, 9:11 AM
F18453338: D10370.id24960.diff
Sep 1 2025, 3:30 AM

Details

Summary

Adds a linter that checks php files for syntax errors using php -l

Test Plan

Add a section to your .arclint file similar to:

"php": {
  "type": "php",
  "include": "(\\.php$)"
}

Then run arc lint on a php file with a syntax error.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bluehawk retitled this revision from to Adding php -l linter.
bluehawk updated this object.
bluehawk edited the test plan for this revision. (Show Details)
bluehawk added a reviewer: epriestley.
bluehawk added a subscriber: jacobwalker0814.
epriestley edited edge metadata.

Add a unit test too?

src/lint/linter/ArcanistPhpLinter.php
19

Add punctuation.

35

Add punctuation.

39

Return 'php' instead. Don't introduce deprecated configuration. The "bin" option covers this now.

This revision now requires changes to proceed.Aug 27 2014, 9:20 PM
bluehawk edited edge metadata.

Cleanup, more robust, and adding test

This revision is now accepted and ready to land.Aug 28 2014, 12:29 AM
epriestley updated this revision to Diff 24973.

Closed by commit rARC9fc8a2f61b19 (authored by @bluehawk, committed by @epriestley).