Skip to content

Commit 4d023c2

Browse files
authored
Don't set installed_paths config in ruleset file (#24)
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.
2 parents 243fb6f + 703a19f commit 4d023c2

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)