Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets lists #8949

Closed
franck-paul opened this issue Dec 27, 2024 · 4 comments
Closed

Sets lists #8949

franck-paul opened this issue Dec 27, 2024 · 4 comments

Comments

@franck-paul
Copy link

Question

Is there any page in documentation where I can find an exhaustive list of all sets available?

I discover some by looking in code or in some site on the web, but anywhere in the doc.

I'm using this in my config, but I don't know if it is enough (PHP 8.1 to 8.4 application):

return RectorConfig::configure()
    ->withPaths([
        ...
    ])
    ->withPhpSets()
    ->withPhpSets(php81: true)
    ->withPhpSets(php82: true)
    ->withPhpSets(php83: true)
    ->withPhpSets(php84: true)
    // Generic sets
    ->withTypeCoverageLevel(999)
    ->withDeadCodeLevel(999)
    ->withCodeQualityLevel(999)
;
@samsonasik
Copy link
Member

You can read step by step to integrate to new project https://getrector.com/documentation/integration-to-new-project

@TomasVotruba
Copy link
Member

@franck-paul This docs page contains start with sets: https://getrector.com/documentation/set-lists

I'll add a new page that contains levels setup, thanks for feedback 👍

@franck-paul
Copy link
Author

You can read step by step to integrate to new project https://getrector.com/documentation/integration-to-new-project

Yes, it's a beginning but anywhere in the documentation I found a full list of prepared sets.

@TomasVotruba
Copy link
Member

@franck-paul See https://getrector.com/documentation/set-lists#content-prepared-sets

These sets grow in time, so there is no point in duplicating them in the docs. IDE is good enough to autocomplete them 👍

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

No branches or pull requests

3 participants