Brett Wilson
unread,Apr 9, 2013, 9:37:14 PM4/9/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mike Lawther, Eric Seidel, Mike West, blink-dev, Peter Beverloo
On Tue, Apr 9, 2013 at 5:07 PM, Mike Lawther <
mikel...@chromium.org> wrote:
> I have been using the practice of filing a bug, and referencing the bug, eg
> (from WebCore/platform/CalculationValue.cpp)
>
> // FIXME calc
https://webkit.org/b/80411 : result is NaN when there is a
> division
> // by zero which isn't found at parse time.
>
> There are a bunch of other examples in WebKit code where this practice has
> been followed.
>
> This serves the purpose of knowing who is responsible with a single click
> (no need to spelunk, tracking code moves etc), as well as acting as a repo
> for any discussion about the issue in question. Plus filing bugs for what is
> really an open issue shines more light on the code, making it easier to use
> our tools to see how many open bugs we have. It really is super useful.
>
> Can we please consider adopting this?
In Chrome before launch we used to very strongly encourage bugs to be
filed for all TODOs, and even went through a fixit to do this, so I
agree with you. We seem to have gotten lax about this in the last 4
years or so :)
We used something like "TODO(brettw) bug 12345 blah blah blah". There
was some effort to standardize the exact format so it would be easier
for tools to understand, but that never really caught on and I suspect
it's a waste of time. But I think it's a good idea to recommend in
code reviews that people file bugs for their TODOs, although I don't
think it's something that's worth requiring in the style guide.
Brett