wemake-services / Flake8 Eradicate
Licence: mit
Flake8 plugin to find commented out or dead code
Stars: ✭ 184
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Flake8 Eradicate
Git Cop
DEPRECATED: Use Git Lint (https://www.alchemists.io/projects/git-lint) instead.
Stars: ✭ 352 (+91.3%)
Mutual labels: linter, code-quality
Flake8 Bugbear
A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
Stars: ✭ 518 (+181.52%)
Mutual labels: linter, code-quality
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (-15.22%)
Mutual labels: linter, code-quality
Sonar Jproperties Plugin
SonarQube Java Properties Analyzer
Stars: ✭ 5 (-97.28%)
Mutual labels: linter, code-quality
Pylint
It's not just a linter that annoys you!
Stars: ✭ 3,733 (+1928.8%)
Mutual labels: linter, code-quality
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (-80.43%)
Mutual labels: linter, code-quality
Sonarts
Static code analyzer for TypeScript
Stars: ✭ 776 (+321.74%)
Mutual labels: linter, code-quality
Undercover
Actionable code coverage - detects untested code blocks in recent changes
Stars: ✭ 574 (+211.96%)
Mutual labels: linter, code-quality
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+2367.93%)
Mutual labels: linter, code-quality
Wemake Python Styleguide
The strictest and most opinionated python linter ever!
Stars: ✭ 1,714 (+831.52%)
Mutual labels: linter, code-quality
Wotan
Pluggable TypeScript and JavaScript linter
Stars: ✭ 271 (+47.28%)
Mutual labels: linter, code-quality
Pmd
An extensible multilanguage static code analyzer.
Stars: ✭ 3,667 (+1892.93%)
Mutual labels: linter, code-quality
megalinter
🦙 Mega-Linter analyzes 48 languages, 22 formats, 19 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
Stars: ✭ 534 (+190.22%)
Mutual labels: linter, code-quality
Solhint
Solhint is an open source project created by https://protofire.io. Its goal is to provide a linting utility for Solidity code.
Stars: ✭ 363 (+97.28%)
Mutual labels: linter, code-quality
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (-53.26%)
Mutual labels: linter, code-quality
flake8-broken-line
🚨 Flake8 plugin to forbid backslashes (\) for line breaks
Stars: ✭ 85 (-53.8%)
Mutual labels: linter, code-quality
Pep8speaks
A GitHub app to automatically review Python code style over Pull Requests
Stars: ✭ 546 (+196.74%)
Mutual labels: linter, code-quality
Static Analysis
⚙️ A curated list of static analysis (SAST) tools for all programming languages, config files, build tools, and more.
Stars: ✭ 9,310 (+4959.78%)
Mutual labels: linter, code-quality
flake8-eradicate
flake8
plugin to find commented out (or so called "dead") code.
This is quite important for the project in a long run.
Based on eradicate
project.
Installation
pip install flake8-eradicate
It is also a valuable part of wemake-python-styleguide
.
Usage
Run your flake8
checker as usual.
Commented code should raise an error.
Example:
flake8 your_module.py
Options
-
--eradicate-aggressive
to enable aggressive mode fromeradicate
, can lead to false positives -
--eradicate-whitelist
to overwrite the whitelist fromeradicate
(#
separated list) -
--eradicate-whitelist-extend
to extend the whitelist fromeradicate
(#
separated list)
Error codes
Error code | Description |
---|---|
E800 | Found commented out code |
Output example
Here's how output looks like (we are using wemake
formatter):
License
MIT.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].