Calculates cognitive complexities of functions (and methods) in Go source code. (Golang cognitive complexity)
☆499Oct 6, 2026Updated 3 weeks ago
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:
- Moved to https://codeberg.org/polyfloyd/go-errorlint☆313Nov 1, 2025Updated 11 months ago
- Calculate cyclomatic complexities of functions in Go source code.☆1,611Dec 27, 2025Updated 10 months ago
- Magic number detector for Go.☆208Dec 21, 2023Updated 2 years ago
- ☆56Oct 16, 2024Updated 2 years ago
- Go linter for forbidding identifiers☆184Apr 12, 2026Updated 6 months ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Go linter to detect erroneous multiplication of duration values☆47Oct 24, 2025Updated last year
- ☆46Dec 16, 2024Updated last year
- A Go linter to check that errors from external packages are wrapped☆373Oct 15, 2026Updated 2 weeks ago
- 🚔 Enforce field tags in (un)marshaled structs☆40Jan 19, 2026Updated 9 months ago
- Check that no globals are present in Go code.☆136Feb 15, 2026Updated 8 months ago
- detects nested contexts in loops or function literals☆83Oct 18, 2026Updated last week
- Go linter that checks if package imports are in a list of acceptable packages.☆204Updated this week
- Accept Interfaces, Return Concrete Types☆86Sep 2, 2026Updated last month
- noctx finds function calls without context.Context.☆233Mar 11, 2026Updated 7 months ago
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- ␊ whitespace linter - Forces you to use empty lines!☆366Oct 16, 2026Updated 2 weeks ago
- nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.☆132Feb 1, 2026Updated 8 months ago
- A linter to ensure that slices are not initialized with non-zero length☆78Apr 12, 2026Updated 6 months ago
- Find unused parameters in Go☆572Oct 11, 2026Updated 2 weeks ago
- Golang linter to check the errors handling expressions☆76Jul 20, 2026Updated 3 months ago
- Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.☆323Sep 23, 2026Updated last month
- Analyzer: fourcetypeassert finds type assertions which did forcely☆49Feb 13, 2025Updated last year
- Linter to detects the overuse or misuse of interfaces in Go code AKA "Interface Pollution"☆25Oct 1, 2026Updated 3 weeks ago
- A linter that handles struct tags.☆58Oct 1, 2026Updated 3 weeks ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- ☆118Apr 11, 2026Updated 6 months ago
- GCI, a tool that control golang package import order and make it always deterministic.☆578Mar 16, 2026Updated 7 months ago
- The most opinionated Go source code linter for code audit.☆2,077Oct 18, 2026Updated last week
- Check that expression switches and type switches in Go source code are exhaustive.☆350Updated this week
- tparallel finds inappropriate usage of `t.Parallel()` method in your Go test codes☆28Jun 26, 2024Updated 2 years ago
- The Golang linter that checks that there is no simultaneous return of `nil` error and an invalid value.☆88Oct 1, 2026Updated 3 weeks ago
- 🪵 Ensure consistent code style when using log/slog☆275Sep 15, 2026Updated last month
- Golang linter to use strconv☆46Sep 29, 2026Updated last month
- Go Linter: finds wasted assignment statements 🗑☆38Feb 23, 2026Updated 8 months ago
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- Linter that checks that comments end in a period☆50Mar 27, 2026Updated 7 months ago
- Go Dependency Analysis toolkit☆1,731Oct 13, 2026Updated 2 weeks ago
- Linter that confirms DB rows and statements are closed properly.☆92Mar 18, 2026Updated 7 months ago
- a tool for code clone detection☆369Mar 5, 2026Updated 7 months ago
- Detect deeply nested if statements in Go source code☆45Feb 26, 2026Updated 8 months ago
- Goroutine leak detector☆5,301Sep 15, 2026Updated last month
- Golang linter checks for receiver type consistency☆16Updated this week