-
Notifications
You must be signed in to change notification settings - Fork 175
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
[Test/Tools] Option in run-php-linter.sh to auto fix PHPCS #6825
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
July 9, 2020 18:49
85e6819
to
5022434
Compare
laemtl
added
Cleanup
PR or issue introducing/requiring at least one clean-up operation
Proposal
PR or issue suggesting an improvement that can be accepted, rejected or altered
Testing
PR contains test plan or automated test code (or config files for Travis)
labels
Jul 9, 2020
Example:
|
|
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
July 9, 2020 22:17
5022434
to
9506e74
Compare
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
July 21, 2020 19:26
9506e74
to
66b637a
Compare
laemtl
added
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Aug 3, 2020
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
August 3, 2020 22:52
66b637a
to
6dd6c6d
Compare
laemtl
removed
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Aug 3, 2020
laemtl
added
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Aug 17, 2020
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
September 1, 2020 18:48
6dd6c6d
to
50b432f
Compare
laemtl
removed
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Sep 1, 2020
laemtl
added
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Oct 9, 2020
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
3 times, most recently
from
October 13, 2020 21:21
aa75747
to
79b8e80
Compare
laemtl
removed
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Oct 13, 2020
laemtl
added
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Nov 1, 2020
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
December 12, 2020 00:28
79b8e80
to
eff91b7
Compare
laemtl
removed
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Dec 12, 2020
@kongtiaowang Ready for review |
laemtl
added
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Dec 14, 2020
laemtl
force-pushed
the
2020-07-08-lintfix-php
branch
from
January 15, 2021 21:00
eff91b7
to
4134aa5
Compare
laemtl
removed
the
State: Needs rebase
PR that needs to be rebased to proceed (conflicts, wrong branch...)
label
Jan 15, 2021
laemtl
added
Blocking
PR should be prioritized because it is blocking the progress of another task
and removed
Proposal
PR or issue suggesting an improvement that can be accepted, rejected or altered
labels
Jan 15, 2021
This was referenced Jan 15, 2021
kongtiaowang
approved these changes
Jan 16, 2021
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.
LGTM
kongtiaowang
added
the
Passed manual tests
PR has been successfully tested by at least one peer
label
Jan 16, 2021
AlexandraLivadas
pushed a commit
to AlexandraLivadas/Loris
that referenced
this pull request
Jun 29, 2021
Add npm target to run phpcbf.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Blocking
PR should be prioritized because it is blocking the progress of another task
Cleanup
PR or issue introducing/requiring at least one clean-up operation
Passed manual tests
PR has been successfully tested by at least one peer
Testing
PR contains test plan or automated test code (or config files for Travis)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PHPCBF can auto-fix minor PHPCS lint issues (trailing spaces, indent spaces, short arrays notation), which can be convenient.
An es-lint auto-fixer script already exists on the js side (npm lintfix:javascript).
I extended run-php-linter.sh to automatically solve hundred of errors for a recent PR (#6786).
This PR:
run-php-linter.sh
, to run PHPCBF in place of PHPCS with the defined rules.lintfix:php
To test
npm run lintfix:php
run `PHPCBF and fixes fixable errors in php files.Resolves #6826