Skip to content

Suggested composer lint script does not work properly on Windows #5

New issue

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

Open
tdmalone opened this issue Nov 3, 2017 · 0 comments
Open

Comments

@tdmalone
Copy link
Contributor

tdmalone commented Nov 3, 2017

The README recommends:

"scripts": {
  "lint": "find . -type d \\( -name '.git' -o -name 'vendor' -o -name 'node_modules' \\) -prune -o -type f -name '*.php' -print | xargs vendor/bin/phpcs"
}

This has issues running on Windows (Linux is fine):

$ composer lint
> find . -type d \( -name '.git' -o -name 'vendor' -o -name 'node_modules' \) -prune -o -type f -name "*.php" -print | xargs vendor/bin/phpcs
Script find . -type d \( -name '.git' -o -name 'vendor' -o -name 'node_modules' \) -prune -o -type f -name "*.php" -print | xargs vendor/bin/php
cs handling the lint event returned with error code 1

However running the entire command directly - outside of Composer - works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant