Skip to content

Commit

Permalink
CI/QA: rename PHPCS configuration file
Browse files Browse the repository at this point in the history
Using a `.dist` extension allows for individual developers to overload the  `phpcs.xml.dist` with a local `phpcs.xml` file. This file can include the `dist` file  as a base ruleset using `<rule ref="./.phpcs.xml.dist"/>`.

To facilitate this, the typical file names for the overloaded PHPCS config file have been added to the `.gitignore` file.
  • Loading branch information
jrfnl committed Dec 12, 2019
1 parent 787e1d3 commit e69a32d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ grunt export-ignore
.jshintrc export-ignore
Gruntfile.js export-ignore
package.json export-ignore
phpcs.xml export-ignore
.phpcs.xml.dist export-ignore
CONTRIBUTING.md export-ignore
readme.md export-ignore
ISSUE_TEMPLATE.md export-ignore
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ node_modules/
/admin/assets/js/*.js.map
.wordpress-svn/
artifact.zip
artifact/
artifact/
.phpcs.xml
phpcs.xml
File renamed without changes.
2 changes: 1 addition & 1 deletion .removeable-files
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
phpcs.xml
.phpcs.xml.dist
readme.md

0 comments on commit e69a32d

Please sign in to comment.