-
Notifications
You must be signed in to change notification settings - Fork 5
This package does not work without a phpcs.xml configuration file present #7
Comments
Hi @livevasiliy, thanks for reporting your problem. This tool requires a However, I think your idea of passing command line arguments through to the underlying phpcs process is a good idea, and I will probably implement this feature request soon. |
OK, from my side, I will try to re-run your package with the phpcs.xml file. |
I just ran into this too and while you can run So if you run phpcs like this;
That will scan I eventually found out that you need to add that to the So add
to your phpcs.xml and you're good to go. Having to use |
I found some more issues. We run
But when running the baseliner, it only takes these arguments, see https://github.com/isaaceindhoven/php-code-sniffer-baseliner/blob/master/src/PhpCodeSnifferRunner/Runner.php#L20:
That means it doesn't take
So I edit the phpcs command;
|
Mabye it's an idea to pass on arguments given to |
@peterjaap, good idea! I have limited time to implement improvements to this package at the moment, so PR's are very welcome. |
@jeroennoten it's already on my Sunday funday open source list :) |
Hi, @isaaceindhoven I installed your package, and it doesn't work almost.
I call your package via CLI like that:
./vendor/bin/phpcs-baseliner create-baseline ./app
and I got errorsThe problem conclusion is not correct to use of embedded PhpCs command and passes arguments. For me, temp solutions as it changes your source code in vendor folder in file
Runner.php:20
passes additional arguments which hold name folders that need to scans. So please fix your package do add a feature pass argument with name folders.The text was updated successfully, but these errors were encountered: