generated from jimschubert/go-cli-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
doc.go
21 lines (16 loc) · 1.01 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Package docked provides types and functionality for analyzing and linting Dockerfiles.
docked uses the Docker buildkit parser to retrieve the AST of an input Dockerfile.
It also provides a simple API for defining and registering rules for processing of the AST.
All in-built rules are built upon this API. See those defined under the validations package.
Configuration
An external YAML configuration is supported by docked.Config. The configuration allows for ignoring in-built
rules, overriding priority of in-built rules, as well as defining custom rules based on the
validations.SimpleRegexRule structure.
Analysis
Invoking docked.Docked#Analysis will use the list of in-built validation rules, and return a docked.AnalysisResult.
The result should be walked programmatically to generate a report. Please see reports under the reporting package for examples.
The HTML and JSON reporters under the reporter package provide implementations for use in the
accompanying cli tool for use in CI/CD pipelines.
*/
package docked