improving CodeClimate's complexity analysis