Skip to content

Commit

Permalink
Add RuboCop rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jan 31, 2020
1 parent 838f427 commit 6ba7050
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ require "bundler/gem_tasks"

require "rake/testtask"
require "rdoc/task"
require "rubocop/rake_task"

gemspec = eval(File.read(Dir["*.gemspec"].first))

desc "Default: run unit tests."
task default: "test:all"

namespace :test do
versions = Dir["gemfiles/*.gemfile"]
.map { |gemfile_path| gemfile_path.split(%r{/|\.})[1] }
Expand All @@ -32,6 +30,8 @@ Rake::TestTask.new(:test) do |t|
t.verbose = true
end

RuboCop::RakeTask.new

desc "Generate documentation for the acts_as_paranoid plugin."
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = "rdoc"
Expand All @@ -50,3 +50,6 @@ desc "Clean automatically generated files"
task :clean do
FileUtils.rm_rf "pkg"
end

desc "Default: run unit tests"
task default: "test:all"

0 comments on commit 6ba7050

Please sign in to comment.