Documentation
¶
Index ¶
- func GroupByDirectory(reports []reporter.Report) map[string][]reporter.Report
- func GroupByDouble(reports []reporter.Report, groupBy []string) (map[string]map[string][]reporter.Report, error)
- 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
- func GroupBySingle(reports []reporter.Report, groupBy string) (map[string][]reporter.Report, error)
- func GroupByTriple(reports []reporter.Report, groupBy []string) (map[string]map[string]map[string][]reporter.Report, error)
- type CLI
- 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 ¶
Group Reports by Directory
func GroupByDouble ¶
func GroupByDouble(reports []reporter.Report, groupBy []string) (map[string]map[string][]reporter.Report, error)
Group Reports for two groupings
func GroupByErrorType ¶
Group Reports by Error Type (syntax, schema, or passed)
func GroupByFileType ¶
Group Reports by File Type
func GroupByPassFail ¶
Group Reports by Pass-Fail
func GroupBySingle ¶
Group Reports by single grouping
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 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.