tip for sonar results

This commit is contained in:
huang 2016-08-24 15:05:10 +08:00
parent 5e98884801
commit bafb3e98a7
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class QualityAnalysisController < ApplicationController
@quality_analyses = QualityAnalysis.where(:project_id => @project.id).select{|qa| arr.include?(qa.sonar_name)}
else
languate_arr = ['ruby', 'c#', 'c++', 'c']
qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(language)
qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(:language)
if !qa_language.blank? && languate_arr.include?(qa_language)
@language_flag = true
end