check

package
v0.0.0-...-c5d8b6d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetkWalkFunc

func GetkWalkFunc(resourcesDirectory string, imagesDefinedOutside *[]ImageLine, skipComments bool, excludesList []Exclude) filepath.WalkFunc

Types

type Exclude

type Exclude struct {
	Filename string   `yaml:"filename"`
	Images   []string `yaml:"images"`
}

Exclude contains excluded image values for a given file

func ParseExcludes

func ParseExcludes(excludesListFilename string) ([]Exclude, error)

ParseExcludes reads the exclude list file and returns list of excludes

type ImageLine

type ImageLine struct {
	Filename   string
	LineNumber int
	Line       string
}

ImageLine defines a line inside a file that doesn't use new template for image deifnition

func FileHasIncorrectImage

func FileHasIncorrectImage(resourcesDirectory, path string, skipComments bool, excludesList []Exclude) ([]ImageLine, error)

FileHasIncorrectImage checks if the file contains lines that doesn't use new template for images

Jump to

Keyboard shortcuts

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