Example #1
0
File: main.go Project: go-stay/stay
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...)
}
Example #2
0
File: stay.go Project: go-stay/stay
func CheckImports(dir string) error {
	return lib.Check(dir, lib.IgnoreExports, lib.IgnoreParams, lib.IgnoreNames)
}
Example #3
0
File: stay.go Project: go-stay/stay
func CheckAll(dir string) error {
	return lib.Check(dir)
}
Example #4
0
File: stay.go Project: go-stay/stay
func CheckNames(dir string) error {
	return lib.Check(dir, lib.IgnoreParams, lib.IgnoreImports)
}