Class: Gitlab::Ci::Parsers::Codequality::CodeClimate

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/parsers/codequality/code_climate.rb

Instance Method Summary collapse

Instance Method Details

#parse!(json_data, codequality_report) ⇒ Object


8
9
10
11
12
13
14
# File 'lib/gitlab/ci/parsers/codequality/code_climate.rb', line 8

def parse!(json_data, codequality_report)
  root = Gitlab::Json.parse(json_data)

  parse_all(root, codequality_report)
rescue JSON::ParserError => e
  codequality_report.set_error_message("JSON parsing failed: #{e}")
end