Go Rules
Unfault includes 55 rules for Go, covering core language patterns, goroutine safety, and popular frameworks like Gin, GORM, Echo, gRPC, and Redis.
Core Rules (43 rules)
Section titled “Core Rules (43 rules)”Framework Rules
Section titled “Framework Rules”Gin (2 rules)
Section titled “Gin (2 rules)”| Rule | Dimension | Severity |
|---|---|---|
| missing_validation | Correctness | Medium |
| request_validation | Correctness | High |
Echo (2 rules)
Section titled “Echo (2 rules)”| Rule | Dimension | Severity |
|---|---|---|
| request_validation | Correctness | High |
| missing_middleware | Stability | Medium |
GORM (4 rules)
Section titled “GORM (4 rules)”| Rule | Dimension | Severity |
|---|---|---|
| n_plus_one | Performance | High |
| session_management | Stability | High |
| connection_pool | Scalability | High |
| query_timeout | Stability | High |
gRPC (1 rule)
Section titled “gRPC (1 rule)”| Rule | Dimension | Severity |
|---|---|---|
| missing_deadline | Stability | High |
Redis (2 rules)
Section titled “Redis (2 rules)”| Rule | Dimension | Severity |
|---|---|---|
| missing_ttl | Scalability | High |
| connection_pool | Scalability | High |
net/http (1 rule)
Section titled “net/http (1 rule)”| Rule | Dimension | Severity |
|---|---|---|
| missing_timeout | Stability | Critical |