Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONSchemaError ¶
type JSONSchemaError struct {
FilePath string
Line int
Column int
Offset int // Byte offset in the file
Struct string
Field string
Tag string
FixedTag string
}
JSONSchemaError represents a linting error with file position details
type JSONSchemaLinter ¶
type JSONSchemaLinter struct {
FilePaths []string
Errors []JSONSchemaError
FixMode bool
Fixed map[string]bool
}
JSONSchemaLinter checks for unescaped commas in jsonschema struct tags
func (*JSONSchemaLinter) FindUnescapedCommas ¶
func (l *JSONSchemaLinter) FindUnescapedCommas(baseDir string) error
FindUnescapedCommas scans Go files for jsonschema struct tags with unescaped commas in descriptions
func (*JSONSchemaLinter) PrintErrors ¶
func (l *JSONSchemaLinter) PrintErrors()
PrintErrors outputs all the found errors
Click to show internal directories.
Click to hide internal directories.