Skip to content
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

cmd/vet: detect regexp.MustCompile guaranteed to fail #7895

Closed
rsc opened this issue Apr 29, 2014 · 3 comments

Comments

Projects
None yet
5 participants
@rsc
Copy link
Contributor

commented Apr 29, 2014

regexp.MustCompile(literal-regexp) could be checked by vet to make sure the regexp
really does compile.
@dsymonds

This comment has been minimized.

Copy link
Member

commented Apr 29, 2014

Comment 1:

Other Dave was going to take a crack at this.

Labels changed: added repo-tools.

Owner changed to @okdave.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Apr 29, 2014

Comment 2:

Might as well check regexp.Compile with a string literal while you're at it--a bad
regexp there is worth a warning too.
@dsymonds

This comment has been minimized.

Copy link
Member

commented Jul 11, 2014

Comment 3:

It was decided not to do this.
https://golang.org/cl/98850043/

Status changed to WontFix.

@rsc rsc added wontfix labels Jul 11, 2014

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.