All Projects → devmanorg → fiasko_bro

devmanorg / fiasko_bro

Licence: MIT license
Yet another static python code validator

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fiasko bro

Codeclimate
Code Climate CLI
Stars: ✭ 2,273 (+8318.52%)
Mutual labels:  static-code-analysis
Eslint Plugin Markdown
Lint JavaScript code blocks in Markdown documents
Stars: ✭ 242 (+796.3%)
Mutual labels:  static-code-analysis
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (+1311.11%)
Mutual labels:  static-code-analysis
Whispers
Identify hardcoded secrets and dangerous behaviours
Stars: ✭ 66 (+144.44%)
Mutual labels:  static-code-analysis
Revive
🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
Stars: ✭ 3,139 (+11525.93%)
Mutual labels:  static-code-analysis
Warnings Ng Plugin
Jenkins Warnings Plugin - Next Generation
Stars: ✭ 248 (+818.52%)
Mutual labels:  static-code-analysis
Eslint Config Standard
ESLint Config for JavaScript Standard Style
Stars: ✭ 2,229 (+8155.56%)
Mutual labels:  static-code-analysis
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (+70.37%)
Mutual labels:  static-code-analysis
Vue Eslint Parser
The ESLint custom parser for `.vue` files.
Stars: ✭ 238 (+781.48%)
Mutual labels:  static-code-analysis
memcheck-cover
An HTML generator for Valgrind's Memcheck tool
Stars: ✭ 30 (+11.11%)
Mutual labels:  static-code-analysis
Forbidden Apis
Policeman's Forbidden API Checker
Stars: ✭ 216 (+700%)
Mutual labels:  static-code-analysis
Progpilot
A static analysis tool for security
Stars: ✭ 226 (+737.04%)
Mutual labels:  static-code-analysis
Phpstan Phpunit
PHPUnit extensions and rules for PHPStan
Stars: ✭ 247 (+814.81%)
Mutual labels:  static-code-analysis
Spotbugs
SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.
Stars: ✭ 2,569 (+9414.81%)
Mutual labels:  static-code-analysis
duplex
Duplicate code finder for Elixir
Stars: ✭ 20 (-25.93%)
Mutual labels:  static-code-analysis
Sputnik
Static code review for your Gerrit patchsets. Runs Checkstyle, PMD, FindBugs, Scalastyle, CodeNarc, JSLint for you!
Stars: ✭ 189 (+600%)
Mutual labels:  static-code-analysis
Dg
[LLVM Static Slicer] Various program analyses, construction of dependence graphs and program slicing of LLVM bitcode.
Stars: ✭ 242 (+796.3%)
Mutual labels:  static-code-analysis
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-48.15%)
Mutual labels:  static-code-analysis
healthier
🧘‍♀️ Healthier is an opinionated style agnostic code linter – a friendly companion to Prettier
Stars: ✭ 78 (+188.89%)
Mutual labels:  static-code-analysis
cmd-call-graph
A simple tool to generate a call graph for calls within Windows CMD (batch) files.
Stars: ✭ 37 (+37.04%)
Mutual labels:  static-code-analysis

Fiasko Bro

When flake8 is not enough.
Build Status codecov Documentation Status Maintainability PyPI version

Fiasko is a static analysis tool for Python code that catches common style errors.

http://melevir.com/static/fiasko.jpg

Example

From command line:

$ fiasko -p ~/projects/fiasko_bro
commit_messages_from_blacklist              add files via upload
too_many_pep8_violations                    33 PEP8 violations
too_difficult_by_mccabe                     has_changed_readme
star_import                                 __init__.py
local_import                                setup.py
has_variables_from_blacklist                name, n
short_variable_name                         i, r, n, t, l
file_too_long                               ast_helpers.py
too_nested                                  code_validator.py:54
indent_not_multiple_of_tab_size             ast_helpers.py:130
variables_that_shadow_default_names         slice
==================================================
Total 11 violations

See fiasko --help for more CLI arguments.

From Python code:

>>> from fiasko_bro import validate
>>> validate('/user/projects/fiasko_bro/')
[('commit_messages_from_blacklist', 'add files via upload'), ('too_many_pep8_violations', '33 PEP8 violations'), ('too_difficult_by_mccabe', 'has_changed_readme'), ('star_import', '__init__.py'), ('local_import', 'setup.py'), ('has_variables_from_blacklist', 'name, n'), ('short_variable_name', 'n, r, l, t, i'), ('file_too_long', 'ast_helpers.py'), ('too_nested', 'code_validator.py:54'), ('indent_not_four_spaces', 'ast_helpers.py:130'), ('variables_that_shadow_default_names', '_, slice')]

The validate method returns list of tuples which consist of an error slug and an error message.

Fiasko has a flexible Python API which you can read more about in the docs.

Installation

With pip:

pip install fiasko_bro

With Pipenv:

pipenv install fiasko_bro

Or just clone the project and install the requirements:

$ git clone https://github.com/devmanorg/fiasko_bro.git
$ cd fiasko_bro
$ pip install -r requirements.txt

Docs

fiasko-bro.readthedocs.io

Contributing

To contribute, pick an issue to work on and leave a comment saying that you've taken the issue. Don't forget to mention when you want to submit the pull request.

You can read more about contribution guidelines in the docs

If your suggestion (or bug report) is new, be sure to create an issue first.

Launch tests

python -m pytest

Versioning

We follow semantic versioning.

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].