mrkeyoor.comAsk

golangci/golangci-linttested 08 Oct 2026commit d9df2fa

golangci-lint review

Use golangci-lint when several Go analyzers need shared configuration and someone will maintain that policy.

  • Install 116 s
  • Build 107 s
202/202tests passed
  • 400 packages
Dev Toolsevaluationupdated 16 Nov 2026
+8stars / 7d

golangci-lint is a Go linter runner for teams maintaining several analyzers together. Its README documents parallel execution, caching, YAML configuration and IDE integrations. These are upstream capabilities; our source run did not measure their effect on an application's lint workflow.

Verdict

Use golangci-lint when several Go analyzers need shared configuration and someone will maintain that policy. Our source installation, build and test commands succeeded at d9df2fa; their outcomes do not establish application correctness or adoption readiness. Try a pinned binary and your intended checks on your repository before requiring it in CI. Choose standalone Staticcheck if its scope is sufficient, and review automatic edits before merging.

We ran it

Lab card: what happened when we ran golangci-lint
Lab card from our sandbox run
Screenshot of golangci-lint (golangci-lint.run)
golangci-lint.run
Install✓ · 116s400 packages
Build✓ · 107s
Tests✓ · 392s202 passed · 0 failed of 202 (go test)
Repo1844 files~75,235 lines of source · 14.2 MB · 9 CI workflows · tests dir

Answers from our run

Does golangci-lint build from source?

Dependencies installed in 116 seconds (400 packages), and the build succeeded in 107 seconds. We cloned commit d9df2fa into a clean Debian container with 3 CPUs and no project-specific setup.

Do golangci-lint's tests pass?

Yes. The project's own test command finished in 392 seconds and reported 202 passed, 0 failed (go test).

Who should not use golangci-lint?

Projects whose analysis needs are already met by standalone Staticcheck.

What are the alternatives to golangci-lint?

Staticcheck, gosec. Use golangci-lint when several Go analyzers need shared configuration and someone will maintain that policy.

Setup3/5Our source checkout installed in 116 s and built in 107 s, a heavy install of 400 dependencies, and we did not run a README task.Editor’s note: Source installation, build and test commands succeeded at d9df2fa. The parser recorded 202 passing package results, with coverage limits. Routine binary installation and application-policy setup were not exercised.
Docs3/5The 661-character README has no usage instructions or examples of its own and points to separate documentation, which we did not assess.Editor’s note: The supplied installation and FAQ extracts explain binary installation, compiler compatibility and diff-filter limitations. Reading these instructions does not establish that the ordinary adoption workflow works as documented.
Community5/5Last push on 2026-11-15 and 19,533 stars.Editor’s note: The supplied issue identifies a report and a completed closure linked to PR #6816. One issue cannot establish typical response times, sustained participation or adoption.
Maturity5/5Latest release v2.15.0 on 2026-10-16, repository created 2018-05-04 and its test suite passed in our sandbox (202 of 202 passed).Editor’s note: One checkout's successful command outcomes do not establish reliability across applications or releases. Automatic-fix behavior and the release carrying the linked resolution were not verified.

How we score

Discussed on

  1. hnGolangci-lint: next generation of Go linters runner, 5x faster than gometalinter26 points
  2. hnWelcome to Golangci-Lint v24 points

Who it’s for

Go teams that want several analyzers under a shared configuration.
Maintainers prepared to pin the runner and review configuration changes during upgrades.
Teams introducing checks gradually using the documented diff filters.

Who it’s NOT for

Projects whose analysis needs are already met by standalone Staticcheck.
Teams seeking measured lint throughput or false-positive rates on their application: this run supplies neither.
Users expecting compilation errors to be suppressible lint rules: typecheck problems block analysis.

Setup reality

Our October 8, 2026 sandbox run at commit d9df2fa recorded successful installation in 116 seconds, a successful build in 107 seconds and a successful test command in 392 seconds. Installation recorded 400 dependencies. Each command returned exit code zero without timing out. The sandbox configuration specified 3 CPUs, 8 GB RAM and image golang:1.24-bookworm.

The parser recorded 202 passing Go package results and zero failing package results. That is not a count of individual test cases or proof of exhaustive coverage. The supplied previous page records packages without tests and successful lines marked [no tests to run]. No complete-log reconciliation was performed.

The installation guide recommends binary installation and includes commands pinned to v2.15.0. Those documentation examples were not executed for this correction. Our measured checkout is d9df2fa, not a verified test of that release. The supplied previous page also records a Go 1.26.0 download in the install tail, so the image label cannot establish that every command used Go 1.24. For adoption, select a compatible released binary, pin it alongside the configuration and validate the intended checks on your application.

Choose it when several Go analyzers need shared configuration

Use golangci-lint when your team wants several Go checks configured together and will maintain that policy as the runner changes. Its README documents parallel execution, caching, YAML configuration and IDE integrations. Our run did not benchmark those capabilities on an application.

If Staticcheck alone covers your policy, its standalone command may be sufficient. For a shared runner, begin with checks the team understands, pin the binary alongside the configuration and review the findings on your own repository before making lint a required CI check.

What happened when we ran it

On October 8, 2026, our sandbox recorded successful installation in 116 seconds, a successful build in 107 seconds and a successful test command in 392 seconds for commit d9df2fa. Each command returned exit code zero without timing out.

Recorded step Result
Installation Succeeded in 116 seconds; 400 dependencies recorded
Build Succeeded in 107 seconds
Test command Succeeded in 392 seconds
Parser summary 202 passing Go package results; zero failing package results
Sandbox configuration 3 CPUs, 8 GB RAM, golang:1.24-bookworm image

The package summary is not a count of individual test cases. The supplied previous page records packages without tests and successful package lines marked [no tests to run]. Those lines do not prove that test cases executed. Without a complete-log reconciliation, the summary does not establish exhaustive unique coverage.

The supplied previous page records a Go 1.26.0 download in the installation tail and vet-exit:0 in the build tail. The image label therefore cannot establish that the entire run used Go 1.24.

These are command outcomes for one checkout. They do not measure application lint throughput, cache performance, peak memory, false positives or automatic-fix correctness. The audit field is null, so the run supplies no security assessment. The test-command duration is not a prediction of lint time on your service.

Prefer a pinned binary for routine installation

The installation guide recommends binary installation. Its supplied examples pin v2.15.0, including the published container image. These are documentation examples, not commands executed for this correction. The recorded source run belongs to d9df2fa and does not verify v2.15.0 behavior.

The guide warns that source installation depends on the local compiler and can produce dependency combinations upstream has not tested. It also warns that tool dependencies can affect other tools or the project, and that module replacement directives do not apply transitively. Successful source commands in our sandbox do not remove those concerns.

Choose the binary and Go compatibility together. Keep developers and CI on the same selected runner, then validate its configuration against the application.

Resolve compilation problems before interpreting lint results

The FAQ says golangci-lint generally supports Go versions no newer than the Go version used to compile it. Supporting a new Go version can also require changes to analyzers or internal components.

The FAQ describes typecheck as a way to report compilation and related errors, rather than an optional linter. Such errors block analysis. Check that the whole package builds, dependencies are available and the runner uses a compatible compiler. Projects using CGO also need the required system libraries; private modules need suitable module and Git access.

Decide what new-code filtering should include

The FAQ documents filtering against a merge base or revision to introduce checks without first fixing every existing finding. It also explains the boundary: diff filtering compares diagnostic lines with changed lines. A finding elsewhere in a modified file can be skipped.

The whole-files option includes findings elsewhere in touched files, which can bring older problems into the report. Choose that trade-off deliberately. A quiet filtered result does not establish that the repository has no other findings. These options were read in documentation and were not exercised in our run.

Treat the automatic-fix report as historical evidence

In issue #6671, taran-p reports that modernize's atomictype fixes spanning multiple files placed edits in the diagnostic's file and broke the code. The report identifies golangci-lint v2.12.2.

The supplied issue timeline says it was closed as completed in PR #6816 on September 24, 2026. The PR contents, the release carrying the resolution and current behavior were not verified. This report therefore does not establish that v2.15.0 has the same defect.

For automatic edits, use a clean branch, inspect the diff and run the application's checks before merging. That is a review practice; our sandbox did not reproduce the report or validate its resolution.

Compare the scope you need

Staticcheck finds bugs and performance issues, offers simplifications, and enforces style rules. gosec scans Go AST and SSA code representations for security problems.

Choice Choose it when
golangci-lint Several analyzers need shared configuration
Staticcheck Its analysis scope covers your Go policy
gosec A dedicated Go security checker covers the task

These are scope comparisons. Our run did not compare their speed, findings or installation workflows.

What remains unassessed

Setup ease, documentation, community and maturity remain unassessed numerically. The source commands succeeded, but routine binary adoption and a real application's lint policy were not exercised. The documentation extracts explain useful boundaries; the issue sample does not establish typical support or reliability.

The next useful check is to run your intended policy on code your team knows, examine the findings and review the configuration before requiring it in CI.

Alternatives

ProjectWhat it isPick it when
StaticcheckA Go analyzer that finds bugs and performance issues, offers simplifications and enforces style rules.Choose its standalone command when those checks cover your policy without a broader analyzer runner.
gosecA Go security checker that scans AST and SSA code representations for security problems.Choose it directly when a dedicated Go security checker is the scope you need.

Sources

  1. golangci-lint README
  2. Local installation, including v2.15.0-pinned examples
  3. FAQ
  4. Historical v2.12.2 cross-file fix report and closure timeline
  5. Staticcheck README
  6. gosec README

More dev tools reviews