go-critic is an extensible static analysis tool for Go which concentrates on checks not necessarily provided by other linters.
Its checkers cover suspicious code, performance problems and stylistic improvements. Checks are grouped using tags, allowing projects to select broad categories as well as individual diagnostics.
The software can also run dynamically defined ruleguard checks without requiring go-critic itself to be rebuilt.
This is free and open source software.
Key Features
- Provides around a hundred checks covering programming errors, style and performance problems.
- Groups checks into diagnostic, style, performance, experimental and opinionated categories.
- Allows individual checks or complete groups to be enabled and disabled.
- Checker-specific parameters allow selected diagnostics to be tuned to a project’s requirements.
- Supports dynamically loaded ruleguard rules for project-specific analysis.
- Built-in documentation can describe individual checks and their configuration.
- Supports package patterns as well as individual Go files.
- Integrates with golangci-lint for use alongside other Go analysis tools.
Website: github.com/go-critic/go-critic
Support:
Developer: go-critic team
License: MIT License
go-critic is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Go Linters | |
|---|---|
| revive | Designed as a drop-in replacement for golint |
| golangci-lint | Fast Go linters runner |
| gosec | Security scanner for Go projects |
| Staticcheck | Advanced Go linter |
| go-critic | Opinionated Go source code linter |
| Vet | Examines Go source code and reports suspicious constructs |
| gofumpt | Stricter gofmt |
| gofmt | Formats Go programs |
| goconst | Find repeated Go literals that could be replaced with constants |
| go-ruleguard | Analysis-based Go linter that runs dynamically loaded rules |
| sloglint | Enforce consistent structured logging conventions in Go |
| forbidigo | Go linter for forbidding identifiers |
| godot | Keep source code comments consistent |
| Godoc-Lint | Enforce consistent documentation comments in Go code |
| exhaustive | Check Go switch statements for missing enum cases |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.