Sha256: 31a1b1a1ac0b4b6aacbfb39ae8d814a915fdf2b925341806d8070dd54f199347
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
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 report(critique) status_reporter end def critique RubyCritic::AnalysersRunner.new(paths).run end def report(analysed_modules) RubyCritic::Reporter.generate_report(analysed_modules) status_reporter.analysed_modules = analysed_modules status_reporter.score = analysed_modules.score end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skunk-0.2.0 | lib/skunk/cli/commands/default.rb |
skunk-0.1.0 | lib/skunk/cli/commands/default.rb |