Skip to content

Commit

Permalink
Merge pull request #52 from rtCamp/update/for-2-1-0
Browse files Browse the repository at this point in the history
Updates for v2.1.0
  • Loading branch information
mrrobot47 authored Jul 6, 2021
2 parents 36eba5a + 5b0b368 commit 606311b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,15 @@ Allowed options:
- `"autoapprove-php-nonfunctional-changes`

For more details please check the documentation for [all options here](https://github.com/automattic/vip-go-ci#configuration-via-repository-config-file).

## Skipping PHPCS scanning for specific folders

You can add files to the root of the repository indicating folders that should not be scanned. For PHPCS, the file should be named `.vipgoci_phpcs_skip_folders`. For PHP Linting the file should be named `.vipgoci_lint_skip_folders`. Please ensure both files are located in the root of the repository.

This can be used as an alternate to `SKIP_FOLDERS` env variable.

**Please note** that the folders exlcuded in the PHPCS xml file do not work in this action, you can check the reason [here](https://github.com/rtCamp/action-phpcs-code-review/issues/29#issuecomment-623933663). Instead you should add all the folders to be excluded in either `SKIP_FOLDERS` env or `.vipgoci_phpcs_skip_folders` file.

List each folder to be skipped on individual lines within those files.

i.e:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'This will run phpcs on PRs'
author: 'rtCamp'
runs:
using: 'docker'
image: 'docker://ghcr.io/rtcamp/action-phpcs-code-review:v2.0.4'
image: 'docker://ghcr.io/rtcamp/action-phpcs-code-review:v2.1.0'
branding:
icon: 'check-circle'
color: 'green'

0 comments on commit 606311b

Please sign in to comment.