Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit f46fd77

Browse files
committed
feat(scs2): new CS Standard. PHP8+ Compat
1 parent a1bf55f commit f46fd77

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"require": {
1414
"php": ">=7.0",
1515
"ext-mbstring": "*",
16-
"squizlabs/php_codesniffer": "^3.6",
17-
"phpcompatibility/php-compatibility": "^9.3"
16+
"squizlabs/php_codesniffer": "^3.7",
17+
"phpcompatibility/php-compatibility": "dev-develop"
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "^9.5"
2121
},
2222
"suggest" : {
23-
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
23+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
2424
},
2525
"autoload": {
2626
"psr-4": {
@@ -34,7 +34,7 @@
3434
},
3535
"extra": {
3636
"branch-alias": {
37-
"dev-main": "1.2.x-dev"
37+
"dev-main": "1.3.x-dev"
3838
}
3939
}
4040
}

src/SCS2/ruleset.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" ?>
2+
<ruleset name="SCS2">
3+
<description>SPIP Coding Standard v2</description>
4+
5+
<rule ref="SCS1" />
6+
7+
<rule ref="PSR2.Methods.MethodDeclaration.Underscore" >
8+
<severity>5</severity>
9+
</rule>
10+
</ruleset>

src/SPIP42/ruleset.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" ?>
2+
<ruleset name="SPIP41">
3+
<description>Coding rules for SPIP 4.2</description>
4+
5+
<rule ref="SCS2"/>
6+
7+
<rule ref="PHPCompatibility"/>
8+
<config name="testVersion" value="7.4-8.2"/>
9+
</ruleset>

0 commit comments

Comments
 (0)