Go linter that checks if package imports are in a list of acceptable packages.
☆197Mar 6, 2025Updated 11 months ago
Alternatives and similar repositories for depguard
Users that are interested in depguard are comparing it to the libraries listed below
Sorting:
- Go linter for forbidding identifiers☆160Oct 25, 2025Updated 4 months ago
- linter for copyright headers☆30Feb 10, 2026Updated 3 weeks ago
- 🚔 Enforce field tags in (un)marshaled structs☆40Jan 19, 2026Updated last month
- Golang linter to check the errors handling expressions☆67Sep 18, 2025Updated 5 months ago
- golang linter to detect named returns☆29Feb 23, 2026Updated last week
- A Go linter to check that errors from external packages are wrapped☆359Nov 24, 2025Updated 3 months ago
- A linter to ensure that slices are not initialized with non-zero length☆79Oct 25, 2025Updated 4 months ago
- golang analyzer that finds structures with uninitialized fields☆187Jan 9, 2026Updated last month
- Magic number detector for Go.☆208Dec 21, 2023Updated 2 years ago
- Check that no globals are present in Go code.☆129Feb 15, 2026Updated 2 weeks ago
- The Golang linter that checks that there is no simultaneous return of `nil` error and an invalid value.☆81Updated this week
- ☆121Dec 26, 2025Updated 2 months ago
- Calculates cognitive complexities of functions (and methods) in Go source code. (Golang cognitive complexity)☆446Updated this week
- Go linter to detect erroneous multiplication of duration values☆49Oct 24, 2025Updated 4 months ago
- Find unused parameters in Go☆568Oct 27, 2025Updated 4 months ago
- Moved to https://codeberg.org/polyfloyd/go-errorlint☆314Nov 1, 2025Updated 4 months ago
- Accept Interfaces, Return Concrete Types☆80Feb 23, 2026Updated last week
- ☆43Dec 16, 2024Updated last year
- Linter that checks that comments end in a period☆48Oct 18, 2025Updated 4 months ago
- ␊ whitespace linter - Forces you to use empty lines!☆344Feb 14, 2026Updated 2 weeks ago
- The Golang linter that checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error` or `Errors`.☆26Feb 1, 2026Updated last month
- Golang linter to use strconv☆43Nov 19, 2025Updated 3 months ago
- nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.☆132Feb 1, 2026Updated last month
- Golang linter that encourages you to use a separate _test package☆51Updated this week
- Linter that confirms DB rows and statements are closed properly.☆91May 19, 2025Updated 9 months ago
- A linter that handle directives into `go.mod`.☆16Dec 4, 2025Updated 2 months ago
- GCI, a tool that control golang package import order and make it always deterministic.☆553Updated this week
- Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.☆323Jan 29, 2026Updated last month
- Check exhaustiveness of switch statements of enum-like constants in Go source code.☆336Dec 5, 2024Updated last year
- Analyzer: check whether a function uses a non-inherited context☆49Feb 28, 2025Updated last year
- noctx finds function calls without context.Context.☆219Updated this week
- Check that no init functions are present in Go code.☆43Apr 16, 2021Updated 4 years ago
- detects nested contexts in loops or function literals☆71Updated this week
- Define and run pattern-based custom linting rules.☆862Sep 25, 2025Updated 5 months ago
- ☆55Oct 16, 2024Updated last year
- Safe number conversion in Go: address gosec G115 and cwe-190 Integer Overflow or Wraparound☆82Updated this week
- Remove unnecessary type conversions from Go source☆388Feb 16, 2025Updated last year
- tparallel finds inappropriate usage of `t.Parallel()` method in your Go test codes☆28Jun 26, 2024Updated last year
- Analyzer: fourcetypeassert finds type assertions which did forcely☆48Feb 13, 2025Updated last year