Sha256: 116c8ffc37e5ad4bf03ac27fe6884efc82361e19ceb3e847ae5f457dc1d94092
Contents?: true
Size: 612 Bytes
Versions: 23
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true require "refinements/ios" require "rubocop" module Rubysmith module Extensions # Ensures project skeleton adheres to style guide. class Rubocop using Refinements::IOs def self.call(...) = new(...).call def initialize configuration, client: ::RuboCop::CLI.new @configuration = configuration @client = client end def call STDOUT.squelch { client.run ["--autocorrect-all", configuration.project_root.to_s] } configuration end private attr_reader :configuration, :client end end end
Version data entries
23 entries across 23 versions & 1 rubygems