b3b10273b5
We got another warning for force_other: cli_args.go:26:45: don't use underscores in Go names; struct field force_owner should be forceOwner Use a broader grep.
18 lines
315 B
Bash
Executable File
18 lines
315 B
Bash
Executable File
#!/bin/bash -u
|
|
|
|
OUTPUT=$(
|
|
golint ./... | \
|
|
grep -v "don't use an underscore in package name" | \
|
|
grep -v "don't use ALL_CAPS in Go names; use CamelCase" |
|
|
grep -v "don't use underscores in Go names"
|
|
)
|
|
|
|
# No output --> all good
|
|
if [[ -z "$OUTPUT" ]] ; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "golint.bash:"
|
|
echo $OUTPUT
|
|
exit 1
|