Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LintStatus ¶
type LintStatus struct {
Header []string // column names
RowCount int64 // row count
CellCount int // row cell num
ErrorCount int64 // error count
Lint []LintCode // lint message
// file extra info
Size int64 // file size
TimeCost int64 // total time cost
}
LintStatus returns information about an record check result
type LintStruct ¶
type LintStruct struct {
Config common.Config
Levels []string
Rules map[string]LintCode
Status LintStatus
}
func NewLintStruct ¶
func NewLintStruct(c common.Config) (*LintStruct, error)
func (*LintStruct) Lint ¶
func (l *LintStruct) Lint() error
Lint lint file one time for one file only
func (*LintStruct) ShowStatus ¶
func (l *LintStruct) ShowStatus() error
ShowStatus check lint status
Click to show internal directories.
Click to hide internal directories.