Skip to content

Feature suggestion: --space-indent=# command line option #2229

Closed
@jrfnl

Description

@jrfnl

PHPCS contains a number of sniffs which have a public $indent property (or similar).

If the standard of 4 space indents is used, all is fine. However, for non-standard space indenting, it is not always clear for people for which sniffs this property needs to be set, no matter that all the properties are outlined in the wiki.

Would it be an idea to add support for a space-indent command line option which would then be respected by all the PHPCS native sniffs which support the property ?

External standards could choose to add support for the command-line option as well if they have sniffs with a similar property.

@gsherwood Does this sound like a good idea ? If so, I'd be willing to have a go at adding this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions