Help us shape the future of Go! Take the 2026 Go Developer Survey

comment

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

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 dd-iac-scan commands

Jump to

Keyboard shortcuts

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