Sha256: 7fc60dff04199ba84f96612d7ec3203153a7bd13bfb6e1a8b3fee78121530c79
Contents?: true
Size: 937 Bytes
Versions: 6
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true require "rubycritic/commands/default" require "rubycritic/analysers_runner" require "rubycritic/revision_comparator" require "rubycritic/reporter" require "skunk/cli/commands/base" require "skunk/cli/commands/status_reporter" module Skunk module Cli module Command # Default command runs a critique using RubyCritic and uses # Skunk::Command::StatusReporter to report status class Default < RubyCritic::Command::Default def initialize(options) super @status_reporter = Skunk::Command::StatusReporter.new(@options) end def execute RubyCritic::Config.formats = [] report(critique) status_reporter end def report(analysed_modules) status_reporter.analysed_modules = analysed_modules status_reporter.score = analysed_modules.score end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems