Skip to content
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

Fixing PHPCS filset reference. #1079

Merged
merged 4 commits into from
Feb 13, 2017
Merged

Fixing PHPCS filset reference. #1079

merged 4 commits into from
Feb 13, 2017

Conversation

dpagini
Copy link
Contributor

@dpagini dpagini commented Feb 13, 2017

I'm not sure if this is correct, but it seems like build.yml has a mistake referencing a fileset for code sniffing. The files.frontend.custom.themes fileset contains javascript, bower, npm, etc. files, not PHP code. Seems odd to send that through code sniffing. Should this be the files.php.custom.themes fileset instead?

@grasmash
Copy link
Contributor

JS and CSS code can be sniffed via PHPCS using Drupal coding standards.

@dpagini
Copy link
Contributor Author

dpagini commented Feb 13, 2017

Ah ha, interesting. Should this have both lines then? Shouldn't files.php.custom.theme be added as well? If so, I can update, or feel free to close.

@grasmash
Copy link
Contributor

Yes I think that's right!

@grasmash grasmash added the Enhancement A feature or feature request label Feb 13, 2017
@dpagini
Copy link
Contributor Author

dpagini commented Feb 13, 2017

Updated. Thanks @grasmash.

phing/build.yml Outdated
@@ -91,7 +91,8 @@ phpcs:
filesets:
- files.php.custom.modules
- files.php.tests
- files.frontend.custom.themes
- files.php.custom.themes
- files.frontend.custom.theme
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you accidentally removed the s.

Copy link
Contributor Author

@dpagini dpagini Feb 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! Fixing now. Gotta love Travis.

@grasmash grasmash merged commit 7bb1d67 into acquia:8.x Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants