Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 17, 2025

Description

Suggested changelog entry

Added:
Files without extension can now be scanned if the path is passed in directly.
- Previously, files without extension would always be ignored.
- Now, files with no extension are checked if explicitly passed on the command line or specified in a ruleset.
- Files without extension will still be ignored when scanning directories recursively.

Related issues/external references

Fixes squizlabs/PHP_CodeSniffer#2916

@jrfnl jrfnl force-pushed the phpcs-4.0/feature/sq-2916-filter-allow-explicit-file-without-extension branch from 941e96b to 3b85aa9 Compare April 18, 2025 10:08
…passed in directly

Fixes squizlabs/PHP_CodeSniffer 2916

Co-authored-by: jrfnl <[email protected]>
@jrfnl jrfnl force-pushed the phpcs-4.0/feature/sq-2916-filter-allow-explicit-file-without-extension branch from 3b85aa9 to 3023b6c Compare April 18, 2025 10:11
@jrfnl
Copy link
Member Author

jrfnl commented Apr 18, 2025

I've ended up making two minor tweaks to the test documentation. Merging once the build passes.

@jrfnl jrfnl merged commit 156740b into 4.x Apr 18, 2025
148 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-2916-filter-allow-explicit-file-without-extension branch April 18, 2025 10:20
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.

3 participants