forked from TrueCloudLab/linters
No description
|
||
---|---|---|
.forgejo/workflows | ||
internal/analyzers/noliteral | ||
.gitattributes | ||
.gitignore | ||
.gitlint | ||
.golangci.yml | ||
.pre-commit-config.yaml | ||
go.mod | ||
go.sum | ||
main.go | ||
Makefile | ||
README.md |
linters
Overview
linters
is a project that enables the integration of custom linting rules into the golangci-lint framework.
Available linters
Name | Description |
---|---|
noliteral | The tool prohibits the use of literal string arguments in logging functions |
Installation
git clone git.frostfs.info/TrueCloudLab/linters
cd linters
make lib OUT_DIR=<Path to the directory with libraries>
Usage
Add to .golangci.yml
linters-settings:
custom:
custom-linters:
path: <Path to the directory with libraries>
original-url: git.frostfs.info/TrueCloudLab/linters
linters:
enable:
custom-linters