Documentation ¶
Overview ¶
TODO: Temporary fork of banncheck from https://github.com/google/go-safeweb/tree/eb79df54b8bc1910ac3bc3fc3328da7c0fb016e1/cmd/bancheck
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannedAPI ¶
type BannedAPI struct { Name string `json:"name"` // fully qualified identifier name Msg string `json:"msg"` // additional information e.g. rationale for banning Exemptions []Exemption `json:"exemptions"` }
BannedAPI represents an identifier (e.g. import, function call) that should not be used.
type Config ¶
type Config struct { Imports []BannedAPI `json:"imports"` Functions []BannedAPI `json:"functions"` }
Config represents a configuration passed to the linter.
type Exemption ¶
type Exemption struct { Justification string `json:"justification"` AllowedPkg string `json:"allowedPkg"` // Uses Go RegExp https://golang.org/pkg/regexp/syntax }
Exemption represents a location that should be exempted from checking for banned APIs.
Click to show internal directories.
Click to hide internal directories.