Skip to content

Commit

Permalink
Adds Rubocop task to Rakefile
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Kämper <[email protected]>
  • Loading branch information
s2k committed Dec 27, 2024
1 parent f5d236e commit 1a19bb5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'rubocop'

RSpec::Core::RakeTask.new :spec

task default: :spec

desc 'Open a pry console with the gem loaded'
task :console do
exec 'pry -I ./lib -r limit_detectors'
end

RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-rake'
end

task default: %i[spec rubocop]

0 comments on commit 1a19bb5

Please sign in to comment.