called

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 5 Imported by: 0

README

called

godoc.org

called called find callings specified by called.funcs flag.

package main

import "log"

func main() {
	log.Fatal("hoge")
}
$ go vet -vettool=`which called` -called.funcs="log.Fatal" main.go
./main.go:6:11: log.Fatal must not be called

Ignore Checks

Analyzers ignore nodes which are annotated by staticcheck's style comments as belows. A ignore comment includes analyzer names and reason of ignoring checking. If you specify called as analyzer name, all analyzers ignore corresponding code.

package main

import "log"

func main() {
	//lint:ignore called reason
	log.Fatal("hoge")
}

Documentation

Index

Constants

View Source
const Doc = "called find callings specified by called.funcs flag"

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "called",
	Doc:  Doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
	},
}

Functions

This section is empty.

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