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
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/lint/linter/__tests__/xhpast/list-assignment.lint-test | ||
---|---|---|
11 | (The whitespace this decides on is a little weird.) |