Sha256: 9f67cfc68824f1f8af6def210474d3c88fc22fd6020a826951d85be495f618b3

Contents?: true

Size: 1.22 KB

Versions: 15

Compression:

Stored size: 1.22 KB

Contents

require "bundler/setup"

<% if configuration.build_git && configuration.build_git_lint %>
  require "git/lint/rake/register"
<% end %>
<% if configuration.build_reek %>
  require "reek/rake/task"
<% end %>
<% if configuration.build_rspec %>
  require "rspec/core/rake_task"
<% end %>
<% if configuration.build_caliber %>
  require "rubocop/rake_task"
<% end %>
<% if configuration.build_yard %>
  require "yard"
<% end %>

<% if configuration.build_git && configuration.build_git_lint %>
  Git::Lint::Rake::Register.call
<% end %>
<% if configuration.build_reek %>
  Reek::Rake::Task.new
<% end %>
<% if configuration.build_rspec %>
  RSpec::Core::RakeTask.new
<% end %>
<% if configuration.build_caliber %>
  RuboCop::RakeTask.new
<% end %>

<% if configuration.build_yard %>
  YARD::Rake::YardocTask.new do |task|
    task.options = ["--title", "<%= configuration.project_label %>", "--output-dir", "doc/yard"]
  end
<% end %>

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-5.1.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-5.0.1 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.9.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.8.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.7.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.6.1 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.6.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.5.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.4.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.3.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.2.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.1.0 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.0.1 lib/rubysmith/templates/%project_name%/Rakefile.erb
rubysmith-4.0.0 lib/rubysmith/templates/%project_name%/Rakefile.erb