Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
yuxiaobo c6d48c7f12 add license in /misc file
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-22 18:30:49 +08:00
deepthi 5533cda5f5 go vet errors should be fatal, same as before
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-04-26 10:09:49 -07:00
deepthi e83ccd1fc5 change govet to prompt for each package similar to staticcheck
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-04-26 09:45:04 -07:00
Alex Charis 696322b5f4 call go vet properly
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-04-26 09:44:23 -07:00
Alex Charis c56496dd6d fix comment line pointing to docs, and use gopackages from staticcheck
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-04-26 09:43:26 -07:00
Alex Charis a27d0559b2 misc: update go vet githook invocation
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-04-26 09:43:26 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Alain Jobart 11b9990b32 Removing unnecessary govet exception, and fixing paths
in the exception file to prove it works.
2015-11-11 09:57:45 -08:00
Michael Berlin 7cfa14ecd0 misc: Fail precommits if GOPATH is not set.
Some precommits (go vet, golint) require a working Go environment
because they not only look at the file under inspection itself, but they
also try to load the imported packages.

Unfortunately, they don't fail if they cannot load the imports. Instead,
you see subsequent errors due to the missing imports.

For example:

Go vet error: "composite literal uses unkeyed fields"

This occurs when we use a struct initializer
without keyed fields where the struct is defined in another Go package.
In that case, the tools cannot find out how many/which fields the struct
has and if it's actually okay to use unkeyed fields because we specify
all fields.
2015-10-23 17:45:54 -07:00
Alain Jobart bcb1647b49 Adding better error handling for grpc tablet client.
Still seems to break vtgatev2_test.py in grpc though.
2015-08-07 11:41:11 -07:00
Anthony Yeh 86071decf6 Ignore third_party and Godeps in git precommit hooks. 2015-01-28 15:42:47 -08:00
Anthony Yeh 889a1682ff Add "go vet" as a presubmit and use goimports instead of gofmt. 2014-08-06 12:07:50 -07:00