Documentation ¶
Index ¶
- Variables
- type Part
- type ZBLint
- func (l *ZBLint) CacheFile(ctx zbcontext.Context, p *project.Package) (string, error)
- func (l *ZBLint) HaveResult(ctx zbcontext.Context, p *project.Package) (bool, error)
- func (l *ZBLint) LintSetup(ctx zbcontext.Context) zbcontext.Context
- func (l *ZBLint) ReadResult(w io.Writer, pr io.Reader, file string) error
- func (l *ZBLint) ShowResult(w io.Writer, cacheFile string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIgnoreSuffixes = []string{
".pb.go",
".pb.gw.go",
"_string.go",
"bindata.go",
"bindata_assetfs.go",
"static.go",
}
DefaultIgnoreSuffixes lists the file suffixes for which lint results will be filtered out
Functions ¶
This section is empty.
Types ¶
type ZBLint ¶
type ZBLint struct { lintflags.Data NoMissingComment bool IgnoreSuffixes cli.StringSlice // contains filtered or unexported fields }
ZBLint provides methods for working with cached lint result files
func (*ZBLint) CacheFile ¶
CacheFile returns the location of the lint cache file for a given package
func (*ZBLint) HaveResult ¶
HaveResult checks to see if a lint result is available for a given package
func (*ZBLint) LintSetup ¶
LintSetup must be called before other methods to complete the configuration from the context
func (*ZBLint) ReadResult ¶
ReadResult reads lint results from the Reader and writes the unfiltered data to the file and the filtered data to the Writer
Click to show internal directories.
Click to hide internal directories.