Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(482)

Issue 7322061: code review 7322061: go/doc: add support for arbitrary notes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by cnicolaou
Modified:
12 years, 4 months ago
Reviewers:
CC:
gri, rsc, bradfitz, jscrockett01, golang-dev
Visibility:
Public.

Description

go/doc: add support for arbitrary notes Add support for arbitrary notes of the form // MARKER(userid): comment in the same vein as BUG(userid): A marker must be two or more upper case [A-Z] letters.

Patch Set 1 : diff -r 797127fc279b https://code.google.com/p/go #

Patch Set 2 : diff -r 797127fc279b https://code.google.com/p/go #

Total comments: 4

Patch Set 3 : diff -r 797127fc279b https://code.google.com/p/go #

Total comments: 8

Patch Set 4 : diff -r 797127fc279b https://code.google.com/p/go #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -12 lines) Patch
M src/pkg/go/doc/doc.go View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M src/pkg/go/doc/reader.go View 1 2 3 4 chunks +26 lines, -11 lines 1 comment Download
M src/pkg/go/doc/testdata/a.0.golden View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/a.1.golden View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/a.2.golden View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/a0.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/a1.go View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/template.txt View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 18
cnicolaou
Hello gri@golang.org, gri@google.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 4 months ago (2013-02-13 23:31:42 UTC) #1
rsc
https://codereview.appspot.com/7322061/diff/3/src/pkg/go/doc/doc.go File src/pkg/go/doc/doc.go (right): https://codereview.appspot.com/7322061/diff/3/src/pkg/go/doc/doc.go#newcode21 src/pkg/go/doc/doc.go:21: // Additional annotations such as TODO(userid): or SECURITY(userid): How ...
12 years, 4 months ago (2013-02-14 02:15:51 UTC) #2
gri
https://codereview.appspot.com/7322061/diff/3/src/pkg/go/doc/doc.go File src/pkg/go/doc/doc.go (right): https://codereview.appspot.com/7322061/diff/3/src/pkg/go/doc/doc.go#newcode21 src/pkg/go/doc/doc.go:21: // Additional annotations such as TODO(userid): or SECURITY(userid): On ...
12 years, 4 months ago (2013-02-14 02:46:17 UTC) #3
cnicolaou
Hello gri@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2013-02-14 18:28:29 UTC) #4
bradfitz
https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go File src/pkg/go/doc/reader.go (right): https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go#newcode404 src/pkg/go/doc/reader.go:404: annotation_marker = regexp.MustCompile("^/[/*][ \t]*([A-Z][A-Z]+)\\(.*\\):[ \t]*(.*)") // MARKER(uid) this must ...
12 years, 4 months ago (2013-02-14 18:44:58 UTC) #5
bradfitz
Also, CL description should be of the form: cmd/godoc: add support for arbitrary annotations (blank ...
12 years, 4 months ago (2013-02-14 18:45:36 UTC) #6
gri
https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go File src/pkg/go/doc/reader.go (right): https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go#newcode408 src/pkg/go/doc/reader.go:408: func readAnnotation(c *ast.CommentGroup) (marker, annotation string, found bool) { ...
12 years, 4 months ago (2013-02-14 18:47:29 UTC) #7
rsc
(And in response to Brad, yes, this is ancient code.) https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/doc.go File src/pkg/go/doc/doc.go (right): https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/doc.go#newcode24 ...
12 years, 4 months ago (2013-02-14 18:54:29 UTC) #8
jscrockett01
Has it been considered to allow post-^ whitespace for annotations inside functions or at the ...
12 years, 4 months ago (2013-02-14 19:01:27 UTC) #9
cnicolaou
On 2013/02/14 18:44:58, bradfitz wrote: > https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go > File src/pkg/go/doc/reader.go (right): > > https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go#newcode404 > ...
12 years, 4 months ago (2013-02-14 19:43:57 UTC) #10
cnicolaou
On 2013/02/14 18:45:36, bradfitz wrote: > Also, CL description should be of the form: > ...
12 years, 4 months ago (2013-02-14 19:44:16 UTC) #11
cnicolaou
On 2013/02/14 18:47:29, gri wrote: > https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go > File src/pkg/go/doc/reader.go (right): > > https://codereview.appspot.com/7322061/diff/9001/src/pkg/go/doc/reader.go#newcode408 > ...
12 years, 4 months ago (2013-02-14 19:44:27 UTC) #12
cnicolaou
On 2013/02/14 18:54:29, rsc wrote: > (And in response to Brad, yes, this is ancient ...
12 years, 4 months ago (2013-02-14 19:44:47 UTC) #13
cnicolaou
On 2013/02/14 19:01:27, jscrockett01 wrote: > Has it been considered to allow post-^ whitespace for ...
12 years, 4 months ago (2013-02-14 19:47:11 UTC) #14
cnicolaou
Hello gri@golang.org, rsc@golang.org, bradfitz@golang.org, jscrockett01@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2013-02-14 19:47:31 UTC) #15
gri
LGTM https://codereview.appspot.com/7322061/diff/10009/src/pkg/go/doc/reader.go File src/pkg/go/doc/reader.go (right): https://codereview.appspot.com/7322061/diff/10009/src/pkg/go/doc/reader.go#newcode410 src/pkg/go/doc/reader.go:410: if m := noteMarker.FindStringSubmatch(text); m != nil { ...
12 years, 4 months ago (2013-02-14 21:00:21 UTC) #16
cnicolaou
On 2013/02/14 21:00:21, gri wrote: > LGTM > > https://codereview.appspot.com/7322061/diff/10009/src/pkg/go/doc/reader.go > File src/pkg/go/doc/reader.go (right): > ...
12 years, 4 months ago (2013-02-14 22:44:19 UTC) #17
gri
12 years, 4 months ago (2013-02-15 04:21:08 UTC) #18
*** Submitted as https://code.google.com/p/go/source/detail?r=ca70973f6b7a ***

go/doc: add support for arbitrary notes

Add support for arbitrary notes of the form // MARKER(userid): comment
in the same vein as BUG(userid): A marker must be two or more upper case [A-Z]
letters.

R=gri, rsc, bradfitz, jscrockett01
CC=golang-dev
https://codereview.appspot.com/7322061

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b