Browse Source

Use relative paths in phpcs configuration.

By using relative directory traversal both travis and stickler can find
the coding standards we reference.
Mark Story 7 years ago
parent
commit
f01c2cfc86
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .stickler.yml
  2. 1 1
      phpcs.xml.dist

+ 1 - 1
.stickler.yml

@@ -1,7 +1,7 @@
 ---
 linters:
   phpcs:
-    standard: CakePHP
+    standard: ./phpcs.xml.dist
     extensions: 'php,ctp'
     fixer: true
 

+ 1 - 1
phpcs.xml.dist

@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <ruleset name="CakePHP Core">
-    <config name="installed_paths" value="vendor/cakephp/cakephp-codesniffer,vendor/slevomat/coding-standard" />
+    <config name="installed_paths" value="../../cakephp/cakephp-codesniffer,../../slevomat/coding-standard" />
 
     <rule ref="PSR12" >
         <!-- This exclude can be removed once phcs 3.3.1 is released -->