> On Aug. 25, 2014, 1:01 a.m., Adam B wrote: > > support/cpplint.py, lines 1550-1552 > > <https://reviews.apache.org/r/23710/diff/2/?file=664933#file664933line1550> > > > > s/i/i-1/? > > Timothy Chen wrote: > ah, I think it should be i+1? since it's 0 based index. > > Timothy Chen wrote: > Actually it should be i because of the padding done. > > Adam B wrote: > What testing was done on this code? 'make check' hardly seems relevant. > Did you verify that these style errors print the correct line number?
I just tested this with a malformed comment on line 1 and line 4079 (last) of a file. Here's what it prints: src/slave/slave.cpp:19: Comment should end in non-alphabetical character. Line: // foo bar src/slave/slave.cpp:4080: Comment should end in non-alphabetical character. Line: // foo bar Looks like the line number calculation is wrong. :( - Adam ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23710/#review51382 ----------------------------------------------------------- On Aug. 25, 2014, 5:12 p.m., Timothy Chen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/23710/ > ----------------------------------------------------------- > > (Updated Aug. 25, 2014, 5:12 p.m.) > > > Review request for mesos, Adam B, Benjamin Hindman, and Niklas Nielsen. > > > Repository: mesos-git > > > Description > ------- > > Review: https://reviews.apache.org/r/23710 > > > Diffs > ----- > > support/cpplint.patch 1dd69a03044c0c17ca4ee555c6c9d27ea043d4f0 > support/cpplint.py bfd3390002a680b07aa3fcf785279ad19625294b > support/mesos-style.py d24cb11adc06bc0ebaaa206301616c8b597f09e8 > > Diff: https://reviews.apache.org/r/23710/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Timothy Chen > >
