diff --git a/docs/changelog.md b/docs/changelog.md index 2a990f62..6ad52b08 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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 diff --git a/docs/tools/dotenv.md b/docs/tools/dotenv.md new file mode 100644 index 00000000..cac2613f --- /dev/null +++ b/docs/tools/dotenv.md @@ -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'; + + +``` + +[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) diff --git a/docs/tools/list.md b/docs/tools/list.md index b372bccd..7a106a78 100644 --- a/docs/tools/list.md +++ b/docs/tools/list.md @@ -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 | @@ -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