MCPcopy
hub / github.com/golangci/golangci-lint

github.com/golangci/golangci-lint @v2.12.2 sqlite

repository ↗ · DeepWiki ↗ · release v2.12.2 ↗
4,412 symbols 11,649 edges 1,092 files 576 documented · 13%
README

golangci-lint logo

golangci-lint

Fast linters runner for Go


golangci-lint is a fast Go linters runner.

It runs linters in parallel, uses caching, supports YAML configuration, integrates with all major IDEs, and includes over a hundred linters.

Install golangci-lint

Documentation

Documentation is hosted at https://golangci-lint.run.

Social Networks

Join Slack Follow on Mastodon Follow on Bluesky Follow on Twitter

Support Us

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, we appreciate it! :heart:

Golangci-lint Linter Authors

Badges

Build Status License Release Docker GitHub Releases Stats of golangci-lint

Contributors

This project exists thanks to all the people who contribute. How to contribute.

Sponsors

 

  <img alt="The complete IDE crafted for professional Go developers." src="https://github.com/golangci/golangci-lint/raw/v2.12.2/assets/goland.svg" width="150" />

Stargazers over time

Stargazers over time

Extension points exported contracts — how you extend this code

Processor (Interface)
(no doc) [20 implementers]
pkg/result/processors/processor.go
File (Interface)
(no doc) [32 implementers]
pkg/commands/internal/migrate/parser/parser.go
Formatter (Interface)
(no doc) [6 implementers]
pkg/goformatters/formatters.go
Builder (Interface)
(no doc) [5 implementers]
pkg/lint/lintersdb/manager.go
Server (Interface)
opaque [3 implementers]
pkg/golinters/iface/testdata/iface_opaque.go
Cache (Interface)
Cache is the interface as used by the cmd/go. [2 implementers]
internal/go/cache/cache.go
Log (Interface)
(no doc) [3 implementers]
pkg/logutils/log.go
BaseConfig (Interface)
(no doc) [2 implementers]
pkg/config/base_loader.go

Core symbols most depended-on inside this repo

Errorf
called by 455
pkg/logutils/log.go
Equal
called by 178
pkg/golinters/protogetter/testdata/proto/test.go
Run
called by 166
pkg/lint/linter/linter.go
WithLoadMode
called by 129
pkg/goanalysis/linter.go
NewConfig
called by 123
pkg/lint/linter/config.go
WithSince
called by 121
pkg/lint/linter/config.go
WithURL
called by 120
pkg/lint/linter/config.go
RunTestdata
called by 118
test/testshared/integration/run.go

Shape

Function 2,530
Method 870
Struct 825
Interface 98
TypeAlias 72
FuncType 17

Languages

Go100%

Modules by API surface

pkg/config/linters_settings.go123 symbols
pkg/commands/internal/migrate/versiontwo/linters_settings.go107 symbols
pkg/commands/internal/migrate/versionone/linters_settings.go99 symbols
pkg/golinters/nilnil/testdata/nilnil.go79 symbols
pkg/commands/internal/migrate/migrate_linters_settings.go79 symbols
pkg/golinters/nonamedreturns/testdata/nonamedreturns.go37 symbols
internal/go/cache/cache.go34 symbols
pkg/golinters/interfacebloat/testdata/interfacebloat.go32 symbols
pkg/commands/internal/migrate/migrate_linter_names.go31 symbols
pkg/golinters/protogetter/testdata/proto/test.pb.go29 symbols
pkg/goanalysis/linter.go29 symbols
pkg/commands/run.go28 symbols

Dependencies from manifests, versioned

4d63.com/gocheckcompilerdirectivesv1.3.0 · 1×
4d63.com/gochecknoglobalsv0.2.2 · 1×
charm.land/lipgloss/v2v2.0.3 · 1×
codeberg.org/chavacava/garifv0.2.0 · 1×
codeberg.org/polyfloyd/go-errorlintv1.9.0 · 1×
dev.gaijin.team/go/exhaustruct/v4v4.0.0 · 1×
dev.gaijin.team/go/golibv0.6.0 · 1×
github.com/4meepo/tagalignv1.4.3 · 1×
github.com/Abirdcfly/dupwordv0.1.7 · 1×
github.com/AdminBenni/iota-mixingv1.0.0 · 1×
github.com/AlwxSin/noinlineerrv1.0.5 · 1×
github.com/Antonboom/errnamev1.1.1 · 1×

For agents

$ claude mcp add golangci-lint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact