Skip to content

Commit d652634

Browse files
committed
style: remove unused vars, and add tests for them
1 parent 1274d41 commit d652634

File tree

7 files changed

+482
-204
lines changed

7 files changed

+482
-204
lines changed

RoboFilePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function codeCs(
207207

208208
$strict = $options['strict'] ? '' : '-n';
209209

210-
$result = $this->taskExec("./vendor/bin/phpcs $csignore --standard=vendor/glpi-project/coding-standard/GlpiStandard/ {$strict} {$file}")->run();
210+
$result = $this->taskExec("./vendor/bin/phpcs $csignore --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --standard=tests/rulest.xml {$strict} {$file}")->run();
211211

212212
if (!$result->wasSuccessful()) {
213213
if (!$options['autofix'] && !$options['no-interaction']) {

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"glpi-project/tools": "^0.1.0",
2525
"glpi-project/coding-standard": "0.7.1",
2626
"atoum/reports-extension": "^3.0",
27-
"jakub-onderka/php-parallel-lint": "^1.0"
27+
"jakub-onderka/php-parallel-lint": "^1.0",
28+
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
29+
"sirbrillig/phpcs-variable-analysis": "^2.7"
2830
},
2931
"autoload-dev": {
3032
"psr-4": {

0 commit comments

Comments
 (0)