Documentation
¶
Index ¶
- func GroupByDirectory(reports []reporter.Report) map[string][]reporter.Report
- func GroupByErrorType(reports []reporter.Report) map[string][]reporter.Report
- func GroupByFileType(reports []reporter.Report) map[string][]reporter.Report
- func GroupByPassFail(reports []reporter.Report) map[string][]reporter.Report
- type CLI
- type GroupNode
- type Option
- func WithFinder(f finder.FileFinder) Option
- func WithGroupOutput(groupOutput []string) Option
- func WithNoSchema(noSchema bool) Option
- func WithQuiet(quiet bool) Option
- func WithReporters(r ...reporter.Reporter) Option
- func WithRequireSchema(require bool) Option
- func WithSchemaMap(m map[string]string) Option
- func WithSchemaStore(s *schemastore.Store) Option
- func WithStdinData(data []byte, ft filetype.FileType) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupByDirectory ¶
GroupByDirectory groups reports by containing directory.
func GroupByErrorType ¶
GroupByErrorType groups reports by error type.
func GroupByFileType ¶
GroupByFileType groups reports by file extension.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is the main entry point for running config file validation. Use Init with Option functions to configure, then call Run.
type GroupNode ¶ added in v2.2.2
GroupNode aliases the reporter grouping tree used by grouped output.
type Option ¶
type Option func(*CLI)
Option configures a CLI instance.
func WithFinder ¶
func WithFinder(f finder.FileFinder) Option
func WithGroupOutput ¶
func WithNoSchema ¶
func WithReporters ¶
func WithRequireSchema ¶
func WithSchemaMap ¶
func WithSchemaStore ¶
func WithSchemaStore(s *schemastore.Store) Option
Click to show internal directories.
Click to hide internal directories.