Acton
Linting

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.tolk

Common 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 gitlab

Learn more

Last updated on

On this page