Page MenuHomePhabricator

Add a linter rule to detect unnecessary semicolons
ClosedPublic

Authored by joshuaspence on Mar 23 2015, 8:23 PM.
Tags
None
Referenced Files
F18817516: D12139.id.diff
Oct 21 2025, 4:11 PM
F18780899: D12139.id29180.diff
Oct 12 2025, 8:29 PM
F18768200: D12139.diff
Oct 8 2025, 2:15 AM
F18757828: D12139.id29180.diff
Oct 5 2025, 7:42 PM
F18616579: D12139.id29180.diff
Sep 14 2025, 6:12 PM
F18428783: D12139.id29180.diff
Aug 31 2025, 2:05 AM
F18407810: D12139.diff
Aug 30 2025, 1:44 AM
F18081237: D12139.id.diff
Aug 4 2025, 11:08 PM
Subscribers
Tokens
"Love" token, awarded by johnny-bit.

Details

Summary

Ref T7409. Adds a rule to detect unnecessary semicolons. The most common scenario I've seen in the wild is the use of semicolons after a class definition:

class MyClass {
  // ...
};
Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule to detect unnecessary semicolons.
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.Apr 6 2015, 1:06 PM
This revision was automatically updated to reflect the committed changes.