Rakefile in bhook-0.1.4 vs Rakefile in bhook-0.1.5
- old
+ new
@@ -8,6 +8,17 @@
desc 'Run Sorbet Typechecker'
task :sorbet do
sh('bundle exec srb tc')
end
-task default: %i[sorbet spec]
+cops = %w[
+ Layout/TrailingWhitespace
+ Layout/SpaceInsideBlockBraces
+ Style/StringLiterals
+]
+
+desc "Apply #{cops.join(', ')}"
+task :lint_with_autocorrect do
+ sh("bundle exec rubocop -a --only #{cops.join(',')}")
+end
+
+task default: %i[lint_with_autocorrect sorbet spec]