Sha256: 4520faba016ada22fa14e32fe81d51cbe013c2a1a1ff0fc2c34cab8df0ab52eb
Contents?: true
Size: 572 Bytes
Versions: 9
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module Bankai module Generators # :nodoc: class LintGenerator < Base def configure_overcommit template 'overcommit.yml.erb', '.overcommit.yml' end def configure_rubocop template 'rubocop.yml.erb', '.rubocop.yml' end def install_overcommit Bundler.with_clean_env { run 'bundle exec overcommit --install' } end def rubocop_autocorrect Bundler.with_clean_env { run 'bundle exec rubocop --auto-correct' } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems