Skip to content

Commit

Permalink
Add RuboCop Rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver authored and sbernhard committed Jan 18, 2024
1 parent 295da89 commit e40c7cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ begin
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

begin
require 'rdoc/task'
rescue LoadError
Expand Down Expand Up @@ -31,4 +32,12 @@ Rake::TestTask.new(:test) do |t|
t.verbose = false
end

begin
require 'rubocop/rake_task'
rescue LoadError
# Test group disabled
else
RuboCop::RakeTask.new
end

task default: :test

0 comments on commit e40c7cf

Please sign in to comment.