Skip to content

Commit

Permalink
Remove '-s' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Jun 5, 2017
1 parent f071756 commit 977dcc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ script:
fi
- |
if [[ "$TRAVISCI" == "phpcs" ]] ; then
phpcs -s
phpcs
fi
- |
if [[ "$TRAVISCI" == "js" ]] ; then
Expand Down
5 changes: 1 addition & 4 deletions docs/coding-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,4 @@ Then you must install the `WordPress-Coding-Standards` repository and tell

https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards#standalone

You should now be able to run `phpcs -s` from the root directory of this
project. (The `-s` option means "show sniff codes in all reports", or "show
the name of each rule that fails". This additional output makes it much easier
to determine the specific issue with your code.)
You should now be able to run `phpcs` from the root directory of this project.
5 changes: 3 additions & 2 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />

<file>gutenberg.php</file>
<file>./phpunit</file>
<arg value="s"/>
<arg name="extensions" value="php"/>

<file>gutenberg.php</file>
<file>./phpunit</file>

<!-- The plugin entry point already has a file comment, I promise -->
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>gutenberg.php</exclude-pattern>
Expand Down

0 comments on commit 977dcc7

Please sign in to comment.