Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Install `phpcs` using Composer #1022

Merged
merged 9 commits into from Jun 6, 2017

Conversation

Projects
None yet
3 participants
Collaborator

nylen commented Jun 5, 2017

From #986 (comment), another way to install phpcs and WordPress-Coding-Standards is via composer. This PR explores this option.

Still left to do:

  • Get rid of the phpcs --config-set call, if possible
  • Simplify the Travis CI configuration accordingly

nylen added some commits Jun 5, 2017

@nylen nylen requested a review from westonruter Jun 5, 2017

westonruter added some commits Jun 5, 2017

westonruter added some commits Jun 5, 2017

Owner

westonruter commented Jun 5, 2017

Add one request please :)

.editorconfig
@@ -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}]
@ntwb

ntwb Jun 6, 2017

Member

How about [{*.json,.travis.yml}] so it also covers .eslintrc.json and any other .json files?

@westonruter

westonruter Jun 6, 2017

Owner

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.

@westonruter

westonruter Jun 6, 2017

Owner

I mean, the .eslintrc.json

@ntwb

ntwb Jun 6, 2017

Member

Done in #1029

ntwb approved these changes Jun 6, 2017

@nylen nylen merged commit 7c9cfe4 into master Jun 6, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@nylen nylen deleted the update/phpcs-composer branch Jun 6, 2017

Collaborator

nylen commented Jun 6, 2017

Thanks for the fixes & improvements here!

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