Documentation
¶
Overview ¶
Package gorules defines custom lint rules for ruleguard.
golangci-lint runs these rules via go-critic, which includes support for ruleguard. All Go files in this directory define lint rules in the Ruleguard DSL; see:
- https://go-ruleguard.github.io/by-example/ - https://pkgo.dev/github.com/quasilyte/go-ruleguard/dsl
You run one of the following commands to execute your go rules only:
golangci-lint run golangci-lint run --disable-all --enable=gocritic
Note: don't forget to run `golangci-lint cache clean`!
Click to show internal directories.
Click to hide internal directories.