All Projects → wemake-services → flake8-broken-line

wemake-services / flake8-broken-line

Licence: MIT License
🚨 Flake8 plugin to forbid backslashes (\) for line breaks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to flake8-broken-line

Editorconfig Checker
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 119 (+40%)
Mutual labels:  lint, linting, linter, code-quality
flake8-simplify
❄ A flake8 plugin that helps you to simplify code
Stars: ✭ 97 (+14.12%)
Mutual labels:  linter, flake8, code-quality, flake8-plugin
Wemake Python Styleguide
The strictest and most opinionated python linter ever!
Stars: ✭ 1,714 (+1916.47%)
Mutual labels:  linter, flake8, code-quality, flake8-plugin
Ansible Lint Action
GitHub Action for running ansible-lint as part of your workflows! [ https://github.com/marketplace/actions/ansible-lint ]
Stars: ✭ 124 (+45.88%)
Mutual labels:  lint, linting, linter
Gitlint
Linting for your git commit messages
Stars: ✭ 404 (+375.29%)
Mutual labels:  lint, linting, linter
Eslint Plugin Import
ESLint plugin with rules that help validate proper imports.
Stars: ✭ 3,722 (+4278.82%)
Mutual labels:  lint, linting, code-quality
JSONCustomLintr
Library to allow creation, running, and reporting of custom lint rules for JSON files
Stars: ✭ 19 (-77.65%)
Mutual labels:  lint, linting, linter
elm-lint
elm-lint lints Elm source code, to add additional guarantees to your project.
Stars: ✭ 27 (-68.24%)
Mutual labels:  lint, linting, linter
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (+83.53%)
Mutual labels:  lint, linter, code-quality
dockerfile-utils
A library and command line interface for formatting and linting Dockerfiles.
Stars: ✭ 17 (-80%)
Mutual labels:  lint, linting, linter
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (-65.88%)
Mutual labels:  lint, linting, linter
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+5242.35%)
Mutual labels:  lint, linter, code-quality
Detekt
Static code analysis for Kotlin
Stars: ✭ 4,169 (+4804.71%)
Mutual labels:  lint, linter, code-quality
therapist
Work out your commitment issues.
Stars: ✭ 29 (-65.88%)
Mutual labels:  lint, linting, linter
eslint-plugin-import
ESLint plugin with rules that help validate proper imports.
Stars: ✭ 4,290 (+4947.06%)
Mutual labels:  lint, linting, code-quality
Ue4 Style Guide
An attempt to make Unreal Engine 4 projects more consistent
Stars: ✭ 2,656 (+3024.71%)
Mutual labels:  lint, linting, linter
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (+1.18%)
Mutual labels:  linting, linter, code-quality
Flakehell
Flake8 wrapper to make it nice, legacy-friendly, configurable.
Stars: ✭ 217 (+155.29%)
Mutual labels:  linting, linter, code-quality
ue5-style-guide
An attempt to make Unreal Engine 4 projects more consistent
Stars: ✭ 2,892 (+3302.35%)
Mutual labels:  lint, linting, linter
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+363.53%)
Mutual labels:  lint, linting, linter

flake8-broken-line

wemake.services Build Status codecov Python Version PyPI version wemake-python-styleguide

Do not break the line! 🚨

Installation

pip install flake8-broken-line

It is also a valuable part of wemake-python-styleguide.

Code example

Things we check with this plugin:

# String line breaks, use `()` or `"""` instead:

some_string = 'first line\
second line'

# Use a single line, `()`, or new variables instead:

if 1 == 1 and \
    2 == 2:
    print('Do not do that!')

# Do not use for method chaining:
some_object \
  .call_method(param1, param2) \
  .call_other(keyword=value) \
  .finalize()

# Instead use:
some_objects.call_method(
    param1, param2,
).call_other(
    keyword=value
).finalize()

Error codes

Error code Description
N400 Found backslash that is used for line breaking

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