Skip to content

Commit

Permalink
Test the GitHub RuboCop formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon authored Apr 12, 2024
1 parent c3702f6 commit 82d8d65
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec --force-color
run: bundle exec rake
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
--format documentation
--order random
--require spec_helper
--tty
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Naming/MethodParameterName:
RSpec/DescribedClass:
Enabled: false

RSpec/ExampleLength:
Enabled: false
# RSpec/ExampleLength:
# Enabled: false

RSpec/MultipleExpectations:
Enabled: false
Expand Down
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ require "rspec/core/rake_task"
require "rubocop/rake_task"

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new(:rubocop)

RuboCop::RakeTask.new(:rubocop) do |config|
config.formatters = ["github"] if ENV["CI"]
end

task default: [:spec, :rubocop]

0 comments on commit 82d8d65

Please sign in to comment.