Rakefile in loofah-2.3.1 vs Rakefile in loofah-2.4.0

- old
+ new

@@ -26,10 +26,11 @@ extra_dev_deps << ["hoe-gemspec", "~> 1.0"] extra_dev_deps << ["hoe-debugging", "~> 2.0"] extra_dev_deps << ["hoe-bundler", "~> 1.5"] extra_dev_deps << ["hoe-git", "~> 1.6"] extra_dev_deps << ["concourse", ">=0.26.0"] + extra_dev_deps << ["rubocop", ">=0.76.0"] end task :gemspec do system %q(rake debug_gem | grep -v "^\(in " > loofah.gemspec) end @@ -72,9 +73,18 @@ desc "generate safelists from W3C specifications" task :generate_safelists do load "tasks/generate-safelists" end + +task :rubocop => [:rubocop_security, :rubocop_frozen_string_literals] +task :rubocop_security do + sh "rubocop lib --only Security" +end +task :rubocop_frozen_string_literals do + sh "rubocop lib --auto-correct --only Style/FrozenStringLiteralComment" +end +Rake::Task[:test].prerequisites << :rubocop Concourse.new("loofah", fly_target: "ci") do |c| c.add_pipeline "loofah", "loofah.yml" c.add_pipeline "loofah-pr", "loofah-pr.yml" end