This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

ignore

Validate a yaml ignore file.

This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Validate a yaml ignore file.

The endorctl validate ignore command validates that an ignore file follows the yaml schema and flags duplicates or invalid entries.

The syntax of the endorctl validate ignore command is:

endorctl validate ignore [flags]

The endorctl validate ignore command uses the following flags and environment variables:

Flag Environment Variable Type Description
path ENDOR_VALIDATE_IGNORE_PATH string Path to the ignore file to validate (default: .endorignore.yaml).

Validate an ignore file:

endorctl validate ignore --path .customignore.yaml
ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-2
ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-3

An invalid argument was provided.
details: 2 errors detected