Skip to content

Commit beda19d

Browse files
committed
.gitignore/.distignore: ignore phpcs/phpunit config files
* `.distignore`: no need to distribute the phpcs/phpunit config files. * `.gitignore`: Allow devs to overwrite config files for PHPUnit and PHPCS - The `.dist` files should be committed. However, for their personal use, devs can overrule those files with versions without `.dist`. Those personal versions should never be committed. As a side-note: for PHPCS, having a personal version while still using the original `.dist` file is made very easy, as you can just import the `.dist` file as a starting point, like so: ```xml <?xml version="1.0"?> <ruleset name="WP-CLI"> <rule ref="./phpcs.xml.dist"/> </ruleset> ```
1 parent 32a68a3 commit beda19d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.distignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
.travis.yml
77
behat.yml
88
circle.yml
9+
phpcs.xml.dist
10+
phpunit.xml.dist
911
bin/
1012
features/
1113
utils/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ vendor/
77
*.swp
88
composer.lock
99
*.log
10+
phpunit.xml
11+
phpcs.xml
12+
.phpcs.xml

0 commit comments

Comments
 (0)