summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/Rakefile.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/Rakefile.tt')
-rw-r--r--lib/bundler/templates/newgem/Rakefile.tt6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/Rakefile.tt b/lib/bundler/templates/newgem/Rakefile.tt
index 5393eb4e22..00b91c8464 100644
--- a/lib/bundler/templates/newgem/Rakefile.tt
+++ b/lib/bundler/templates/newgem/Rakefile.tt
@@ -18,12 +18,16 @@ require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
<% end -%>
-<% if config[:rubocop] -%>
+<% if config[:linter] == "rubocop" -%>
<% default_task_names << :rubocop -%>
require "rubocop/rake_task"
RuboCop::RakeTask.new
+<% elsif config[:linter] == "standard" -%>
+<% default_task_names << :standard -%>
+require "standard/rake"
+
<% end -%>
<% if config[:ext] -%>
<% default_task_names.unshift(:clobber, :compile) -%>