We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d5cb1 commit 217a9dfCopy full SHA for 217a9df
lint
@@ -94,11 +94,9 @@ lint_go() {
94
# don't have it installed. Also never blocks a commit,
95
# it just warns.
96
if type gocyclo >/dev/null 2>&1; then
97
- cycloutput=$(gocyclo -over 25 "${filename}")
98
- if [ -n "$cycloutput" ]; then
99
- lint_result=1
100
- echo "${filename}": higher than 25 cyclomatic complexity - "${cycloutput}"
101
- fi
+ gocyclo -over 25 "${filename}" | while read -r line; do
+ echo "${filename}": higher than 25 cyclomatic complexity - "${line}"
+ done
102
fi
103
104
return $lint_result
0 commit comments