V002

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

README

V002

The V002 analyzer reports usage of the deprecated CIDRNetwork validation function that should be replaced with IsCIDRNetwork.

Flagged Code

ValidateFunc: validation.CIDRNetwork(0, 32),

Passing Code

ValidateFunc: validation.IsCIDRNetwork(0, 32),

Ignoring Reports

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

//lintignore:V002
ValidateFunc: validation.CIDRNetwork(0, 32),

Documentation

Index

Constants

This section is empty.

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