Docker Compose Linter (DCLint) is a utility designed to analyze, validate and fix Docker Compose files. It helps identify errors, style violations, and potential issues, ensuring your configurations are robust, maintainable, and free from common pitfalls.
- DCLint – CLI for static analysis of Docker Compose files.
- GitHub Action – GitHub Action for CI integration.
- Hook for pre-commit – pre-commit hook.
- Gitlab Group – contains GitLab-specific integrations and examples.
- Error Detection: Identifies syntax errors and common issues in Docker Compose files.
- Style Enforcement: Enforces best practices and style guidelines for maintainable configurations.
- Flexible Integration: Can be used locally, in Docker, or integrated into CI/CD pipelines.
- Configurable Rules: Customize the linter's behavior and rules according to your project's needs.
- Auto-fixable Rules: Some rules include an auto-fix mode, allowing you to automatically format and correct certain issues in your files.
- Comments Support: After automated sorting and fixing, comments remain in the correct place, ensuring no important information is lost during the formatting process.
- Anchor Support: Supports YAML anchors for shared configuration sections, with some limitations.
If you find this project helpful, kindly consider showing your appreciation by giving it a star ⭐.
If you have any questions or suggestions, feel free to reach out:
- Email: [email protected]
- Х/Twitter: zavoloklom
- Instagram: zavoloklom
- GitHub: zavoloklom
A detailed devlog and roadmap for DCLint is available on Patreon: patreon.com/c/zavoloklom
Also, you can support this project with a one-time donation or becoming a sponsor: