Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindHelmChartWhiteSpaces ¶
func FindHelmChartWhiteSpaces(data string, opts HelmDetectOptions) [][]string
returns the windows of the helm chart that contain white spacing and formatting issues.
Types ¶
type HelmDetectOptions ¶
type HelmDetectOptions struct { // DetectWhiteSpacesInEmptyLines is used to detect white spaces in empty lines DetectWhiteSpacesInEmptyLines bool }
HelmDetectOptions is used to configure the FindHelmChartWhiteSpaces function
type Spaces ¶
type Spaces struct {
// contains filtered or unexported fields
}
Spaces is a struct that contains information about a line and the spaces after the line has been split on a space.
func (*Spaces) BeginsWithArray ¶
BeginsWithArray returns if the line starts as an YAML array
func (*Spaces) ContainsOnlySpaces ¶
ContainsOnlySpaces returns true if the line only contains spaces
func (*Spaces) GetNumberOfSpacesAtBeginning ¶
GetNumberOfSpacesAtBeginning returns the number of spaces (' ') at the beginning of the line
func (*Spaces) HasSpecialBreak ¶
HasSpecialBreak if the last section contians a special break
func (*Spaces) IsEmptyLine ¶
IsEmptyLine returns true if the line is empty
func (*Spaces) IsNewResource ¶
IsNewResource returns if the line starts a new resource
func (*Spaces) StartsWithComment ¶
StartsWithComment returns if the line starts with a comment