Sha256: 58ab9807643e79cedf44e13f9dc8eaab73d4a9780240b3bcf44cadd07e9cf142

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 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_ruby_critic %>
  require "rubycritic/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 %>
<% if configuration.build_ruby_critic %>
  RubyCritic::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 %> <% if configuration.build_ruby_critic %>rubycritic<% end %>]

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-0.11.0 lib/rubysmith/templates/%project_name%/Rakefile.erb