https://github.com/danie1k/python-flake8-if-checker
Flake8 "IF" statement complexity linter plugin
https://github.com/danie1k/python-flake8-if-checker
flake8 flake8-plugin python python-package
Last synced: 11 months ago
JSON representation
Flake8 "IF" statement complexity linter plugin
- Host: GitHub
- URL: https://github.com/danie1k/python-flake8-if-checker
- Owner: danie1k
- License: mit
- Created: 2019-02-22T21:40:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T20:31:39.000Z (over 5 years ago)
- Last Synced: 2025-03-06T02:46:26.606Z (about 1 year ago)
- Topics: flake8, flake8-plugin, python, python-package
- Language: Python
- Homepage: https://pypi.org/project/flake8-if-checker/
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/danie1k/python-flake8-if-checker)
[](https://codecov.io/gh/danie1k/python-flake8-if-checker)
[](https://pypi.org/project/flake8-if-checker/)
[](https://pypi.org/project/flake8-if-checker/)
[](https://github.com/danie1k/python-flake8-if-checker/blob/master/LICENSE)
[](https://github.com/danie1k/python-flake8-if-checker/actions)
# flake8-if-checker
[Flake8](https://pypi.org/project/flake8/)'s `IF` statement complexity linter plugin.
## Table of Contents
1. [About the Project](#about-the-project)
1. [Installation](#installation)
1. [Configuration](#configuration)
1. [Known issues](#known-issues)
1. [License](#license)
## About the Project
This plugins adds one new flake8 warning.
`IF01` Too many conditions in IF/ELIF Statement/Expression.
## Installation
```
pip install flake8-if-checker
```
## Configuration
If using the select [option from flake8](http://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-select)
be sure to enable the `IF` category as well.
## Known issues
- In Python 3.8 does not work with flake8 < 3.8
- Does not work with Python 3.9
## License
MIT