Skip to content

SlevomatCodingStandard.Arrays.TrailingArrayComma please add variant with "Disallow" #1786

@LubomirKosper

Description

@LubomirKosper

Hello, you have three perfect sniffs that disable trailing commas everywhere.

These:

  • SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall
  • SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse
  • SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration

However, when it comes to arrays, you only have a version that "enforces everywhere," but not one that "disables everywhere."

Our internal company policy prohibits trailing commas, so we would like to have a sniff that cleans up all fields. Would it be possible to create something like SlevomatCodingStandard.Arrays.DisallowTrailingArrayComma ? We would really appreciate it.

Thank you very much and have a nice day!
Ľubo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions