# File lib/kwala/actions/code_formatting.rb, line 107 def score return 10 if @receiver.empty? errors = @receiver.summary.values.inject(0) {|s, v| s + v } # For now made up mappings. case errors when 1..4 : 7 when 5..12 : 5 when 13..20 : 3 else 1 end end