Skip to content

Commit

Permalink
Pass --linter=rubocop to bundle gem
Browse files Browse the repository at this point in the history
It seems very unlikely that someone would want to generate a RuboCop
extension, but use a linter other than RuboCop, so let's save the user
the time.
  • Loading branch information
sambostock committed Feb 4, 2023
1 parent a30fd76 commit 40d38c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/extension/generator/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(name)
end

def generate
system('bundle', 'gem', '--test=rspec', name, exception: true)
system('bundle', 'gem', '--linter=rubocop', '--test=rspec', name, exception: true)

put "lib/#{name}.rb", <<~RUBY
# frozen_string_literal: true
Expand Down

0 comments on commit 40d38c9

Please sign in to comment.