Skip to content

Is it possible to specify files to fix? #322

Closed Answered by stronk7
piljac1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

while I've not tried many of them, it seems that there are various alternatives to be able to effectively define the exact files to be checked. The --help shows a bunch of them:

https://github.com/phpcsstandards/PHP_CodeSniffer/wiki/Usage

  • The usual list of multiple files and folders (phpcs /path/to/this.php /path/to/that/dir ...).
  • A list of files and directories stored in a file (phpcs --file-list=/path/to/file_list.txt).
  • A custom filter class where you can implement your "finder/filtering rules" (phpcs --filter=/path/to/filter/class).

I imagine that with some of those alternatives, maybe together with --ignore, you can accurately define the exact files/dirs to be checked without to…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@piljac1
Comment options

@jrfnl
Comment options

@stronk7
Comment options

Answer selected by piljac1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants