mirror of https://github.com/perkeep/perkeep.git
dev/devcam: import vendor files as-is, do not require gofmt
Change-Id: If3afd3769dbad0a20bd8ff2f2bbb5eb9f89f345a
This commit is contained in:
parent
683d81f2df
commit
266447a7e7
|
@ -337,6 +337,10 @@ func gofmtRequired(file string) bool {
|
|||
if !strings.HasSuffix(file, ".go") {
|
||||
return false
|
||||
}
|
||||
// vendor files should be imported as-is
|
||||
if strings.HasPrefix(file, "vendor/") {
|
||||
return false
|
||||
}
|
||||
if !strings.HasPrefix(file, "test/") {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue