Skip to content

Commit

Permalink
Document breaking --max-complexity change
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 15, 2023
1 parent 4470d7b commit e1ced89
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit e1ced89

Please sign in to comment.