Files
ubicloud/.rubocop.yml
Enes Cakir f5f679aa24 Disable Lint/UnderscorePrefixedVariableName
I removed variable names that start with `_` in the previous commit to
follow this rule. However, allowing them for hash value omission seems
reasonable. I also updated a few similar cases where hash value omission
applies.
2025-03-27 12:34:37 +03:00

98 lines
1.4 KiB
YAML

# Modified from https://www.fastruby.io/blog/ruby/code-quality/how-we-use-rubocop-and-standardrb.html
require:
- rubocop-capybara
- rubocop-erb
- standard
plugins:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
- rubocop-sequel
inherit_gem:
standard: config/base.yml
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
- public/**/*
- vendor/**/*
- node_modules/**/*
- coverage/views/*
RSpec:
Enabled: true
Performance:
Enabled: true
Rake:
Enabled: true
Sequel:
Enabled: true
RSpec/DescribeMethod:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/BlockComments:
Enabled: false
Layout/HeredocIndentation:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'views/**/*.erb'
Layout/EmptyLinesAroundMethodBody:
Enabled: false
Lint/UnderscorePrefixedVariableName:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/StubbedMock:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/SubjectStub:
Enabled: false
RSpec/ExpectInHook:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
RSpec/SpecFilePathFormat:
Exclude:
- 'spec/routes/**/*.rb'
RSpec/MultipleMemoizedHelpers:
Enabled: false
Sequel/IrreversibleMigration:
Enabled: false
Capybara/ClickLinkOrButtonStyle:
EnforcedStyle: strict
Lint/UselessTimes:
Enabled: false