Skip to content

[DX] In case of level methods, if number is +10 than highest level, add warning and suggestion about using whole set #9006

@TomasVotruba

Description

@TomasVotruba

There is roughly ~50 rules in code quality set https://github.com/rectorphp/rector-src/blob/main/src/Config/Level/CodeQualityLevel.php

So using extra high value, does not make sense (and gives false feeling the quality is much better now :))

->withCodeQualityLevel(200)

Adding warning about high level would avoid this confussion: #8984

Level methods are stepping stone to improve codebases step by step.
But once this process is finished, the whole set should be used instead 👍

>withPreparedSets(codeQuality: true);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions