mirror of https://github.com/subgraph/fw-daemon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
572 B
26 lines
572 B
7 years ago
|
#!/bin/bash
|
||
|
|
||
|
cd "$(dirname $0)"
|
||
|
|
||
|
go get github.com/golang/lint/golint
|
||
|
DIRS=". tcpassembly tcpassembly/tcpreader ip4defrag reassembly macs pcapgo pcap afpacket pfring routing"
|
||
|
# Add subdirectories here as we clean up golint on each.
|
||
|
for subdir in $DIRS; do
|
||
|
pushd $subdir
|
||
|
if golint |
|
||
|
grep -v CannotSetRFMon | # pcap exported error name
|
||
|
grep -v DataLost | # tcpassembly/tcpreader exported error name
|
||
|
grep .; then
|
||
|
exit 1
|
||
|
fi
|
||
|
popd
|
||
|
done
|
||
|
|
||
|
pushd layers
|
||
|
for file in $(cat .linted); do
|
||
|
if golint $file | grep .; then
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
popd
|