Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/runtime_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ruby-version: 4.0
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
run: bundle exec rake rubocop
- name: Vanagon inspect
run: |
stat=0
Expand Down
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,17 @@ def run_command(cmd, silent: true, print_command: false, report_status: false)
output.chomp
end

begin
require 'rubocop/rake_task'
rescue LoadError
# Do nothing if no required gem installed
else
RuboCop::RakeTask.new(:rubocop) do |task|
# These make the rubocop experience maybe slightly less terrible
task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']
# Use Rubocop's Github Actions formatter if possible
task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
end
end

Dir.glob(File.join('tasks/**/*.rake')).each { |file| load file }
Loading