Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Oct 11, 2025

4 months ago I added an experimental --kaizen option in #6876
Goal was to allow gradually upgrade codebase, 1 rule at a time.

Now we have more data to access, whether to keep or remove the option.

In practice, this option goes against the level logic - https://getrector.com/documentation/levels
That means more risky rules were applied before less risky ones.

Saying that, instead of having 2 options to do the same, we'll stick with levels that clearly define safe path, one step at a time.
I'm removing this option, as it was not documented and marked as experimental.

@TomasVotruba TomasVotruba merged commit 0a555c8 into main Oct 11, 2025
52 checks passed
@TomasVotruba TomasVotruba deleted the tv-remove-kaizen branch October 11, 2025 20:50
@samsonasik
Copy link
Member

/cc @VincentLanglet fyi

@samsonasik
Copy link
Member

/cc @shakaran fyi

return array_unique($filePaths);
}

return $toBeChangedFiles;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directly returns $this->unchangedFilesFilter->filterFilePaths($filePaths) now can be applied, see:

as just directly returns array.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a rule for this :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, only when it return native type :)

Copy link
Member Author

@TomasVotruba TomasVotruba Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any type would do, as:

X === [], return X, else return X

Same as:

return X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants