Skip to content

Commit

Permalink
test: add rubocop security checks to the default rake task
Browse files Browse the repository at this point in the history
Closes #564
  • Loading branch information
flavorjones committed Feb 7, 2021
1 parent 91d9d0b commit d555b2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ task publish_docs: %w[rdoc] do
sh 'rsync', '-avzO', '--delete', 'doc/', 'docs-push.seattlerb.org:/data/www/docs.seattlerb.org/mechanize/'
end

task default: :test
desc "Run rubocop security check"
task :rubocop_security do
sh "rubocop lib --only Security"
end

task default: [:rubocop_security, :test]
2 changes: 2 additions & 0 deletions mechanize.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency("webrobots", ["< 0.2", ">= 0.0.9"])
spec.add_runtime_dependency('addressable', "~> 2.7")
spec.add_runtime_dependency('webrick', "~> 1.7")

spec.add_development_dependency("rubocop", "~> 1.7")
end

0 comments on commit d555b2f

Please sign in to comment.