-
Notifications
You must be signed in to change notification settings - Fork 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
Javascript files not being scanned by phpcs #75
Comments
Is phpcs supposed to check JS files? The validation errors are all about: |
Indeed, and TRUE is not even proper javascript. So this means we don't want to add js as default extension. What I don't understand is how during deploy js files are scanned? Was it just a glitch? |
@hkirsman Yes, it seems I missed the config when I initially investigated this but it's been fixed. I'm not sure why this issue didn't show up locally when running GrumPHP but only when running PHPCS separately. https://github.com/wunderio/client-fi-lab-elab/commit/4e9a635adbd67c70a5918e946d1f356e9e95aeaf |
Maybe you didn't use GrumpPHP and bypassed some of our default configs? With GrumPHP one can run specific task like this:
|
I just ran |
Ok, thanks. I'll close this and create something new instead - adding ESLint to lint Drupal js with Drupal rules #84 |
Deivids Briedis discovered that deploy is complaining about issues in javascript files but running grumphp locally there are no errors.
It seems that the issue is that we've not added js as allowed extension for phpcs https://github.com/wunderio/code-quality/blob/master/src/Task/tasks.yml#L126
Should we change that?
The text was updated successfully, but these errors were encountered: