-
Notifications
You must be signed in to change notification settings - Fork 2.3k
go/tools: add check for time formats with 2006-02-01 #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 378e8e6) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Has a proposal been accepted for this? If not, please submit a proposal for the new vet checker. The process is documented here https://github.com/golang/proposal#the-proposal-process . |
Message from Tim King: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
378e8e6
to
80add7a
Compare
Message from Tim King: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
This PR (HEAD: 80add7a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Tim King: Patch Set 2: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 2: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 2: gopls-CI-1 Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 2: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
80add7a
to
bc7a674
Compare
This PR (HEAD: bc7a674) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Erik Dubbelboer: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Robert Findley: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 3: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Robert Findley: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 3: gopls-CI-1 Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
This PR (HEAD: 1c22f3b) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Gopher Robot: Patch Set 3: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Erik Dubbelboer: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Tim King: Patch Set 4: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 4: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Tim King: Patch Set 10: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
77e7600
to
5d16f99
Compare
This PR (HEAD: 5d16f99) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Erik Dubbelboer: Patch Set 11: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Tim King: Patch Set 12: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
5d16f99
to
1396411
Compare
This PR (HEAD: 1396411) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Erik Dubbelboer: Patch Set 12: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Robert Findley: Patch Set 13: Run-TryBot+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 13: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 13: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 13: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 13: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
1396411
to
a717a0a
Compare
This PR (HEAD: a717a0a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Erik Dubbelboer: Patch Set 13: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Robert Findley: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
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
a717a0a
to
496b991
Compare
This PR (HEAD: 496b991) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/354010 to see it. Tip: You can toggle comments from me using the |
Message from Erik Dubbelboer: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Tim King: Patch Set 15: Run-TryBot+1 Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 15: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 15: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from kokoro: Patch Set 15: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Gopher Robot: Patch Set 15: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
Message from Robert Findley: Patch Set 15: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/354010. |
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: 496b991 GitHub-Pull-Request: #342 Reviewed-on: https://go-review.googlesource.com/c/tools/+/354010 gopls-CI: kokoro <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Tim King <[email protected]> Run-TryBot: Tim King <[email protected]> Reviewed-by: Robert Findley <[email protected]>
This PR is being closed because golang.org/cl/354010 has been merged. |
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.
Updates golang/go#48801