Skip to content

Commit 9a00703

Browse files
ldezbkielbasa
authored andcommitted
fix: regression
1 parent b129189 commit 9a00703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
6767
comp := complexity(funcDecl)
6868
sum += float64(comp)
6969
if comp > maxComplexity {
70-
pass.Reportf(node.Pos(), "calculated cyclomatic complexity for function %s is %d, max is %d", file.Name.Name, comp, maxComplexity)
70+
pass.Reportf(node.Pos(), "calculated cyclomatic complexity for function %s is %d, max is %d", funcDecl.Name.Name, comp, maxComplexity)
7171
}
7272

7373
return true

0 commit comments

Comments
 (0)