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

Install phpcs using Composer #1022

Merged
merged 9 commits into from
Jun 6, 2017
Merged

Install phpcs using Composer #1022

merged 9 commits into from
Jun 6, 2017

Conversation

nylen
Copy link
Member

@nylen 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 nylen requested a review from westonruter June 5, 2017 15:26
@westonruter
Copy link
Member

Copy link
Member

@ntwb ntwb left a 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}]
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

Done in #1029

Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

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

@nylen nylen merged commit 7c9cfe4 into master Jun 6, 2017
@nylen nylen deleted the update/phpcs-composer branch June 6, 2017 02:16
@nylen
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants