Skip to content
Merged

misc #24

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
"php": "^8.3",
"behat/gherkin": "4.10.*",
"entropy/entropy": "dev-main",
"nette/utils": "^4.0",
"nikic/php-parser": "^5.6",
"symfony/finder": "^7.0",
"webmozart/assert": "^1.12"
"nette/utils": "^4.1",
"nikic/php-parser": "^5.7",
"symfony/finder": "^7.4",
"webmozart/assert": "^2.1"
},
"require-dev": {
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1.34",
"phpstan/phpstan": "^2.1.37",
"phpunit/phpunit": "^12.5",
"rector/jack": "^0.5.1",
"rector/rector": "^2.3.2",
"rector/rector": "^2.3.4",
"shipmonk/composer-dependency-analyser": "^1.8",
"symplify/easy-coding-standard": "^13.0",
"tomasvotruba/class-leak": "^2.1",
"tracy/tracy": "^2.10"
"tracy/tracy": "^2.11"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions src/Command/AnalyzeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function __construct(

/**
* @param string $projectDirectory Project directory (we find *.Context.php definition files and *.feature script files there)
* @param string[] $skip Skip a rule by identifier
* @param string[] $skips Skip a rule by identifier
*
* @return ExitCode::*
*/
public function run(?string $projectDirectory = null, array $skip = []): int
public function run(?string $projectDirectory = null, array $skips = []): int
{
// fallback to current directory
if ($projectDirectory === null) {
Expand Down Expand Up @@ -81,7 +81,7 @@ public function run(?string $projectDirectory = null, array $skip = []): int
/** @var RuleError[] $allRuleErrors */
$allRuleErrors = [];
foreach ($this->rulesRegistry->all() as $rule) {
if (in_array($rule->getIdentifier(), $skip, true)) {
if (in_array($rule->getIdentifier(), $skips, true)) {
$this->outputPrinter->writeln(sprintf('<fg=cyan>Skipping "%s" rule</>', $rule->getIdentifier()));
$this->outputPrinter->newLine();
continue;
Expand Down