Expand description
Rule system framework for dclint.
Provides the infrastructure for defining and running Docker Compose linting rules. Follows the hadolint-rs pattern with:
Ruletrait for all rulesSimpleRulefor stateless checksFixableRulefor rules that can auto-fix issues
Modules§
- dcl001
- DCL001: no-build-and-image
- dcl002
- DCL002: no-duplicate-container-names
- dcl003
- DCL003: no-duplicate-exported-ports
- dcl004
- DCL004: no-quotes-in-volumes
- dcl005
- DCL005: no-unbound-port-interfaces
- dcl006
- DCL006: no-version-field
- dcl007
- DCL007: require-project-name-field
- dcl008
- DCL008: require-quotes-in-ports
- dcl009
- DCL009: service-container-name-regex
- dcl010
- DCL010: service-dependencies-alphabetical-order
- dcl011
- DCL011: service-image-require-explicit-tag
- dcl012
- DCL012: service-keys-order
- dcl013
- DCL013: service-ports-alphabetical-order
- dcl014
- DCL014: services-alphabetical-order
- dcl015
- DCL015: top-level-properties-order
Structs§
- Fixable
Rule - Base implementation for a fixable rule.
- Lint
Context - Context for linting a compose file.
- Rule
Definition - Rule definition for documentation/introspection.
- Simple
Rule - Base implementation for a simple (non-fixable) rule.
Traits§
- Rule
- A rule that can check Docker Compose files.
Functions§
- all_
rules - Get all enabled rules.
- make_
failure - Helper to create a check failure for a rule.
- rule_
definitions - Get rule definitions for documentation.