check

package
v0.0.0-...-9d5197b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandName = "check"
)

Variables

This section is empty.

Functions

func CheckDependencyVersion

func CheckDependencyVersion(pluginPath, modPath, constaint string) (string, bool, error)

func CheckForGoModules

func CheckForGoModules(pluginPath string) (usingModules bool)

func CheckGoVersion

func CheckGoVersion(pluginPath string) (goVersion string, satisfiesConstraint bool)

func CheckSDKPackageImports

func CheckSDKPackageImports(details *pluginImportDetails) ([]string, error)

func CommandFactory

func CommandFactory(ui cli.Ui) func() (cli.Command, error)

func GoListPackageImports

func GoListPackageImports(pluginPath string) (*pluginImportDetails, error)

func ReadVersionFromModFile

func ReadVersionFromModFile(path, dependencyPath string) (*version.Version, error)

func RunCheck

func RunCheck(ui cli.Ui, pluginPath, repoName string) error

Types

type AlreadyMigrated

type AlreadyMigrated struct {
	// contains filtered or unexported fields
}

func (*AlreadyMigrated) Error

func (am *AlreadyMigrated) Error() string

type Offence

type Offence struct {
	IdentDeprecation *identDeprecation
	Positions        []*token.Position
}

func CheckSDKPackageImportsAndRefs

func CheckSDKPackageImportsAndRefs(pluginPath string) (removedPackagesInUse []string, packageRefsOffences []*Offence, err error)

func CheckSDKPackageRefs

func CheckSDKPackageRefs(pluginImportDetails *pluginImportDetails) ([]*Offence, error)

Jump to

Keyboard shortcuts

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