SONARPLUGINS-2447 Fix complexity metric computation