demoManito / bannedfunc

linter to check banned funcions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

bannedfunc checks for banned functions and reports them.

Usage

bannedfunc is already integrated into golangci-lint, and this is the recommended way to use it.

To enable the linter, add the following lines to .golangci.yml:

linters-settings:
  bannedfunc:
    (fmt).Println: 'Disable fmt.Println'
    (fmt).Printf: 'Disable fmt.Printf'
    (github.com/stretchr/testify/require).*: 'Disable github.com/stretchr/testify/require.*'

linters:
  enable:
    - bannedfunc

About

linter to check banned funcions

License:MIT License


Languages

Language:Go 100.0%