PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

Interactive mode doesn't always respect other CLI flags passed

Open jrfnl opened this issue 8 months ago • 0 comments

Describe the bug

Noticed this while demonstrating something. Needs further investigation.

To reproduce

Steps to reproduce the behavior:

  1. 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 master branch of PHP_CodeSniffer.

jrfnl avatar Apr 29 '25 19:04 jrfnl