Sha256: 69640241ed1e3659dc0eb43fcb616b0c06efc3fabd2d9447366bdd1ac9fb41e3
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
require 'json' require_relative '../result' require_relative './base' module CircleCI module CoverageReporter module Reporters class RubyCritic < Base DEFAULT_DIR = 'rubycritic'.freeze def self.default_dir 'rubycritic' end def self.default_html_file_name 'overview.html' end def self.default_json_file_name 'report.json' end private # @param json [String] # @return [Float] def parse_json(json) JSON.parse(json)['score'].to_f end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems