All done, and sync'd to head. https://codereview.appspot.com/98850043/diff/80001/cmd/vet/regexp.go File cmd/vet/regexp.go (right): https://codereview.appspot.com/98850043/diff/80001/cmd/vet/regexp.go#newcode18 cmd/vet/regexp.go:18: if !vet("regexp") { ...
9 years, 10 months ago
(2014-06-13 03:09:39 UTC)
#3
LGTM, but wait for r to weigh in. https://codereview.appspot.com/98850043/diff/140001/cmd/vet/regexp.go File cmd/vet/regexp.go (right): https://codereview.appspot.com/98850043/diff/140001/cmd/vet/regexp.go#newcode34 cmd/vet/regexp.go:34: if ...
9 years, 10 months ago
(2014-06-13 07:41:29 UTC)
#5
LGTM https://codereview.appspot.com/98850043/diff/180001/cmd/vet/regexp.go File cmd/vet/regexp.go (right): https://codereview.appspot.com/98850043/diff/180001/cmd/vet/regexp.go#newcode57 cmd/vet/regexp.go:57: f.Badf(lit.Pos(), err.Error()) either use f.Bad, or use a ...
9 years, 10 months ago
(2014-06-13 09:22:04 UTC)
#7
I don't think this is worth it, since it's checking something that's already verifiable by ...
9 years, 10 months ago
(2014-06-13 13:20:27 UTC)
#9
I don't think this is worth it, since it's checking something that's already
verifiable by existing means.
I'm worried that people are turning vet into a little playground for ideas in
static analysis. Every new check should add genuine value. Vet needs to stay
focused on issues that cause real bugs that are otherwise hard to find.
I ran this on a large corpus. It found only one instance: github.com/coocood/jas/router_test.go:161: error parsing ...
9 years, 10 months ago
(2014-06-13 15:52:45 UTC)
#10
I ran this on a large corpus. It found only one instance:
github.com/coocood/jas/router_test.go:161: error parsing regexp: invalid escape
sequence: `\1`
And that appears to have been fixed since I last updated the corpus.
I'm with r on this one.
Rob, What about a Goadvise or Golint for more general static analysis? (fork govet and ...
9 years, 10 months ago
(2014-06-13 19:52:18 UTC)
#11
Rob,
What about a Goadvise or Golint for more general static analysis? (fork
govet and accept most anything in the new one and greatest hits in the
former.)
On Fri, Jun 13, 2014 at 5:52 PM, <josharian@gmail.com> wrote:
> I ran this on a large corpus. It found only one instance:
>
> github.com/coocood/jas/router_test.go:161: error parsing regexp: invalid
> escape sequence: `\1`
>
> And that appears to have been fixed since I last updated the corpus.
>
> I'm with r on this one.
>
> https://codereview.appspot.com/98850043/
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
*Michael T. Jones | Chief Technology Advocate | mtj@google.com
<mtj@google.com> | +1 650-335-5765*
"One man's toy is another's real system, and every tool adds to the arsenal." On ...
9 years, 10 months ago
(2014-06-13 19:53:55 UTC)
#12
"One man's toy is another's real system, and every tool adds to the
arsenal."
On Fri, Jun 13, 2014 at 9:51 PM, Michael Jones <mtj@google.com> wrote:
> Rob,
>
> What about a Goadvise or Golint for more general static analysis? (fork
> govet and accept most anything in the new one and greatest hits in the
> former.)
>
>
> On Fri, Jun 13, 2014 at 5:52 PM, <josharian@gmail.com> wrote:
>
>> I ran this on a large corpus. It found only one instance:
>>
>> github.com/coocood/jas/router_test.go:161: error parsing regexp: invalid
>> escape sequence: `\1`
>>
>> And that appears to have been fixed since I last updated the corpus.
>>
>> I'm with r on this one.
>>
>> https://codereview.appspot.com/98850043/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-codereviews" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-codereviews+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> *Michael T. Jones | Chief Technology Advocate | mtj@google.com
> <mtj@google.com> | +1 650-335-5765 <%2B1%20650-335-5765>*
>
--
*Michael T. Jones | Chief Technology Advocate | mtj@google.com
<mtj@google.com> | +1 650-335-5765*
I was mostly thinking of this check in the context of vet being used as ...
9 years, 10 months ago
(2014-06-19 03:56:04 UTC)
#13
I was mostly thinking of this check in the context of vet being used as
part of a code review tool. However, it does only pick up issues which even
a tiny amount of testing should uncover, so happy to go with the crowd and
drop it.
On 14 June 2014 01:52, <josharian@gmail.com> wrote:
> I ran this on a large corpus. It found only one instance:
>
> github.com/coocood/jas/router_test.go:161: error parsing regexp: invalid
> escape sequence: `\1`
>
> And that appears to have been fixed since I last updated the corpus.
>
> I'm with r on this one.
>
> https://codereview.appspot.com/98850043/
>
If it's code review you want, suggest it for golint instead of vet. -rob On ...
9 years, 10 months ago
(2014-06-19 05:27:32 UTC)
#14
If it's code review you want, suggest it for golint instead of vet.
-rob
On Wed, Jun 18, 2014 at 8:55 PM, Dave Day <davidday@google.com> wrote:
> I was mostly thinking of this check in the context of vet being used as part
> of a code review tool. However, it does only pick up issues which even a
> tiny amount of testing should uncover, so happy to go with the crowd and
> drop it.
>
>
> On 14 June 2014 01:52, <josharian@gmail.com> wrote:
>>
>> I ran this on a large corpus. It found only one instance:
>>
>> github.com/coocood/jas/router_test.go:161: error parsing regexp: invalid
>> escape sequence: `\1`
>>
>> And that appears to have been fixed since I last updated the corpus.
>>
>> I'm with r on this one.
>>
>> https://codereview.appspot.com/98850043/
>
>
NOT LGTM Clearing this from the dashboard. Perhaps it belongs in golint? But I don' ...
9 years, 10 months ago
(2014-06-26 18:17:35 UTC)
#15
NOT LGTM
Clearing this from the dashboard. Perhaps it belongs in golint? But I don' think
it's worthwhile anywhere and josharian's statistic supports that.
Issue 98850043: code review 98850043: cmd/vet: check that string literals in regexp.Compile a...
(Closed)
Created 9 years, 12 months ago by djd
Modified 9 years, 10 months ago
Reviewers: dsymonds, r, josharian, mtj1, alsodave
Base URL:
Comments: 20