-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Install phpcs
using Composer
#1022
Conversation
✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add one request please :)
.editorconfig
Outdated
@@ -8,7 +8,7 @@ charset = utf-8 | |||
trim_trailing_whitespace = true | |||
insert_final_newline = true | |||
|
|||
[{package.json,.travis.yml}] | |||
[{package.json,.travis.yml,composer.json}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about [{*.json,.travis.yml}]
so it also covers .eslintrc.json
and any other .json
files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. This aligns better with core: https://github.com/WordPress/wordpress-develop/blob/4.7.5/.editorconfig#L16-L18
The package.json
should be updated to use 2-space indents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, the .eslintrc.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #1029
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
Thanks for the fixes & improvements here! |
From #986 (comment), another way to install
phpcs
andWordPress-Coding-Standards
is viacomposer
. This PR explores this option.Still left to do:
phpcs --config-set
call, if possible