linter

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckValidLinters added in v0.5.2

func CheckValidLinters(check []string) []string

Checks if the linters in the given slice are known linters Returns an empty slice if all linters are known, otherwise a slice with all the bad linters

func LintApk added in v0.5.1

func LintApk(ctx context.Context, path string, warn func(error), linters []string) error

Lint the given APK at the given path

func LintBuild added in v0.5.2

func LintBuild(packageName string, path string, warn func(error), linters []string) error

Lint the given build directory at the given path

Types

type LinterContext

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

func NewLinterContext

func NewLinterContext(name string, fsys fs.FS) LinterContext

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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