func check(dir string) (err error) { var options []lib.Option if argSkipParams.Get() { options = append(options, lib.IgnoreParams) } if argSkipImports.Get() { options = append(options, lib.IgnoreImports) } if argSkipExports.Get() { options = append(options, lib.IgnoreExports) } if argSkipNames.Get() { options = append(options, lib.IgnoreNames) } return lib.Check(dir, options...) }
func CheckImports(dir string) error { return lib.Check(dir, lib.IgnoreExports, lib.IgnoreParams, lib.IgnoreNames) }
func CheckAll(dir string) error { return lib.Check(dir) }
func CheckNames(dir string) error { return lib.Check(dir, lib.IgnoreParams, lib.IgnoreImports) }