Skip to content

Go linting

  • gofumpt
    • Enforce a stricter format than gofmt, while being backwards compatible.
    • sudo pacman -S gofumpt
  • errcheck
    • errcheck finds silently ignored errors in Go code.
    • pamac install errcheck
  • staticcheck
    • sudo pacman -S staticcheck
    • static analysis checker
  • golangci-lint
  • go-ruleguard
    • Define and run pattern-based custom linting rules
    • No Arch/AUR package found
  • go-imports-reviser
    • Right imports sorting & code formatting tool (goimports alternative) pamac install goimports-reviser-bin

pre-commit hooks