You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a.Flags.BoolVar(&errchkjson.omitSafe, "omit-safe", false, "if omit-safe is true, checking of safe returns is omitted")
34
+
a.Flags.BoolVar(&errchkjson.reportNoExported, "report-no-exported", false, "if report-no-exported is true, encoding a struct without exported fields is reported as issue")
33
35
34
36
returna
35
37
}
@@ -112,7 +114,7 @@ func (e *errchkjson) handleJSONMarshal(pass *analysis.Pass, ce *ast.CallExpr, fn
112
114
t=t.(*types.Pointer).Elem()
113
115
}
114
116
115
-
err:=jsonSafe(t, 0)
117
+
err:=e.jsonSafe(t, 0)
116
118
iferr!=nil {
117
119
if_, ok:=err.(unsupported); ok {
118
120
pass.Reportf(ce.Pos(), "`%s` for %v", fnName, err)
0 commit comments