Sha256: a9c7900d5e383f07c4b89cef990cdcd59ce8fcdf8adb38e472d03c86bb5d9cc4

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 KB

Contents

require "bundler/setup"

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

<% if realm.build_bundler_audit %>
  Bundler::Audit::Task.new
<% end %>
<% if realm.build_bundler_leak %>
  Bundler::Plumber::Task.new
<% end %>
<% if realm.build_reek %>
  Reek::Rake::Task.new
<% end %>
<% if realm.build_rspec %>
  RSpec::Core::RakeTask.new :spec
<% end %>
<% if realm.build_rubocop %>
  RuboCop::RakeTask.new
<% end %>
<% if realm.build_ruby_critic %>
  RubyCritic::RakeTask.new
<% end %>

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysmith-0.9.1 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.9.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.8.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-0.7.0 lib/rubysmith/templates/%project_name%/Rakefile.erb