Skip to content

Commit 069e58b

Browse files
Merge pull request #39 from WordPress/rename-phpcs
Rename `phpcs` file; use PHPCS instead of `find`
2 parents 46ad097 + d9d57af commit 069e58b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ script:
5454
fi
5555
- |
5656
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
57-
phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php')
57+
phpcs
5858
fi

phpcs.ruleset.xml renamed to phpcs.xml.dist

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<rule ref="WordPress-Core" />
66
<!-- <rule ref="WordPress-Docs" /> -->
77

8-
<exclude-pattern>*/node_modules/*</exclude-pattern>
8+
<!-- Check all PHP files in directory tree by default. -->
9+
<arg name="extensions" value="php"/>
10+
<file>.</file>
11+
12+
<!-- Show sniff codes in all reports -->
13+
<arg value="s"/>
14+
915
<exclude-pattern>*/vendor/*</exclude-pattern>
16+
<exclude-pattern>*/node_modules/*</exclude-pattern>
1017
</ruleset>

0 commit comments

Comments
 (0)