Calculates cognitive complexities of functions (and methods) in Go source code. (Golang cognitive complexity)
☆461Feb 24, 2026Updated last month
Alternatives and similar repositories for gocognit
Users that are interested in gocognit are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Calculate cyclomatic complexities of functions in Go source code.☆1,551Dec 27, 2025Updated 3 months ago
- Moved to https://codeberg.org/polyfloyd/go-errorlint☆314Nov 1, 2025Updated 5 months ago
- ☆55Oct 16, 2024Updated last year
- Go linter to detect erroneous multiplication of duration values☆49Oct 24, 2025Updated 5 months ago
- Magic number detector for Go.☆207Dec 21, 2023Updated 2 years ago
- Proton VPN Special Offer - Get 70% off • AdSpecial partner offer. Trusted by over 100 million users worldwide. Tested, Approved and Recommended by Experts.
- 🚔 Enforce field tags in (un)marshaled structs☆40Jan 19, 2026Updated 2 months ago
- Go linter for forbidding identifiers☆164Oct 25, 2025Updated 5 months ago
- A Go linter to check that errors from external packages are wrapped☆374Nov 24, 2025Updated 4 months ago
- ☆43Dec 16, 2024Updated last year
- Linter to detects the overuse or misuse of interfaces in Go code AKA "Interface Pollution"☆17Feb 26, 2026Updated last month
- Go linter that checks if package imports are in a list of acceptable packages.☆198Mar 6, 2025Updated last year
- A linter to ensure that slices are not initialized with non-zero length☆78Oct 25, 2025Updated 5 months ago
- noctx finds function calls without context.Context.☆220Mar 11, 2026Updated 3 weeks ago
- ␊ whitespace linter - Forces you to use empty lines!☆348Mar 25, 2026Updated 2 weeks ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click and start building anything your business needs.
- Check that no globals are present in Go code.☆130Feb 15, 2026Updated last month
- nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.☆132Feb 1, 2026Updated 2 months ago
- ☆121Dec 26, 2025Updated 3 months ago
- Accept Interfaces, Return Concrete Types☆82Mar 27, 2026Updated last week
- Find unused parameters in Go☆568Oct 27, 2025Updated 5 months ago
- Golang linter to check the errors handling expressions☆67Sep 18, 2025Updated 6 months ago
- Golang linter to use strconv☆43Nov 19, 2025Updated 4 months ago
- Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.☆323Jan 29, 2026Updated 2 months ago
- tparallel finds inappropriate usage of `t.Parallel()` method in your Go test codes☆27Jun 26, 2024Updated last year
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- GCI, a tool that control golang package import order and make it always deterministic.☆557Mar 16, 2026Updated 3 weeks ago
- Linter that confirms DB rows and statements are closed properly.☆92Mar 18, 2026Updated 3 weeks ago
- Analyzer: fourcetypeassert finds type assertions which did forcely☆49Feb 13, 2025Updated last year
- Go Linter: finds wasted assignment statements 🗑☆39Feb 23, 2026Updated last month
- detects nested contexts in loops or function literals☆74Updated this week
- The Golang linter that checks that there is no simultaneous return of `nil` error and an invalid value.☆82Mar 1, 2026Updated last month
- Linter that checks that comments end in a period☆48Mar 27, 2026Updated last week
- The most opinionated Go source code linter for code audit.☆2,037Jan 18, 2026Updated 2 months ago
- Check exhaustiveness of switch statements of enum-like constants in Go source code.☆339Dec 5, 2024Updated last year
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click and start building anything your business needs.
- intrange is a program for checking for loops that could use the Go 1.22 integer range feature.☆39Oct 30, 2025Updated 5 months ago
- prealloc is a Go static analysis tool to find slice declarations that could potentially be preallocated.☆665Feb 26, 2026Updated last month
- Gocognito calculates cognitive complexities☆16Apr 21, 2022Updated 3 years ago
- A linter that handle directives into `go.mod`.☆17Dec 4, 2025Updated 4 months ago
- 🪵 Ensure consistent code style when using log/slog☆244Mar 25, 2026Updated 2 weeks ago
- Define and run pattern-based custom linting rules.☆864Sep 25, 2025Updated 6 months ago
- Go Dependency Analysis toolkit☆1,690Feb 25, 2026Updated last month