A cli tool which compares a dir with a phpcs config and reports files which are not checked.
npm install @sirbrillig/getphpcscoverageA cli tool which compares a dir with a phpcs config and reports files which are not checked.
npm install -g @sirbrillig/getphpcscoverage
``
Usage
$ getphpcscoverage [directoryPath]
Specify a directory path which contains a phpcs.xml config file. This will
report the files which will be scanned by the config file and those that will
not.
Options
--help, -h Show this help message
--version, -v Show the version
--type
--format
`
`
$ tree testdir
testdir
├── phpcs.xml
└── src
├── baz
│ ├── index-2.php
│ └── index.php
└── foobar
├── index-2.php
├── index-3.php
└── index.php
$ cat testdir/phpcs.xml
$ getphpcscoverage testdir
These files WILL be scanned by phpcs:
testdir/src/foobar/index-2.php
testdir/src/foobar/index-3.php
testdir/src/foobar/index.php
testdir/src/baz/index-2.php
These files WILL NOT be scanned by phpcs:
testdir/src/baz/index.php
``