.rubocop.yml
require:
- rubocop-performance
- rubocop-rspec
inherit_gem:
rentacop:
- rentacop.yml
- rspec.yml
AllCops:
TargetRubyVersion: 3.0
Exclude:
- dev/**/*
# Allow `$stderr.puts` in a command line
Style/StderrPuts:
Exclude:
- lib/madness/command_line.rb
# Allow longer examples
RSpec/ExampleLength:
Max: 9
# Allow more expectations
RSpec/MultipleExpectations:
Max: 9
# Allow `expect` instead of `allow`
RSpec/StubbedMock:
Enabled: false
# The `override_config` here is more complex
Metrics/AbcSize:
Exclude:
- lib/madness/commands/server.rb
# The main server route is long
Metrics/BlockLength:
Exclude:
- lib/madness/server.rb