go-critic alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view go-critic alternatives based on common mentions on social networks and blogs.
-
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
Sonic
Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go. -
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
go-james
DISCONTINUED. James is your butler and helps you to create, build, debug, test and run your Go projects -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
rescached
DISCONTINUED. [mirror] Resolver (DNS) cache daemon. See https://sr.ht/~shulhan/rescached [Moved to: https://github.com/shuLhan/rescached] -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules. -
IP2Location.io Command Line
IP2Location.io command line to query IP geolocation data from IP2Location.io API
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of go-critic or a related project?
README
go-critic
Highly extensible Go source code linter providing checks currently missing from other linters.
There is never too much static code analysis. Try it out.
Features
- Almost 100 diagnostics that check for bugs, performance and style issues
- Extensible without re-compilation with dynamic rules
- Includes
#opinionated
checks with very strict and specific requirements - Self-documented:
gocritic doc <checkname>
gives a checker description
Documentation
The latest documentation is available at go-critic.com.
Installation
For most users, using go-critic
under golangci-lint is enough.
Precompiled go-critic
binaries can be found at releases page.
Instructions below show how to build go-critic
from sources.
GO111MODULE=on go get -v -u github.com/go-critic/go-critic/cmd/gocritic
as of go 1.18, use go install instead
go install -v github.com/go-critic/go-critic/cmd/gocritic@latest
If the command above does not work, you can try cloning this repository
under your GOPATH
and run make gocritic
.
On macOS, you can also install go-critic
using MacPorts: sudo port install go-critic
Usage
Be sure gocritic
executable is under your $PATH
.
Usage of gocritic: gocritic [sub-command] [sub-command args...]
Run gocritic
without arguments to get help output.
Supported sub-commands:
check - run linter over specified targets
$ gocritic check -help
$ gocritic check -v -enable='paramTypeCombine,unslice' strings bytes
$ gocritic check -v -enable='#diagnostic' -disable='#experimental,#opinionated' ./...
version - print linter version
$ gocritic version
doc - get installed checkers documentation
$ gocritic doc -help
$ gocritic doc
$ gocritic doc checkerName
check
sub-command examples:
# Runs all stable checkers on `fmt` package:
gocritic check fmt
# Run all stable checkers on `pkg1` and `pkg2`
gocritic check pkg1 pkg2
# Run all stable checkers on `fmt` package and configure rangeExprCopy checker
gocritic check [email protected] 128 fmt
# Runs specified checkers on `fmt` package:
gocritic check -enable elseif,paramName fmt
# Run all stable checkers on current dir and all its children recursively:
gocritic check ./...
# Like above, but without `appendAssign` check:
gocritic check -disable=appendAssign ./...
# Run all stable checkers on `foo.go` file:
gocritic check foo.go
# Run stable diagnostics over `strings` package:
gocritic check -enable='#diagnostic' -disable='#experimental' strings
# Run all stable and non-opinionated checks:
gocritic check -enableAll -disable='#experimental,#opinionated' ./src/...
To get a list of available checker parameters, run
gocritic doc <checkerName>
.
In place of a single name, tag can be used. Tag is a named checkers group.
Tags:
#diagnostic
- kind of checks that detect various errors in code#style
- kind of checks that find style issues in code#performance
- kind of checks that detect potential performance issues in code#experimental
- check is under testing and development. Disabled by default#opinionated
- check can be unwanted for some people. Disabled by default#security
- kind of checks that find security issues in code. Disabled by default and empty, so will fail if enabled.
Contributing
This project aims to be contribution-friendly.
Our chats: English or Russian (Telegram website)
We're using an optimistic merging strategy most of the time. In short, this means that if your contribution has some flaws, we can still merge it and then fix them by ourselves. Experimental and work-in-progress checkers are isolated, so nothing bad will happen.
Code style is the same as in Go project, see CodeReviewComments.
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details. It also describes how to develop a new checker for the linter.