Run rubocop via Rakefile

This commit is contained in:
Sven Weidauer 2022-05-29 10:20:33 +02:00
parent 2b26a3aa0e
commit 948ab8604b
2 changed files with 8 additions and 3 deletions

View file

@ -14,3 +14,10 @@ require 'rubocop/rake_task'
desc 'Run RuboCop'
RuboCop::RakeTask.new(:lint)
desc 'Run RuboCop for GitHub'
RuboCop::RakeTask.new(:lint_github) do |t|
t.requires << 'code_scanning'
t.formatters << 'CodeScanning::SarifFormatter'
t.options << '-o' << 'rubocop.sarif'
end