comment

package
v1.5.9-integrations Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIgnoreLines

func GetIgnoreLines(ignore Ignore, body *hclsyntax.Body) (lines []int)

GetIgnoreLines returns the lines to ignore from a comment

Types

type Ignore

type Ignore map[model.CommentCommand][]hcl.Pos

Ignore is a map of commands to ignore

func ParseComments

func ParseComments(src []byte, filename string) (Ignore, error)

ParseComments parses the comments and returns the kics commands

Jump to

Keyboard shortcuts

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