New features
#99:
- Update
rubocop
gem to version 1.22 - Update
rubocop-performance
to version 1.11.5 - Update
rubocop-rails
to version 2.12.2 - Update
rubocop-rspec
to version 2.5.0 - Update
rubocop-thread_safety
to version 0.4.4 - Add
rubocop-rake
plugin - Update
default.yml
configuration with new rules - Set
Style/AccessorGrouping
Enabled
attribute tofalse
- Set
Style/CaseLikeIf
Enabled
attribute to `false - Set
Style/SoleNestedConditional
AllowModifier
attribute tofalse
- Set
Lint/RedundantDirGlobSort
Enabled
attribute tofalse
because it requires Ruby 3.0 - Set
Style/ArgumentsForwarding
Enabled
attribute tofalse
because it requires Ruby 2.7 - Set
Style/CollectionCompact
Enabled
attribute tofalse
- Set
Style/DocumentDynamicEvalDefinition
Enabled
attribute tofalse
- Set
Style/EndlessMethod
EnforcedStyle
attribute toallow_single_line
- Set
Style/HashExcept
Enabled
attribute tofalse
because it requires Ruby 3.0 - Set
Style/MultilineInPatternThen
Enabled
attribute tofalse
because it requires Ruby 2.7 - Set
Style/NumberedParameters
Enabled
attribute tofalse
because it requires Ruby 2.7 - Set
Style/NumberedParametersLimit
Enabled
attribute tofalse
because it requires Ruby 2.7 - Set
Style/SelectByRegexp
Enabled
attribute tofalse
becausegrep
andgrep_v
were optimized when used without a block in Ruby 3.0, but may be slower in previous versions. See https://bugs.ruby-lang.org/issues/17030 - Set
Performance/MapCompact
Enabled
attribute tofalse
because it requires Ruby 2.7 - Set
Layout/LineEndStringConcatenationIndentation
EnforcedStyle
attribute toindented
- Set
Style/StringConcatenation
Mode
attribute toconservative
- Set
Style/RedundantFetchBlock
SafeForConstants
attribute totrue
- Set
Style/OptionalBooleanParameter
AllowedMethods
attribute to['respond_to_missing?']
- Set
Style/ExponentialNotation
EnforcedStyle
attribute toscientific
- Set
Lint/EmptyFile
AllowComments
attribute totrue
- Set
Lint/UselessMethodDefinition
AllowComments
attribute totrue
- Set
Layout/EmptyLinesAroundAttributeAccessor
AllowAliasSyntax
attribute totrue
,AllowedMethods
attribute to['alias_method', 'private', 'protected']
- Set
Layout/BeginEndAlignment
EnforcedStyleAlignWith
attribute tostart_of_line
#100: Add GitHub Actions config