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
F15530681: D12139.diff
Wed, Apr 23, 6:55 AM
F15504859: D12139.id.diff
Mon, Apr 14, 9:45 PM
F15486512: D12139.id29180.diff
Thu, Apr 10, 7:56 AM
F15478596: D12139.id29180.diff
Tue, Apr 8, 1:15 AM
F15478099: D12139.id.diff
Mon, Apr 7, 8:33 PM
F15474707: D12139.id29180.diff
Sun, Apr 6, 11:19 AM
F15474510: D12139.diff
Sun, Apr 6, 9:38 AM
F15432624: D12139.id29180.diff
Mar 24 2025, 6:53 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.