While rereading the book 'clean code' of Robert C. Martin I just wonder
if sonar has a rule to detect 'selector arguments'.
For anybody who need an example:
could be written as two separate methods to decrease complexity:
For this request I prepared a possible implementation:
My patch is here (on top of java-plugins-1.1): https://github.com/lkwg82/sonar-java/commit/9dcb5e1864d9deb6ce77c4f5e9c32e856b5a5505
This is the discussion on the mailinglist: http://sonar.markmail.org/message/fvlcrk2p2wultkvm?q=list:org%2Ecodehaus%2Esonar%2Euser+selector/flag+arguments