# File lib/kwala/actions/syntax_check.rb, line 84 def score return 10 if @syntax_results.empty? errors = @syntax_results.map { |e| e[:error_count] }.inject(0) { |s,v| s + v} if errors > 0 #errors > 10 ? -10 : 10 - errors # For now any sytnax error is bad. -100 else # must have warnings 3 is an arbitrary choice at the moment. 3 end end