Skip to content
Open
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
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ GEM
gemoji (>= 3, < 5)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
json (2.15.2)
json (2.18.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
Expand Down Expand Up @@ -275,18 +275,18 @@ GEM
regexp_parser (2.11.3)
rexml (3.4.4)
rouge (3.30.0)
rubocop (1.81.6)
rubocop (1.82.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.47.1, < 2.0)
rubocop-ast (>= 1.48.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.47.1)
rubocop-ast (1.48.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-minitest (0.38.2)
Expand Down
5 changes: 5 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,11 @@ Style/ModuleFunction:
Enabled: false
EnforcedStyle: extend_self

<% if rubocop_version >= "1.82" %>
Style/ModuleMemberExistenceCheck:
Enabled: true
<% end %>

Style/MultilineBlockChain:
Enabled: false

Expand Down
23 changes: 18 additions & 5 deletions test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,15 +749,16 @@ Layout/LineLength:
StyleGuide: "#max-line-length"
Enabled: false
VersionAdded: '0.25'
VersionChanged: '1.69'
VersionChanged: '1.82'
Max: 120
AllowHeredoc: true
AllowURI: true
AllowQualifiedName: true
URISchemes:
- http
- https
IgnoreCopDirectives: true
AllowRBSInlineAnnotation: false
AllowCopDirectives: true
AllowedPatterns:
- "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
- "\\A\\s*def test_\\w+\\s*\\Z"
Expand Down Expand Up @@ -2006,7 +2007,10 @@ Lint/UselessNumericOperation:
Lint/UselessOr:
Description: Checks for useless OR expressions.
Enabled: true
SafeAutoCorrect: false
AutoCorrect: contextual
VersionAdded: '1.76'
VersionChanged: '1.82'
Lint/UselessRescue:
Description: Checks for useless `rescue`s.
Enabled: false
Expand Down Expand Up @@ -2497,7 +2501,7 @@ Style/Alias:
- prefer_alias_method
Style/AmbiguousEndlessMethodDefinition:
Description: Checks for endless methods inside operators of lower precedence.
StyleGuide: "#ambiguous-endless-method-defintions"
StyleGuide: "#ambiguous-endless-method-definitions"
Enabled: false
VersionAdded: '1.68'
Style/AndOr:
Expand Down Expand Up @@ -2648,9 +2652,11 @@ Style/BlockDelimiters:
AllowBracesOnProceduralOneLiners: false
BracesRequiredMethods: []
Style/CaseEquality:
Description: Avoid explicit use of the case equality operator(===).
Description: Avoid explicit use of the case equality operator (`===`).
StyleGuide: "#no-case-equality"
Enabled: false
References:
- https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceregexpmatch
VersionAdded: '0.9'
VersionChanged: '0.89'
AllowOnConstant: true
Expand Down Expand Up @@ -3435,7 +3441,7 @@ Style/LambdaCall:
Enabled: false
AutoCorrect: contextual
VersionAdded: '0.13'
VersionChanged: "<<next>>"
VersionChanged: '1.81'
EnforcedStyle: call
SupportedStyles:
- call
Expand Down Expand Up @@ -3498,6 +3504,7 @@ Style/MethodCallWithArgsParentheses:
- puts
AllowedPatterns: []
IncludedMacros: []
IncludedMacroPatterns: []
AllowParenthesesInMultilineCall: false
AllowParenthesesInChaining: false
AllowParenthesesInCamelCaseMethod: false
Expand Down Expand Up @@ -3587,6 +3594,11 @@ Style/ModuleFunction:
- forbidden
Autocorrect: false
SafeAutoCorrect: false
Style/ModuleMemberExistenceCheck:
Description: Checks for usage of `Module` methods returning arrays that can be replaced
with equivalent predicates.
Enabled: true
VersionAdded: '1.82'
Style/MultilineBlockChain:
Description: Avoid multi-line chains of blocks.
StyleGuide: "#single-line-blocks"
Expand Down Expand Up @@ -3970,6 +3982,7 @@ Style/RedundantArgument:
sum: 0
exit: true
exit!: false
to_i: 10
split: " "
chomp: "\n"
chomp!: "\n"
Expand Down