diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/cli/gem.rb | 1 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/rubocop.yml.tt | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb index 5b4e436d99..df93fd92a6 100644 --- a/lib/bundler/cli/gem.rb +++ b/lib/bundler/cli/gem.rb @@ -79,6 +79,7 @@ module Bundler ] templates.merge!("gitignore.tt" => ".gitignore") if Bundler.git_present? + templates.merge!("rubocop.yml.tt" => ".rubocop.yml") if test_framework = ask_and_set_test_framework config[:test] = test_framework diff --git a/lib/bundler/templates/newgem/rubocop.yml.tt b/lib/bundler/templates/newgem/rubocop.yml.tt new file mode 100644 index 0000000000..ca11bac1b6 --- /dev/null +++ b/lib/bundler/templates/newgem/rubocop.yml.tt @@ -0,0 +1,7 @@ +Style/StringLiterals: + Enabled: true + EnforcedStyle: double_quotes + +Style/StringLiteralsInInterpolation: + Enabled: true + EnforcedStyle: double_quotes |