# go-critic/go-critic

The most opinionated Go source code linter for code audit.

Repository: https://github.com/go-critic/go-critic
Canonical: https://ross.abutalabs.com/products/go-critic
Homepage: https://go-critic.com
Language: Go
License: MIT
License Family: permissive
Topics: linter, golang, go, style-checker, conventions, idiomatic-go, lintpack, go-lintpack, hacktoberfest, ruleguard
Last push: 2026-06-26T20:18:06+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 78, longevity 100
- inputs: {"age_days": 3042, "days_push": 68, "days_rel": 70, "gap_med": 69, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2065, forks 137 (observed 2026-08-28T04:06:10.100955+00:00)

## What it is
go-critic is an opinionated Go source code linter offering nearly 100 checks for bugs, performance, and style issues not covered by other linters. It is extensible with dynamic ruleguard rules and integrates with golangci-lint.

## Use cases
- lint go code for style and idiomatic issues
- find performance problems in go source
- catch common go programming errors
- enforce strict opinionated go conventions
- add custom lint rules without recompiling
- run extra checks alongside golangci-lint

## When to choose
- you want go checks missing from other linters
- you need opinionated style enforcement for go
- you want to prototype custom checkers via ruleguard

## When to avoid
- you need a general-purpose linter with broad ecosystem support
- you dislike opinionated or strict checks
- you lint languages other than go

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, developer-tools, cli
- domain: developer-tools, programming-languages, testing
- platform: go, cli, cross-platform, windows
- tags: static-analysis, code-quality, golang, style-checker, ruleguard, golangci-lint, macos, linux

## Member repositories
- go-critic/go-critic (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:10.100955+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:55.547407+00:00, confidence not recorded.
  - readme: https://github.com/go-critic/go-critic (fetched 2026-08-28T04:06:10.100955+00:00, sha 58613b5b9b00)
  - homepage: https://go-critic.com (fetched 2026-08-29T10:37:11.833549+00:00, sha 523c94b70d9c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
