Skip to content

Commit

Permalink
Do not allow any unused use-statements to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 11, 2024
1 parent 98e550a commit 50e6909
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
}
},
"require": {
"phpunit/phpunit": "^9.6 || ^10.0"
"phpunit/phpunit": "^9.6 || ^10.0",
"slevomat/coding-standard": "^8.14"
},
"require-dev": {
"ext-curl": "*",
Expand All @@ -30,7 +31,8 @@
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"simplesamlphp/composer-module-installer": true
"simplesamlphp/composer-module-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
3 changes: 3 additions & 0 deletions phpcs-simplesamlphp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
<!-- Do not allow unnecessary spaces inside arbitrary parentheses -->
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />

<!-- Do not allow any unused use-statements to exist -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses" />

</ruleset>

0 comments on commit 50e6909

Please sign in to comment.