Skip to content

Commit 703a19f

Browse files
committed
Don't set installed_paths config in ruleset file
The "parent" rules may not be installed in that location, and it prevents using phpcs from a phar file because it is a relative path. https://www.php.net/phar.interceptfilefuncs: "instructs phar to intercept fopen(), readfile(), file_get_contents(), opendir(), and all of the stat-related functions. If any of these functions is called from within a phar archive with a relative path, the call is modified to access a file within the phar archive. Absolute paths are assumed to be attempts to load external files from the filesystem."
1 parent 243fb6f commit 703a19f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ruleset.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="SpazeCodingStandard">
33
<arg name="tab-width" value="4"/>
4-
<config name="installed_paths" value="../../slevomat/coding-standard"/>
54
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
65
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
76
<rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/>

0 commit comments

Comments
 (0)