Sha256: ef03b4d941a0fbde0b80d498d232629c309d25aa8bf5299ddff12dfde766c9cc

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.

require 'bake/modernize'
require 'build/files/system'

def rubocop
	update(root: Dir.pwd)
end

def update(root:)
	system("bundle", "add", "rubocop", "--group", "test", chdir: root)
	
	template_root = Bake::Modernize.template_path_for('rubocop')
	Bake::Modernize.copy_template(template_root, root)
	
	system("bundle", "update", chdir: root)
	system("bundle", "exec", "rubocop", chdir: root)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bake-modernize-0.29.0 bake/modernize/rubocop.rb
bake-modernize-0.28.0 bake/modernize/rubocop.rb
bake-modernize-0.27.3 bake/modernize/rubocop.rb
bake-modernize-0.27.2 bake/modernize/rubocop.rb
bake-modernize-0.27.1 bake/modernize/rubocop.rb
bake-modernize-0.27.0 bake/modernize/rubocop.rb