PHP_CodeSniffer
PHP_CodeSniffer copied to clipboard
Interactive mode doesn't always respect other CLI flags passed
Describe the bug
Noticed this while demonstrating something. Needs further investigation.
To reproduce
Steps to reproduce the behavior:
- Run the following against the PHPCS codebase:
phpcs -l -a
Expected behavior
Only the "local" files, i.e. top level directory are included in the interactive scan.
Actual result: PHPCS recurses into the subdirectories.
Versions (please complete the following information)
| Operating System | Windows 10 |
| PHP version | 8.4.6, but not relevant |
| PHP_CodeSniffer version | master /4.x |
| Standard | not relevant |
| Install type | git clone |
Please confirm
- [x] I have searched the issue list and am not opening a duplicate issue.
- [x] I have ~~read~~ ++written++ the Contribution Guidelines and this is not a support question.
- [x] I confirm that this bug is a bug in PHP_CodeSniffer and not in one of the external standards.
- [x] I have verified the issue still exists in the
masterbranch of PHP_CodeSniffer.