depcaps

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "depcaps version dev"

Functions

func NewAnalyzer

func NewAnalyzer(settings *LinterSettings) *analysis.Analyzer

NewAnalyzer returns a new depcaps analyzer.

Types

type LinterSettings

type LinterSettings struct {
	GlobalAllowedCapabilities  map[string]bool            `json:"GlobalAllowedCapabilities"`
	PackageAllowedCapabilities map[string]map[string]bool `json:"PackageAllowedCapabilities"`
	CapslockBaselineFile       string                     `json:"-"`
}

func (LinterSettings) Get

func (s LinterSettings) Get() interface{}

func (LinterSettings) IsBoolFlag

func (s LinterSettings) IsBoolFlag() bool

func (*LinterSettings) Set

func (s *LinterSettings) Set(in string) error

func (LinterSettings) String

func (s LinterSettings) String() string

Jump to

Keyboard shortcuts

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