Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 12, 2025

New sniff to require a trailing comma for multi-line, multi-attribute attribute blocks and forbid trailing commas in single-line attribute blocks and multi-line attributes containing only a single attribute.

While trailing commas is not covered by PERCS, this sniff as proposed does not conflict with the expectations of PERCS.

Includes fixer.
Includes metrics.
Includes unit tests.
Includes documentation.

Fixes #397

New sniff to require a trailing comma for multi-line, multi-attribute attribute blocks and forbid trailing commas in single-line attribute blocks and multi-line attributes containing only a single attribute.

While trailing commas is not covered by PERCS, this sniff as proposed does not conflict with the expectations of PERCS.

Includes fixer.
Includes metrics.
Includes unit tests.
Includes documentation.

Fixes 397
@jrfnl jrfnl force-pushed the feature/397-new-universal-attributes-trailingcomma-sniff branch from 82dbaa0 to 2f0a883 Compare November 12, 2025 21:06
@jrfnl jrfnl merged commit b944141 into develop Nov 12, 2025
79 checks passed
@jrfnl jrfnl deleted the feature/397-new-universal-attributes-trailingcomma-sniff branch November 12, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Attributes: sniff(s) to enforce/forbid use of trailing commas

2 participants