Skip to content

Interactive mode doesn't always respect other CLI flags passed #1067

@jrfnl

Description

@jrfnl

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

  • I have searched the issue list and am not opening a duplicate issue.
  • I have read ++written++ the Contribution Guidelines and this is not a support question.
  • I confirm that this bug is a bug in PHP_CodeSniffer and not in one of the external standards.
  • I have verified the issue still exists in the master branch of PHP_CodeSniffer.

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