Skip to content

Commit 61db398

Browse files
sivchariJoelSpeed
authored andcommitted
check if Ignored is true
Signed-off-by: sivchari <[email protected]>
1 parent 3ea5c9d commit 61db398

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/analysis/jsontags/analyzer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ func (a *analyzer) checkField(pass *analysis.Pass, field *ast.Field, jsonTags ex
104104
return
105105
}
106106

107+
if tagInfo.Ignored {
108+
return
109+
}
110+
107111
if tagInfo.Name == "" {
108112
pass.Reportf(field.Pos(), "%s has empty json tag", prefix)
109113
return

0 commit comments

Comments
 (0)