Skip to content

Commit d97817e

Browse files
Merge branch 'main' into feature/issue/350
2 parents 4e2d67f + f372e11 commit d97817e

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

docs/changelog.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ description: The latest updates and changes to CodeRabbit.
55
sidebar_position: 13
66
---
77

8-
### May 30, 2025
8+
## June 5, 2025
99

10-
#### New Static Analysis Tool
10+
### Enhanced Static Analysis: Dotenv Linter and Pylint Support
1111

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

14-
- **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.
14+
- [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.
15+
16+
- [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.
1517

1618
## May 25, 2025
1719

docs/tools/dotenv.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Dotenv Linter
3+
sidebar_label: Dotenv Linter
4+
description: CodeRabbit's guide to Dotenv Linter.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[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.
14+
15+
:::note
16+
17+
Dotenv Linter does not require configuration to run and automatically anlysises `.env` files. If no configuration file is found, it will use default settings.
18+
19+
:::
20+
21+
## Features
22+
23+
Dotenv Linter can detect:
24+
25+
- Key duplication
26+
- Missing values
27+
- Incorrect formatting
28+
- Invalid characters
29+
- And many more issues
30+
31+
## Links
32+
33+
- [Dotenv Linter GitHub Repository](https://github.com/dotenv-linter/dotenv-linter)

docs/tools/list.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
1818
| Cppcheck | [Cppcheck][Cppcheck] | Code Quality |
1919
| CSS | [Biome][Biome] | Code Quality |
2020
| Docker | [Hadolint][Hadolint], [Checkov][Checkov] | Code Quality, Code Security |
21+
| Environment Files (.env) | [Dotenv Linter][DotenvLinter] | Code Quality |
2122
| GitHub Actions | [actionlint][actionlint], [Pipeline Remediation][Pipeline] | Code Quality, CI/CD Failure Remediation |
2223
| GitLab Pipelines | [Pipeline Remediation][Pipeline] | CI/CD Failure Remediation |
2324
| Go | [golangci-lint][golangci-lint] | Code Quality |
@@ -78,3 +79,4 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
7879
[Brakeman]: /tools/brakeman.md
7980
[Clippy]: /tools/clippy.md
8081
[Pylint]: /tools/pylint.md
82+
[DotenvLinter]: /tools/dotenv.md

static/schema/schema.v2.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,19 @@
895895
"additionalProperties": false,
896896
"default": {},
897897
"description": "Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. | v7.0.2"
898+
},
899+
"dotenvLint": {
900+
"type": "object",
901+
"properties": {
902+
"enabled": {
903+
"type": "boolean",
904+
"default": true,
905+
"description": "Enable dotenv-linter | dotenv-linter is a tool for checking and fixing .env files for problems and best practices | v3.3.0"
906+
}
907+
},
908+
"additionalProperties": false,
909+
"default": {},
910+
"description": "dotenv-linter is a tool for checking and fixing .env files for problems and best practices"
898911
}
899912
},
900913
"additionalProperties": false,

0 commit comments

Comments
 (0)