This package is not in the latest version of its module.
Go to latest Published: Aug 1, 2023 License: AGPL-3.0The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Modules with tagged versions give importers more predictable builds.
When a project reaches major version v1 it is considered stable.
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://pkg.go.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=gocriticNote: don't forget to run `golangci-lint cache clean`!
This section is empty.
This section is empty.
FullResponseWriter ensures that any overridden response writer has full functionality. Mainly is hijackable and flushable.
HttpAPIErrorMessage intends to enforce constructing proper sentences as error messages for the api. A proper sentence includes proper capitalization and ends with punctuation. There are ways around the linter, but this should work in the common cases.
HttpAPIReturn will report a linter violation if the http function is not returned after writing a response to the client.
InTx checks to ensure the database used inside the transaction closure is the transaction database, and not the original database that creates the tx.
ProperRBACReturn ensures we always write to the response writer after a call to Authorize. If we just do a return, the client will get a status code 200, which is incorrect.
This section is empty.
| ? | : This menu |
| / | : Search site |
| f or F | : Jump to |
| y or Y | : Canonical URL |