Skip to content

How to add single file without extension to check? #2916

Closed
@kubawerlos

Description

@kubawerlos

I want to add a single file without extension (or with a name starting with a dot), but cannot achieve this. Neither with <file> in XML or with the command line.

E.g. when I run ./bin/phpcs ./bin/phpcs ./src/Config.php in this repo the output is 1 / 1 (100%), where the 1 is for the latter file.

I've found this: https://github.com/squizlabs/PHP_CodeSniffer/blob/3.5.4/src/Filters/Filter.php#L168 and this implies that this line: https://github.com/squizlabs/PHP_CodeSniffer/blob/3.5.4/phpcs.xml.dist#L6 is useless, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions