Module rules

Module rules 

Source
Expand description

Rule system framework for dclint.

Provides the infrastructure for defining and running Docker Compose linting rules. Follows the hadolint-rs pattern with:

  • Rule trait for all rules
  • SimpleRule for stateless checks
  • FixableRule for 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§

FixableRule
Base implementation for a fixable rule.
LintContext
Context for linting a compose file.
RuleDefinition
Rule definition for documentation/introspection.
SimpleRule
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.