Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
0029740d
Commit
0029740d
authored
8 years ago
by
Adam Reese
Browse files
Options
Download
Plain Diff
Merge pull request #61 from adamreese/fix/golint-out
fix(golint): fix printing blank lines
parents
fe0dcd2d
bd61e3ab
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/validate-go.sh
+2
-1
scripts/validate-go.sh
with
2 additions
and
1 deletion
+2
-1
scripts/validate-go.sh
+
2
−
1
View file @
0029740d
...
@@ -17,7 +17,8 @@ hash godir 2>/dev/null || go get -u github.com/Masterminds/godir
...
@@ -17,7 +17,8 @@ hash godir 2>/dev/null || go get -u github.com/Masterminds/godir
echo
"==> Running golint..."
echo
"==> Running golint..."
for
pkg
in
$(
godir pkgs |
grep
-v
proto
)
;
do
for
pkg
in
$(
godir pkgs |
grep
-v
proto
)
;
do
if
golint_out
=
$(
golint
"
$pkg
"
2>&1
)
;
then
golint_out
=
$(
golint
"
$pkg
"
2>&1
)
if
[[
-n
"
$golint_out
"
]]
;
then
echo
"
${
yellow
}${
golint_out
}${
reset
}
"
echo
"
${
yellow
}${
golint_out
}${
reset
}
"
fi
fi
done
done
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets