HomeTutorials › Tools: Git/Build/Test
Tools: Git/Build/Test

Linting

#056 0:12 Part of the Rysh video series

Lint and fix -- the agent runs go vet, staticcheck, and golangci-lint, then cleans up.

Linting — 0:12 walkthrough

What you'll see

  1. Launch rysh in a Go project; double-Esc to prompt mode.
  2. Prompt: "lint this project and fix the warnings."
  3. The lint tool runs go vet, staticcheck, and golangci-lint and returns each finding; no approval to lint.
  4. Fixes are approval-gated file edits; after approving, the agent re-lints to verify.

Commands shown

rysh
lint this project and fix the warnings

Keys used

EnterEscape

Transcript

0:00Lint and fix -- the agent runs go vet, staticcheck, and golangci-lint, then cleans up.

0:03Launch rysh inside your project.

0:08Double-press Escape for prompt mode.

0:13Ask it to lint and fix. The lint tool runs the standard Go linters -- go vet, staticcheck, and golangci-lint -- and returns each finding. Running the linters needs no approval; the agent reads the warnings straight back.

0:30As with build and test, the actual code fixes are approval-gated -- you review the diff before any change is written, then it re-lints to verify.

0:37Clean code, on request -- linters run, fixes reviewed.

Key takeaway
The lint tool runs the standard Go linters and the agent fixes findings, with edits gated by approval.