config migrate
Adjust your qlty.toml
to replicate the maintainability ratings seen in Quality Classic.
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.yml
specifies a custom threshold for thereturn-statements
check,qlty config migrate
will copy this threshold into yourqlty.toml
- If your
.codeclimate.yml
does not specify a custom threshold for thereturn-statements
check,qlty config migrate
will copy the default threshold for Quality Classic’sreturn-statements
check into yourqlty.toml
Additionally, qlty config migrate
will copy any existing prepare
statements which exist in your .codeclimate.yml
.
Examples
Migrate configuration from .codeclimate.yml into qlty.toml