R009

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MPL-2.0 Imports: 7 Imported by: 3

README

R009

The R009 analyzer reports usage of Go panics, which should be avoided. Any errors should be surfaced to Terraform, which will display them in the user interface and ensure any necessary state actions (e.g. cleanup) are performed as expected.

Flagged Code

panic("oops")

log.Panic("eek")

log.Panicf("yikes")

log.Panicln("run away")

Passing Code

// Not present :)

Ignoring Reports

Singular reports can be ignored by adding the a //lintignore:R009 Go code comment at the end of the offending line or on the line immediately proceding, e.g.

//lintignore:R009
panic("oops")

Documentation

Index

Constants

View Source
const Doc = `` /* 268-byte string literal not displayed */

Variables

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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