Migration Guide¶
This page tracks removed flags and keys and their replacements. Check it before upgrading between major versions.
Removed in 7.0.0¶
The following CLI flags and TOML keys were removed. Use their replacements instead:
| Removed flag/key | Replacement |
|---|---|
--output-json / -j |
--output-format json |
--output-csv / -c |
--output-format csv |
--output-gitlab |
--output-format gitlab |
--output-sarif / -sr |
--output-format sarif |
--ratchet / -R |
--diff <ref> (enforces by default) |
output-json = true |
output-format = ["json"] |
output-csv = true |
output-format = ["csv"] |
output-gitlab = true |
output-format = ["gitlab"] |
output-sarif = true |
output-format = ["sarif"] |
ratchet = true |
[tool.complexipy.diff] branch or --diff <ref> |
staged = true |
[tool.complexipy.diff] staged = true |
details = "low" |
failed = true |
Removed in 8.0.0¶
The CLI was rewritten in Rust. The following old-version compatibility features were removed:
- Git-URL analysis (
complexipy <repository-url>) - local paths only. - Legacy cache migration - the previous
.complexipy_cache/<hash>.jsonlayout is no longer migrated; existing legacy files are ignored and the delta history starts fresh. - Legacy snapshot files - snapshots created with older versions are no
longer detected; recreate them with
--snapshot-create. -mxshort flag - use--max-complexity-allowedinstead.
What each replacement does¶
--output-format <format>selects the machine-readable output format (json,csv,gitlab,sarif). Repeat the flag for multiple formats.--diff <ref>shows a complexity diff against a git reference and enforces the threshold by default.[tool.complexipy.diff] branchsets the default diff reference in TOML;[tool.complexipy.diff] staged = trueenables staged comparison by default.failed = trueshows only functions above the complexity threshold.