Go Language Support

Summary

FeatureStatusNotes
MaintainabilityComplexity, duplication, code smells
Linting
Auto-formatting
Custom checks
Security scanningAppSec, dependencies, and secrets
Code metrics
Code coverage

Details

Maintainability
ComplexityAka cognitive complexity
Cyclomatic complexity
Identical code duplication
Similar code duplication
Code smells
Linters
golangci-lintFast Go linters runner
radarlint-goStatic analysis tool
Auto-formatters
gofmtStandard Go formatter
Custom checks
ast-grep
Semgrep
ripgrep
Security scanning
GitleaksSecrets scanning
OSV-ScannerDependency scanning (SCA)
radarlint-goAppSec (SAST)
SemgrepAppSec (SAST)
TrivyDependency scanning (SCA)
TruffleHogSecrets scanning
Code coverage
go test
Clover coverage format
Cobertura coverage format

File extensions

By default, Go files are defined as:

[file_types.go]
globs = ["*.go"]

These patterns can be overridden from qlty.toml.

Supported Go versions

We officially support Go 1.13 and later for maintainability checks and code coverage. Each plugin may have its own version requirements.