Skip to main content
Runs static checks over the local project. Use these in pre-commit hooks or CI to catch duplicate IDs and config drift before runs. For schema, file-reference, and entity ID validation of simplified format YAML, see momentic lint.

duplicate-ids

Detect duplicate step and command IDs across tests and modules. For simplified format projects, this delegates to momentic lint.

Options

boolean
Rename duplicate IDs in legacy YAML files to make them unique. Simplified format projects delegate to lint, which reports conflicts without fixing them.

duplicate-names

Detect duplicate test and module names so every entity is uniquely identifiable.

unused

Report modules that are not reachable from any test. The check follows module references and finds .module.yaml files left unused after tests are deleted or refactored. Exits non-zero when unused modules are found.

config

Validate momentic.config.yaml against the configuration schema.

Common flags

string
Path to the Momentic configuration file. When omitted, Momentic searches the current directory and its parents for momentic.config.yaml or a workspace configuration. Use this flag to select a project when discovery finds more than one.

Examples

Detect and auto-fix duplicate IDs: