All Projects → wemake-services → Dotenv Linter

wemake-services / Dotenv Linter

Licence: mit
☺️ Linting dotenv files like a charm!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Dotenv Linter

Flakehell
Flake8 wrapper to make it nice, legacy-friendly, configurable.
Stars: ✭ 217 (+4.83%)
Mutual labels:  linter, linting, code-quality
Swiftlint
Stars: ✭ 15,500 (+7387.92%)
Mutual labels:  linting, linter, code-quality
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (-58.45%)
Mutual labels:  linting, linter, code-quality
Editorconfig Checker
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 119 (-42.51%)
Mutual labels:  linter, linting, code-quality
flake8-broken-line
🚨 Flake8 plugin to forbid backslashes (\) for line breaks
Stars: ✭ 85 (-58.94%)
Mutual labels:  linting, linter, code-quality
Pep8speaks
A GitHub app to automatically review Python code style over Pull Requests
Stars: ✭ 546 (+163.77%)
Mutual labels:  linter, code-quality
Undercover
Actionable code coverage - detects untested code blocks in recent changes
Stars: ✭ 574 (+177.29%)
Mutual labels:  linter, code-quality
Sonarts
Static code analyzer for TypeScript
Stars: ✭ 776 (+274.88%)
Mutual labels:  linter, code-quality
App Githooks
Plugin-based system to run specific actions and checks when git hooks are triggered.
Stars: ✭ 5 (-97.58%)
Mutual labels:  linting, code-quality
Sonar Kotlin
SonarQube plugin for Kotlin
Stars: ✭ 412 (+99.03%)
Mutual labels:  linter, code-quality
Dotenv Linter
⚡️Lightning-fast linter for .env files. Written in Rust 🦀
Stars: ✭ 802 (+287.44%)
Mutual labels:  linter, dotenv
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (-5.31%)
Mutual labels:  linter, linting
Flake8 Eradicate
Flake8 plugin to find commented out or dead code
Stars: ✭ 184 (-11.11%)
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 (+150.24%)
Mutual labels:  linter, code-quality
Stylelint Processor Styled Components
Lint your styled components with stylelint!
Stars: ✭ 639 (+208.7%)
Mutual labels:  linter, linting
Oas Kit
Convert Swagger 2.0 definitions to OpenAPI 3.0 and resolve/validate/lint
Stars: ✭ 516 (+149.28%)
Mutual labels:  linter, linting
Sonar Jproperties Plugin
SonarQube Java Properties Analyzer
Stars: ✭ 5 (-97.58%)
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 (+4397.58%)
Mutual labels:  linter, code-quality
Wemake Python Styleguide
The strictest and most opinionated python linter ever!
Stars: ✭ 1,714 (+728.02%)
Mutual labels:  linter, code-quality
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (-24.64%)
Mutual labels:  linter, code-quality

dotenv-linter

wemake.services Build Status codecov Github Action Python Version Documentation Status


Simple linter for .env files.

dotenv-logo

While .env files are very simple it is required to keep them consistent. This tool offers a wide range of consistency rules and best practices.

And it integrates perfectly to any existing workflow.

Read the announcing post.

Installation and usage

pip install dotenv-linter

And then run it:

dotenv-linter .env .env.template

See Usage section for more information.

Examples

There are many things that can go wrong in your .env files:

# Next line has leading space which will be removed:
 SPACED=

# Equal signs should not be spaced:
KEY = VALUE

# Quotes won't be preserved after parsing, do not use them:
SECRET="my value"

# Beware of duplicate keys!
SECRET=Already defined ;(

# Respect the convention, use `UPPER_CASE`:
kebab-case-name=1
snake_case_name=2

And much more! You can find the full list of violations in our docs.

Pre-commit hooks

dotenv-linter can also be used as a pre-commit hook. To do so, add the following to the .pre-commit-config.yaml file at the root of your project:

repos:
  - repo: https://github.com/wemake-services/dotenv-linter
    rev: 0.2.0  # Use the ref you want to point at
    hooks:
      - id: dotenv-linter

For the more detailed instructions on the pre-commit tool itself, please refer to its website.

Gratis

Special thanks goes to Ignacio Toledo for creating an awesome logo for the project.

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