Skip to content

Dotenv documentation #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ description: The latest updates and changes to CodeRabbit.
sidebar_position: 13
---

### May 30, 2025
## June 5, 2025

#### New Static Analysis Tool
### Enhanced Static Analysis: Dotenv Linter and Pylint Support

We're excited to announce that [Pylint](https://github.com/PyCQA/pylint) is now supported on CodeRabbit!
We're excited to announce that two new static analysis tools are now supported on CodeRabbit!

- **Pylint**: A widely used static analysis and code quality tool for Python. It checks for errors, enforces a coding standard, and looks for code smells in your Python codebase by analyzing Python files.
- [Dotenv Linter](https://github.com/dotenv-linter/dotenv-linter) is a fast, opinionated linter for `.env` files that helps prevent misconfigurations by detecting typos, invalid syntax, and duplicated keys.

- [Pylint](https://github.com/PyCQA/pylint) is a widely used static analysis and code quality tool for Python. It checks for errors, enforces coding standards, and looks for code smells in your Python codebase.

## May 25, 2025

Expand Down
33 changes: 33 additions & 0 deletions docs/tools/dotenv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Dotenv Linter
sidebar_label: Dotenv Linter
description: CodeRabbit's guide to Dotenv Linter.
---

```mdx-code-block
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
<ProPlanNotice />
```

[Dotenv Linter](https://github.com/dotenv-linter/dotenv-linter) is a lightning-fast linter for `.env` files. It helps ensure your environment files are consistent, typo-free, and follow best practices.

:::note

Dotenv Linter does not require configuration to run and automatically anlysises `.env` files. If no configuration file is found, it will use default settings.

:::

## Features

Dotenv Linter can detect:

- Key duplication
- Missing values
- Incorrect formatting
- Invalid characters
- And many more issues

## Links

- [Dotenv Linter GitHub Repository](https://github.com/dotenv-linter/dotenv-linter)
2 changes: 2 additions & 0 deletions docs/tools/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
| Cppcheck | [Cppcheck][Cppcheck] | Code Quality |
| CSS | [Biome][Biome] | Code Quality |
| Docker | [Hadolint][Hadolint], [Checkov][Checkov] | Code Quality, Code Security |
| Environment Files (.env) | [Dotenv Linter][DotenvLinter] | Code Quality |
| GitHub Actions | [actionlint][actionlint], [Pipeline Remediation][Pipeline] | Code Quality, CI/CD Failure Remediation |
| GitLab Pipelines | [Pipeline Remediation][Pipeline] | CI/CD Failure Remediation |
| Go | [golangci-lint][golangci-lint] | Code Quality |
Expand Down Expand Up @@ -78,3 +79,4 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
[Brakeman]: /tools/brakeman.md
[Clippy]: /tools/clippy.md
[Pylint]: /tools/pylint.md
[DotenvLinter]: /tools/dotenv.md