mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 07:14:18 +00:00
Start writing new documentation around --select
In order to write this documentation, we need to also add documentation for the --max-complexity option which was heretofore undocumented.
This commit is contained in:
parent
fec980a856
commit
d411ced0f6
4 changed files with 293 additions and 91 deletions
|
|
@ -796,3 +796,24 @@
|
|||
}
|
||||
|
||||
This **can not** be specified in config files.
|
||||
|
||||
|
||||
.. option:: --max-complexity=<n>
|
||||
|
||||
Set the maximum allowed McCabe complexity value for a block of code.
|
||||
|
||||
This option is provided by the ``mccabe`` dependency's |Flake8| plugin.
|
||||
|
||||
Command-line usage:
|
||||
|
||||
.. prompt:: bash
|
||||
|
||||
flake8 --max-complexity 15 dir/
|
||||
|
||||
This **can** be specified in config files.
|
||||
|
||||
Example config file usage:
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
max-complexity = 15
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue