empty_err_checker is checking whether the return value 'err' is nil.
example
func inValidErrChecker() error {
var err error
isValid := isValid()
if !isValid {
return err // report this return err as invalid
}
return nil
}
Check the test code for detailed detection examples.
go install github.com/snkrdunk/empty_err_checker/cmd/empty_err_checker@latest