go/go
Erik Dubbelboer 371fc67d3b go/tools: add check for time formats with 2006-02-01
yyyy-dd-mm is a time format that isn't really used anywhere [1]. It is
much more likely that the user intended to use yyyy-mm-dd instead and
made a mistake. This happens quite often [2] because of the unusual way
to handle time formatting and parsing in Go. Since the mistake is Go
specific and happens so often a vet check will be useful.

1. https://stackoverflow.com/questions/2254014/are-there-locales-or-common-programs-that-use-yyyy-dd-mm-as-the-date-format
2. https://github.com/search?l=&p=1&q=%222006-02-01%22+language%3AGo&type=Code

Updates golang/go#48801

Change-Id: I20960c93710766f20a7df90873bff960dea41b28
GitHub-Last-Rev: 496b9917b5eda0525cb75d04a3487d174ccf8fea
GitHub-Pull-Request: golang/tools#342
Reviewed-on: https://go-review.googlesource.com/c/tools/+/354010
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tim King <taking@google.com>
Run-TryBot: Tim King <taking@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-08-03 20:00:23 +00:00
..
analysis go/tools: add check for time formats with 2006-02-01 2022-08-03 20:00:23 +00:00
ast go/ast/astutil: clarify PathEnclosingInterval 2022-06-02 16:01:13 +00:00
buildutil all: gofmt 2022-04-12 17:53:17 +00:00
callgraph go/callgraph/vta: use types.IsInterface instead of our own isInterface 2022-07-18 23:12:37 +00:00
cfg all: gofmt 2022-04-12 17:53:17 +00:00
expect all: gofmt 2022-04-12 17:53:17 +00:00
gccgoexportdata all: gofmt 2022-04-12 17:53:17 +00:00
gcexportdata internal/gcimporter: add support for reading unified IR export data 2022-07-15 15:11:26 +00:00
internal go/internal/gcimporter: set underlying types in proper order; flatten imports 2022-08-01 20:48:56 +00:00
loader all: gofmt 2022-04-12 17:53:17 +00:00
packages internal/span: make NewRange accept File, not FileSet 2022-07-06 19:40:50 +00:00
pointer go/ssa: tweak Function.Name() for generic instantiations 2022-05-18 21:36:11 +00:00
ssa go/ssa: tweak Function.Name() for generic instantiations 2022-05-18 21:36:11 +00:00
types go/types/objectpath: implement fast path for concrete methods 2022-05-13 20:45:12 +00:00
vcs all: gofmt 2022-04-12 17:53:17 +00:00