Skip to content

Commit

Permalink
Merge pull request #5 from 10up/fix/vipcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu authored Jul 13, 2021
2 parents 4896c6c + 5d7a43f commit e840090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ To make it as simple as possible, this action supports WordPress Coding Standard
This is a fork of [chekalsky/phpcs-action](https://github.com/chekalsky/phpcs-action), so this action supports GitHub Action annotations too. All credit goes to
[Ilya Chekalsky](https://github.com/chekalsky).

From v1.3.1, this action will
From v1.3.1, this action can detect the PHPCS custom config and use that config to check the source code. When using the local config, `paths`, `excludes`, and `standard` are ignored.

## Known Caveats/Issues

### Annotations limit
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cp /action/problem-matcher.json /github/workflow/problem-matcher.json

git clone -b master https://github.com/WordPress/WordPress-Coding-Standards.git ~/wpcs

if [ "${INPUT_STANDARD_REPO}" = "WordPress-VIP-Go" ] || [ "${INPUT_STANDARD_REPO}" = "WordPressVIPMinimum" ]; then
if [ "${INPUT_STANDARD}" = "WordPress-VIP-Go" ] || [ "${INPUT_STANDARD}" = "WordPressVIPMinimum" ]; then
echo "Setting up VIPCS"
git clone https://github.com/Automattic/VIP-Coding-Standards ${HOME}/vipcs
git clone https://github.com/sirbrillig/phpcs-variable-analysis ${HOME}/variable-analysis
Expand Down

0 comments on commit e840090

Please sign in to comment.