banfunc

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 7 Imported by: 0

README

banfunc

banfunc is a Go linter that reports the call of a banned function.

Install

go install github.com/masakurapa/banfunc/cmd/banfunc@latest

Usage

The -ban option is mandatory and specifies the banned function names.
Multiple function names can be specified separated by commas.

Example usage:

banfunc -ban Println ./...

Example with multiple function names:

banfunc -ban Println,Print,Printf ./...

Experimental Features

This project includes experimental features that are currently under development or testing.
These features may not be fully functional, stable, or documented. They are provided for testing purposes, and their behavior may change in future releases.

Specify the package name or struct name to execute:

banfunc -ban fmt.Println ./...
banfunc -ban fmt.Println,fmt.Print,fmt.Printf ./...

Features to Implement if Possible

  • Ban specific functions of a package (e.g., fmt.Println)
  • Ban functions implemented in specific package structures or interface
  • Configuration file loading

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *analysis.Analyzer

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL