How to measure WTFs in Sonar ?
The WTF per minute has become a buzz in the past few weeks and almost a kind of reference in the code quality world :-). Just for fun, a new version of the Sonar taglist plugin has been released to be able to count the number of time "// WTF" has been cried and written in the source code. With a small addition to the plugin, it would even be capable of reporting on a density of WTFs by minute, hour, day... but shortest jokes are the best.
Despite all its noisy strengths, the WTF suffers from a major weakness : it is a human based judgment at a certain point in time and space. That is why, this can be complemented with an other plugin to evaluate the technical debt of a project. Between the two plugins is going to be the truth !