Linting Your Stack
gg lint runs your configured lint commands commit-by-commit across the stack.
Configure lint commands
In .git/gg/config.json:
{
"defaults": {
"lint": [
"cargo fmt --check",
"cargo clippy -- -D warnings"
]
}
}
Run lint manually
gg lint
Run only up to a specific entry:
gg lint --until 2
Run lint during sync
gg sync --lint
Skip lint for one sync (even if enabled by default):
gg sync --no-lint