Sha256: 48857383d33f4b8693fa3e1b6beaf762462d72e61a259244b04356ab1b1fdd22

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

require "bundler/setup"

<% if configuration.build_bundler_leak %>
  require "bundler/plumber/task"
<% end %>
<% if configuration.build_git && configuration.build_git_lint %>
  require "git/lint/rake/setup"
<% end %>
<% if configuration.build_reek %>
  require "reek/rake/task"
<% end %>
<% if configuration.build_rspec %>
  require "rspec/core/rake_task"
<% end %>
<% if configuration.build_rubocop %>
  require "rubocop/rake_task"
<% end %>

<% if configuration.build_bundler_leak %>
  Bundler::Plumber::Task.new
<% end %>
<% if configuration.build_reek %>
  Reek::Rake::Task.new
<% end %>
<% if configuration.build_rspec %>
  RSpec::Core::RakeTask.new :spec
<% end %>
<% if configuration.build_rubocop %>
  RuboCop::RakeTask.new
<% end %>

desc "Run code quality checks"
task code_quality: %i[<% if configuration.build_bundler_leak %>bundle:leak<% end %> <% if configuration.build_git && configuration.build_git_lint %>git_lint<% end %> <% if configuration.build_reek %>reek<% end %> <% if configuration.build_rubocop %>rubocop<% end %>]

task default: %i[code_quality <% if configuration.build_rspec %>spec<% end %>]

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-1.0.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.16.1 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.16.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.15.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.14.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.13.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.12.0 lib/rubysmith/templates/%project_name%/Rakefile.erb