Fix golint warnings, add helper script

This commit is contained in:
Jakob Unterwurzacher 2016-11-17 23:40:03 +01:00
parent 36b4e325ca
commit 6f475da116
2 changed files with 7 additions and 0 deletions

6
golint.bash Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
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 "struct field allow_other should be allowOther"

View File

@ -13,6 +13,7 @@ type DevInoStruct struct {
ino uint64
}
// DevInoFromStat fills a new DevInoStruct with the passed Stat_t info
func DevInoFromStat(st *syscall.Stat_t) DevInoStruct {
// Explicit cast to uint64 to prevent build problems on 32-bit platforms
return DevInoStruct{