We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My configuration
parameters: git_dir: . bin_dir: vendor/bin tasks: php7cc: ~
Composer file
{ "require-dev" : { "phpro/grumphp" : "^0.11.1", "sstalle/php7cc": "^1.1" } }
Test files
<?php // bad.php $a = mktime(5, 5, 5, 5, 5, 2000, -1);
<?php // good.php $a = mktime(5, 5, 5, 5, 5, 2000);
./vendor/bin/php7cc --except=vendor .
Result
File: bad.php > Line 2: Removed argument $is_dst used for function "mktime" mktime(5, 5, 5, 5, 5, 2000, -1); Checked 2 files in 0.023 second
./vendor/bin/grumphp run -vvv
Result:
[2017-02-15 12:32:13] GrumPHP.INFO: run command: ls-files "" [] [] [2017-02-15 12:32:14] GrumPHP.DEBUG: last command (ls-files) duration: 207.75ms [] [] [2017-02-15 12:32:14] GrumPHP.DEBUG: last command (ls-files) return code: 0 [] [] [2017-02-15 12:32:14] GrumPHP.DEBUG: last command (ls-files) output: bad.php composer.json good.php grumphp.yml [] [] GrumPHP is sniffing your code! Running task 1/1: Php7cc Command: 'vendor/bin/php7cc' 'bad.php' 'good.php' ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▄▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▀█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌ ▀▀▓▓▓▓▓▓▓▓▓▓▓▓█▀▀▀▀▀▀▀▀▀▀▀▀▀▀████████████▄ ▄████████▀▀▀▀▀ ██████████ ███████▀ ██████▀ ▐████ ██▌ ██ ████▌ ▐█▌ ███ █▌ ▄▄ ▄▄ ▐███ ███ ▄▄▄▄▄▄▄▄▄▄▄▄ ▐███ ██▄ ▐███████████████████████████ █▀█████████▌▀▀▀▀▀▀▀▀▀██████████▌▐ ███████████▄▄▄▄▄▄▄███████████▌ ▐█████████████████████████████ █████████████████████████████ ██ █████████████████████▐██▀ ▀ ▐███████████████████▌ ▐▀ ████▀████████▀▐███ ▀█▌ ▐█████ ▐█▌ ██▀ ▐▀ _ _ _ _ _ / \ | | | __ _ ___ ___ __| | | / _ \ | | | / _` |/ _ \ / _ \ / _` | | / ___ \| | | | (_| | (_) | (_) | (_| |_| /_/ \_\_|_| \__, |\___/ \___/ \__,_(_) |___/
But all is not good :(
The text was updated successfully, but these errors were encountered:
Thanks for reporting @lucalbert,
We'll have to dig into this one.
Sorry, something went wrong.
The issue seems to be due to php7cc always returning exit code 0.
Merge pull request #312 from veewee/jyggen-gh-296
272b54c
Only fail when errors are raised
Successfully merging a pull request may close this issue.
My configuration
Composer file
Test files
Run Php7cc standalone:
./vendor/bin/php7cc --except=vendor .
Result
Run GrumPHP:
Result:
But all is not good :(
The text was updated successfully, but these errors were encountered: