Skip to content

Commit 8fc4ed4

Browse files
authored
Merge pull request #5 from rdohms/task/update
Update Standard
2 parents 3daad6e + 8bfcbcf commit 8fc4ed4

8 files changed

+28
-343
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/phpcs.xml
33
/tests/input2
44
/phpcs.log
5+
composer.lock

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"description": "DMS Coding Standard",
55
"license": "MIT",
66
"require": {
7-
"php": "^7.2 || ^8",
8-
"doctrine/coding-standard": "^9"
7+
"php": "^8",
8+
"doctrine/coding-standard": "^12"
9+
},
10+
"config": {
11+
"allow-plugins": {
12+
"dealerdirect/phpcodesniffer-composer-installer": true
13+
}
914
}
1015
}

composer.lock

Lines changed: 0 additions & 312 deletions
This file was deleted.

src/DMS/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<rule ref="Doctrine">
77
<exclude name="Squiz.PHP.GlobalKeyword" />
88
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/>
9+
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment"/>
910
</rule>
1011

1112
<!-- Require presence of declare(strict_types=1) -->
@@ -23,4 +24,6 @@
2324
<property name="spacesCountBeforeColon" value="0"/>
2425
</properties>
2526
</rule>
27+
28+
2629
</ruleset>

tests/expected_report.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ PHP CODE SNIFFER REPORT SUMMARY
44
FILE ERRORS WARNINGS
55
----------------------------------------------------------------------
66
tests/input/concatenation_spacing.php 55 0
7-
tests/input/example-class.php 36 0
7+
tests/input/example-class.php 38 0
88
tests/input/not_spacing.php 7 0
9-
tests/input/return_type_on_closures.php 27 0
10-
tests/input/return_type_on_methods.php 13 0
9+
tests/input/return_type_on_closures.php 32 0
10+
tests/input/return_type_on_methods.php 18 0
1111
tests/input/test-case.php 7 0
1212
----------------------------------------------------------------------
13-
A TOTAL OF 145 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES
13+
A TOTAL OF 157 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES
1414
----------------------------------------------------------------------
15-
PHPCBF CAN FIX 134 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
15+
PHPCBF CAN FIX 146 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
1616
----------------------------------------------------------------------
1717

1818

0 commit comments

Comments
 (0)