| 1 |
Flake8 plugin |
| 2 |
============= |
| 3 |
|
| 4 |
.. program:: flake8 |
| 5 |
|
| 6 |
Radon exposes a plugin for the Flake8 tool. In order to use it you will have to |
| 7 |
install both `radon` and `flake8`. |
| 8 |
|
| 9 |
To enable the Radon checker, you will have to supply *at least* one of the |
| 10 |
following options: |
| 11 |
|
| 12 |
.. option:: --radon-max-cc <int> |
| 13 |
|
| 14 |
Set the cyclomatic complexity threshold. The default value is `10`. Blocks |
| 15 |
with a greater complexity will be reported by the tool. |
| 16 |
|
| 17 |
.. option:: --radon-no-assert |
| 18 |
|
| 19 |
Instruct radon not to count `assert` statements towards cyclomatic |
| 20 |
complexity. The default behaviour is the opposite. |
| 21 |
|
| 22 |
.. option:: --radon-show-closures |
| 23 |
|
| 24 |
Instruct radon to add closures/inner classes to the output. |
| 25 |
|
| 26 |
For more information visit the `Flake8 documentation |
| 27 |
<http://flake8.readthedocs.org/en/latest/>`_. |