dukeboard/kevoree — comment on commit 97bfc37ce5bc67cc79fcd2d0083667587033cddb
File: kevoree-tools/org.kevoree.tools.annotation.processor/src/main/scala/org/kevoree/framework/annotation/processor/PostAptChecker.scala line 34
By brice-morin:

I might be wrong, but nbErrors == 0 should maybe be the first statement of this def... Anyway... the private var nbErrors is never read...

BTW, instead of having this var, I would suggest that each atomic check returns the number of errors for this particular checking. This would allow for a more modular reporting. Then the overall check would simply return the sum of all atomic checks (and maintain the nbErrors var if need be). But it might be a bad idea... Just think about it ;-)