File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ The struct being passed to the template is:
86
86
PkgName string
87
87
FuncName string
88
88
Complexity int
89
- Diagnostics []Diagnostics
90
89
Pos token.Position
90
+ Diagnostics []Diagnostics
91
91
}
92
92
93
93
type Diagnostic struct {
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ type Stat struct {
16
16
PkgName string
17
17
FuncName string
18
18
Complexity int
19
- Diagnostics []Diagnostic `json:",omitempty"`
20
19
Pos token.Position
20
+ Diagnostics []Diagnostic `json:",omitempty"`
21
21
}
22
22
23
23
// Diagnostic contrains information how the complexity increase.
@@ -194,8 +194,6 @@ type complexityVisitor struct {
194
194
elseNodes map [ast.Node ]bool
195
195
calculatedExprs map [ast.Expr ]bool
196
196
197
- fset * token.FileSet
198
-
199
197
diagnosticEnabled bool
200
198
diagnostics []diagnostic
201
199
}
You can’t perform that action at this time.
0 commit comments