remove 'do' statement from cyclomatic complexity computation
Fix duplication metric implementation