Skip to content

Commit 07daa2c

Browse files
committed
Add security
1 parent 8a3049c commit 07daa2c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

SandFox_Base/ruleset.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<ruleset>
77
<rule ref="PSR12"/>
88
<rule ref="PHPCompatibility"/>
9+
<rule ref="Security">
10+
<exclude name="PHPCS_SecurityAudit.BadFunctions.CallbackFunctions.WarnCallbackFunctions"/>
11+
<exclude name="PHPCS_SecurityAudit.BadFunctions.FilesystemFunctions.WarnFilesystem"/>
12+
</rule>
913
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
1014
<properties>
1115
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"require": {
1616
"dealerdirect/phpcodesniffer-composer-installer": "*",
17+
"pheromone/phpcs-security-audit": "*",
1718
"phpcompatibility/php-compatibility": "*",
1819
"slevomat/coding-standard": "*",
1920
"squizlabs/php_codesniffer": "*"

0 commit comments

Comments
 (0)