Page MenuHomePhabricator

Add a rule to the XHPAST linter for detecting `elseif` usage.
ClosedPublic

Authored by joshuaspence on May 19 2014, 1:28 PM.
Tags
None
Referenced Files
F15500141: D9193.diff
Sun, Apr 13, 4:17 PM
F15461243: D9193.id21833.diff
Tue, Apr 1, 6:35 AM
F15453441: D9193.diff
Sat, Mar 29, 11:49 AM
F15430367: D9193.id.diff
Mon, Mar 24, 7:20 AM
F15390942: D9193.id21833.diff
Mar 15 2025, 7:28 AM
F15353835: D9193.id21832.diff
Mar 11 2025, 12:29 AM
F15338898: D9193.diff
Mar 9 2025, 1:22 PM
F15335464: D9193.id.diff
Mar 8 2025, 3:37 PM

Details

Summary

This rule is adapted from PHP_CodeSniffer and is used to enforce the consistent use of else if.

Test Plan

Wrote and executed unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Add a rule to the XHPAST linter for detecting `elseif` usage..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 19 2014, 1:33 PM
epriestley updated this revision to Diff 21833.

Closed by commit rARC566c7e9c5cf4 (authored by @joshuaspence, committed by @epriestley).