No description
ci
Find a file
2023-07-18 11:16:27 +03:00
internal/analyzers/no-literal [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00
.gitattributes Initial commit 2023-07-17 10:51:48 +00:00
.gitignore Initial commit 2023-07-17 10:51:48 +00:00
.gitlint Initial commit 2023-07-17 10:51:48 +00:00
.golangci.yml Initial commit 2023-07-17 10:51:48 +00:00
.pre-commit-config.yaml Initial commit 2023-07-17 10:51:48 +00:00
go.mod [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00
go.sum [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00
main.go [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00
Makefile [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00
README.md [#1] linters: add logs linter 2023-07-18 11:16:27 +03:00

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 .golagci.yml


    linters-settings:
    custom:
        custom-linters:
            path: <Path to the directory with libraries>
            original-url: git.frostfs.info/TrueCloudLab/linters

    linters:
        enable:
            custom-linters