Sha256: 010b17bb4976380483fc6e3411856cfdd002162ff78f6ccb9e9b3d7224d401d9
Contents?: true
Size: 316 Bytes
Versions: 8
Compression:
Stored size: 316 Bytes
Contents
module PowerApi::GeneratorHelper::RubocopHelper extend ActiveSupport::Concern def format_ruby_file(path) return unless File.exist?(path) options, paths = RuboCop::Options.new.parse(["-a", "-fa", path]) runner = RuboCop::Runner.new(options, RuboCop::ConfigStore.new) runner.run(paths) end end
Version data entries
8 entries across 8 versions & 1 rubygems