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

Document php-cs-fixer in the developer documentation #1963

Merged

Conversation

settermjd
Copy link
Contributor

@settermjd settermjd commented Oct 22, 2019

This addresses #295, by adding a small, concise section on php-cs-fixer to
the developer docs. Specifically, it shows how to review and fix coding
standard violations using make test-php-style and make test-php-style-fix respectively.

This fixes #295, by adding a small, concise section on php-cs-fixer to
the developer docs. Specifically, it shows how to review and fix coding
standard violations using `make test-php-style` and `make
test-php-style-fix` respectively.
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

LGTM

Note that we also run squizlabs/php_codesniffer on the acceptance test code. If a developer does not touch acceptance test PHP code, then it won't fail this check :) After this PR is merged, I can make some small addition to the text to also mention squizlabs/php_codesniffer - because it is not always able to auto-fix the code.

@settermjd
Copy link
Contributor Author

settermjd commented Oct 22, 2019

LGTM

Note that we also run squizlabs/php_codesniffer on the acceptance test code. If a developer does not touch acceptance test PHP code, then it won't fail this check :) After this PR is merged, I can make some small addition to the text to also mention squizlabs/php_codesniffer - because it is not always able to auto-fix the code.

Thanks for the extra information and the rapid approval, @phil-davis. As soon as the build's run again (after merging the latest from master) I'll merge and backport it.

@mmattel mmattel mentioned this pull request Oct 22, 2019
2 tasks
@settermjd settermjd merged commit 5ef886a into master Oct 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the document-make-target-for-testing-and-correcting-php-style branch October 22, 2019 11:43
settermjd added a commit that referenced this pull request Oct 22, 2019
settermjd added a commit that referenced this pull request Oct 22, 2019
settermjd added a commit that referenced this pull request Oct 22, 2019
mmattel added a commit that referenced this pull request Oct 22, 2019
Adding a table of contents - has been forgotten.
Referencing: #1963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants