Skip to content

Commit 762cfa3

Browse files
Alex Holmbergclaude
authored andcommitted
feat(dclint): add native Rust Docker Compose linter
This commit introduces dclint, a Rust implementation of Docker Compose linting inspired by docker-compose-linter (https://github.com/zavoloklom/docker-compose-linter) by Sergey Suspended, rebuilt natively for Rust integration. ## DCLint (src/analyzer/dclint/) Native Docker Compose linting without external dependencies: - Complete Docker Compose YAML parser - 15 lint rules (DCL001-DCL015 series) - Pragma support for inline rule configuration - Configurable severity thresholds ### Rules Implemented - DCL001-DCL015: Service configuration validation - Build context, image naming, port mapping checks - Environment variable and volume mount validation - Network and dependency configuration linting ### Formatters (src/analyzer/dclint/formatter/) - JSON: Machine-readable for CI/CD pipelines - Stylish: Colored terminal output - GitHub: GitHub Actions annotations format ## Agent Integration (src/agent/tools/dclint.rs) AI-optimized tool for compose file validation with structured output for agent consumption. ## Attribution This implementation is inspired by docker-compose-linter (https://github.com/zavoloklom/docker-compose-linter) by Sergey Suspended. The original project is licensed under MIT. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0b8a592 commit 762cfa3

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

docker-compose-linter

Lines changed: 0 additions & 1 deletion
This file was deleted.

forge

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)