From e1ced896246734a653af1f49cc5406bf3ab640f8 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 14 Jan 2023 23:22:38 -0500 Subject: [PATCH] Document breaking --max-complexity change --- BREAKING_CHANGES.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/BREAKING_CHANGES.md b/BREAKING_CHANGES.md index a9affc0e10..3569d0cf37 100644 --- a/BREAKING_CHANGES.md +++ b/BREAKING_CHANGES.md @@ -1,5 +1,20 @@ # Breaking Changes +## 0.0.222 + +### `--max-complexity` has been removed from the CLI ([#1877](https://github.com/charliermarsh/ruff/pull/1877)) + +The McCabe plugin's `--max-complexity` setting has been removed from the CLI, for consistency with +the treatment of other, similar settings. + +To set the maximum complexity, use the `max-complexity` property in your `pyproject.toml` file, +like so: + +```toml +[tool.ruff.mccabe] +max-complexity = 10 +``` + ## 0.0.181 ### Files excluded by `.gitignore` are now ignored ([#1234](https://github.com/charliermarsh/ruff/pull/1234))