Thanks Stephen and Richard for advice, the Sonar one looks good. I'm gonna fwd your replies directly to her as voices from the community, ha ha ha, I bet she would love your complements.
Tai On Wed, Aug 29, 2012 at 4:35 PM, Richard Bywater <rich...@byh2o.com> wrote: > Agreed. > > Personally I like Sonar (http://www.sonarsource.org/) which gives a > more holistic view of things. > > Although I'm guessing your manager can still read stupid things into it... > > Richard. > > On Wed, Aug 29, 2012 at 9:28 PM, Stephen Connolly > <stephen.alan.conno...@gmail.com> wrote: > > ASIDE: > > > > Your manager is an idiot. > > > > The most productive programmer may well be the one removing the most code > > each day/week/month > > > > The number of bugs is a function of the number of lines of code, > therefore > > the more lines of code you write the more bugs you write and the harder > it > > is. > > > > This is a dangerous road for the manager to go down... > > > > Once he/she starts down this road you will have developers committing > > changes > > > > > > > > with > > > > > > > > lots > > > > > > > > of > > > > > > > > padding > > > > > > whitespace > > > > > > > > > > > > > > > > > > "to > > > > > > > > > > > > make > > > > > > > > > > > > the > > > > > > > > > > > > code > > > > > > > > > > > > > > easier > > > > > > > > > > > > to > > > > > > > > > > > > read" > > > > > > So the next request you will have to respond to from your manager is to > > count the "non-blank" lines of code... > > > > /* > > * > > * Comments are great for making code more readable. > > * > > * > > * No body has ever been shot for putting comments into code to help the > > people maintain the code > > * > > * > > * Though if you have seen some of the comments I have, perhaps some > should > > have been > > * > > */ > > > > So expect about 1 performance review cycle later to be asked to filter > out > > comments.... > > > > private static void rainyDayMethod() { > > int foo=0; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > foo++; > > } > > > > Add that to any class you feel like and... presto chango... your manager > now > > will be asking for you to filter out "dead code" and "unused > > methods/classes" > > > > This metric is far far far too easy to game. > > > > Ask your manager to reconsider. > > > > On 29 August 2012 09:48, fried noodle <hutieu...@gmail.com> wrote: > >> > >> Hi, > >> > >> Are there any plugins for Jenkins to show a report about the lines of > code > >> commited by each developer in a particular period (days, weeks, > months)? My > >> manager wants that data to keep track of team's productivity. > >> > >> Many thanks in advance. > >> > >> Tai > > > > >