Overview
Catch common issues and enforce best practices in Tolk code
TODO: Should probably just be a comprehensive single page on linting, and then reference rules separately.
This section contains guides and reference documentation for Acton's linter.
acton check helps catch common issues and enforce best practices in Tolk code.
It supports project-wide checks, target-specific checks, automatic fixes, JSON output, SARIF reports, GitHub annotations, and GitLab Code Quality reports.
Basic Usage
acton check
acton check Counter
acton check contracts/Counter.tolkCommon Workflows
# Apply automatic fixes where available
acton check --fix
# Explain a specific diagnostic code
acton check --explain E002
# Machine-readable output
acton check --output-format json
acton check --output-format sarif
acton check --output-format github
acton check --output-format gitlabLearn more
Configuration
Configure lint policy with [lint], [lint.rules], per-contract overrides, exclude, and max-warnings.
Outputs and CI
Use JSON, SARIF, GitHub, and GitLab outputs, and configure CI behavior via exit codes and warning thresholds.
Rules
Browse all lint checks, diagnostic codes, stability status, and quick-fix availability.
Last updated on