Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/385770 )

Change subject: Move phpcs.xml to .phpcs.xml
......................................................................

Move phpcs.xml to .phpcs.xml

Bug: T177256
Change-Id: I1eb15198bf57f81573f7b415d9186130c9f60658
---
M .gitattributes
R .phpcs.xml
M README.md
M utils/bootstrap-ci.php
4 files changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/tools/codesniffer 
refs/changes/70/385770/1

diff --git a/.gitattributes b/.gitattributes
index 842b122..1c4de30 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,7 +2,7 @@
 .gitignore export-ignore
 .gitreview export-ignore
 composer.json export-ignore
-phpcs.xml export-ignore
+.phpcs.xml export-ignore
 phpunit.bootstrap.php export-ignore
 phpunit.xml.dist export-ignore
 TestHelper.php export-ignore
diff --git a/phpcs.xml b/.phpcs.xml
similarity index 100%
rename from phpcs.xml
rename to .phpcs.xml
diff --git a/README.md b/README.md
index e8e05fe..3f370c2 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@
        }
     }
     ```
-2. Create a phpcs.xml with our configuration:
+2. Create a .phpcs.xml with our configuration:
 
     ```
     <?xml version="1.0"?>
diff --git a/utils/bootstrap-ci.php b/utils/bootstrap-ci.php
index e2fdd6c..1ab6920 100644
--- a/utils/bootstrap-ci.php
+++ b/utils/bootstrap-ci.php
@@ -41,8 +41,8 @@
        return;
 }
 
-# Changes to phpcs.xml affect all files
-if ( in_array( 'phpcs.xml', $_head_files ) ) {
+# Changes to phpcs.xml or .phpcs.xml affect all files
+if ( in_array( 'phpcs.xml', $_head_files ) || in_array( '.phpcs.xml', 
$_head_files ) ) {
        unset( $_head_files );
        unset( $_return );
        return;
@@ -72,7 +72,7 @@
        }
 }
 
-# Only keep files out of git head that matches phpcs.xml extensions.
+# Only keep files out of git head that matches phpcs.xml/.phpcs.xml extensions.
 $_extensions = array_keys( $this->config->extensions );
 $this->config->files = array_filter(
        $_head_files,

-- 
To view, visit https://gerrit.wikimedia.org/r/385770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1eb15198bf57f81573f7b415d9186130c9f60658
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/codesniffer
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to