lintfilter 672 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh
#
# Some of golint's warnings are useful.  Some are just annoying.
# Throw out the annoying ones

sed -e \
       "/if block ends with a return statement, so drop this else and outdent its block/d" \
Eric Sunshine's avatar
Eric Sunshine committed
8
    -e "/exported const .* should have comment or be unexported/d" \
Eric Sunshine's avatar
Eric Sunshine committed
9
    -e "/exported type .* should have comment or be unexported/d" \
10
    -e "/exported method .* should have comment or be unexported/d" \
Eric Sunshine's avatar
Eric Sunshine committed
11
    -e "/exported function .* should have comment or be unexported/d" \
12
    -e "/comment on exported method .* should be of the form/d" \
Eric Sunshine's avatar
Eric Sunshine committed
13 14
    -e "/error strings should not be capitalized or end with punctuation or a newline/d" \
    -e "/Branchify_map/d"