config migrate
Update qlty.toml with settings from .codeclimate.yml
Qlty’s default thresholds for Code Smells differ from the default thresholds in Quality Classic. Because of this, maintainability ratings in Qlty may differ from those seen in Classic. For repos with a committed .codeclimate.yml file, qlty config migrate will adjust your Qlty configuration to more closely align with your configuration in Quality Classic.
For example:
- If your
.codeclimate.ymlspecifies a custom threshold for thereturn-statementscheck,qlty config migratewill copy this threshold into yourqlty.toml - If your
.codeclimate.ymldoes not specify a custom threshold for thereturn-statementscheck,qlty config migratewill copy the default threshold for Quality Classic’sreturn-statementscheck into yourqlty.toml
Additionally, qlty config migrate will copy any existing prepare statements which exist in your .codeclimate.yml.
Arguments
--dry-run
Prints the migrated version of qlty.toml to the console without saving it to disk
Examples
Migrate configuration from .codeclimate.yml into qlty.toml
Preview the migration without making changes