Skip to content

PHP_CodeSniffer does not test PHP files with no extensions #1754

@Loupax

Description

@Loupax

Version 3.1.1 (stable)

According to the documentation, I should be able to check these files by passing a specific file as an argument but it doesn't seem to be the case. After some digging in the source code I found that the reason the files aren't getting checked is this line.

Is there a way to bypass this filtering? Will you accept a MR that checks the shebang of files without extensions before filtering them out?

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