Add a linter rule to prevent trailing commas in a list assignment. list($x, $y,) is equivalent to list($x, $y), but the latter is cleaner and should be preferred.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARCf4c322cb72cd: Add a linter rule for list assignments
Added test cases.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed - Unit
Tests Skipped - Build Status
Buildable 7596 Build 8232: [Placeholder Plan] Wait for 30 Seconds Build 8231: arc lint + arc unit
Event Timeline
src/lint/linter/__tests__/xhpast/list-assignment.lint-test | ||
---|---|---|
10 | (The whitespace this decides on is a little weird.) |