Calculates cognitive complexities of functions (and methods) in Go source code. (Golang cognitive complexity)
☆482Feb 24, 2026Updated 4 months 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:
- Calculate cyclomatic complexities of functions in Go source code.☆1,589Dec 27, 2025Updated 6 months ago
- Magic number detector for Go.☆209Dec 21, 2023Updated 2 years ago
- Go linter to detect erroneous multiplication of duration values☆47Oct 24, 2025Updated 8 months ago
- Moved to https://codeberg.org/polyfloyd/go-errorlint☆315Nov 1, 2025Updated 8 months ago
- ☆56Oct 16, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- 🚔 Enforce field tags in (un)marshaled structs☆40Jan 19, 2026Updated 6 months ago
- Go linter for forbidding identifiers☆173Apr 12, 2026Updated 3 months ago
- A Go linter to check that errors from external packages are wrapped☆374Nov 24, 2025Updated 7 months ago
- ☆44Dec 16, 2024Updated last year
- Go linter that checks if package imports are in a list of acceptable packages.☆203Mar 6, 2025Updated last year
- A linter to ensure that slices are not initialized with non-zero length☆78Apr 12, 2026Updated 3 months ago
- noctx finds function calls without context.Context.☆226Mar 11, 2026Updated 4 months ago
- Check that no globals are present in Go code.☆132Feb 15, 2026Updated 5 months ago
- nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.☆132Feb 1, 2026Updated 5 months ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- ␊ whitespace linter - Forces you to use empty lines!☆358Updated this week
- Accept Interfaces, Return Concrete Types☆87Updated this week
- Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.☆323Jan 29, 2026Updated 5 months ago
- Find unused parameters in Go☆570Oct 27, 2025Updated 8 months ago
- ☆118Apr 11, 2026Updated 3 months ago
- Golang linter to check the errors handling expressions☆75Updated this week
- Golang linter to use strconv☆48Nov 19, 2025Updated 8 months ago
- Linter to detects the overuse or misuse of interfaces in Go code AKA "Interface Pollution"☆22Jun 17, 2026Updated last month
- tparallel finds inappropriate usage of `t.Parallel()` method in your Go test codes☆28Jun 26, 2024Updated 2 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- detects nested contexts in loops or function literals☆80Jun 26, 2026Updated 3 weeks ago
- Linter that confirms DB rows and statements are closed properly.☆91Mar 18, 2026Updated 4 months ago
- GCI, a tool that control golang package import order and make it always deterministic.☆562Mar 16, 2026Updated 4 months ago
- Analyzer: fourcetypeassert finds type assertions which did forcely☆48Feb 13, 2025Updated last year
- Go Linter: finds wasted assignment statements 🗑☆38Feb 23, 2026Updated 4 months ago
- The Golang linter that checks that there is no simultaneous return of `nil` error and an invalid value.☆84Jul 1, 2026Updated 2 weeks ago
- intrange is a program for checking for loops that could use the Go 1.22 integer range feature.☆39Oct 30, 2025Updated 8 months ago
- Linter that checks that comments end in a period☆50Mar 27, 2026Updated 3 months ago
- Gocognito calculates cognitive complexities☆16Apr 21, 2022Updated 4 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- The most opinionated Go source code linter for code audit.☆2,057Jun 26, 2026Updated 3 weeks ago
- Check exhaustiveness of switch statements of enum-like constants in Go source code.☆343Dec 5, 2024Updated last year
- prealloc is a Go static analysis tool to find slice declarations that could potentially be preallocated.☆666Feb 26, 2026Updated 4 months ago
- 🪵 Ensure consistent code style when using log/slog☆264Jul 14, 2026Updated last week
- Define and run pattern-based custom linting rules.☆873Sep 25, 2025Updated 9 months ago
- golang linter to detect named returns☆29Updated this week
- Go Dependency Analysis toolkit☆1,716Jul 2, 2026Updated 2 weeks ago