Run rubocop via Rakefile
This commit is contained in:
parent
2b26a3aa0e
commit
948ab8604b
2 changed files with 8 additions and 3 deletions
7
Rakefile
7
Rakefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue