Page MenuHomePhabricator

Add a linter rule for public properties
ClosedPublic

Authored by joshuaspence on Dec 2 2015, 9:06 PM.
Tags
None
Referenced Files
F14022719: D14641.diff
Wed, Nov 6, 7:01 PM
F13979899: D14641.id35439.diff
Sat, Oct 19, 7:06 AM
Unknown Object (File)
Oct 9 2024, 2:44 AM
Unknown Object (File)
Oct 2 2024, 3:17 PM
Unknown Object (File)
Oct 2 2024, 4:16 AM
Unknown Object (File)
Sep 20 2024, 2:57 AM
Unknown Object (File)
Sep 20 2024, 2:27 AM
Unknown Object (File)
Sep 19 2024, 11:50 PM
Subscribers

Details

Summary

Add a linter rule which advises against public class properties.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 9230
Build 10931: Run Core Tests
Build 10930: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for public properties.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/lint/linter/xhpast/rules/ArcanistPublicPropertyXHPASTLinterRule.php
28–29

Maybe "getter and setter methods" or "a getter and setter" vs "a getter and setter methods".

This revision is now accepted and ready to land.Dec 2 2015, 9:11 PM
joshuaspence marked an inline comment as done.
joshuaspence edited edge metadata.

Fix text

This revision was automatically updated to reflect the committed changes.