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
22 changes: 14 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ GEM
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
json (2.19.2)
json-schema (6.2.0)
addressable (~> 2.8)
bigdecimal (>= 3.1, < 5)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
Expand All @@ -239,6 +242,8 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.7.0)
mcp (0.8.0)
json-schema (>= 4.1)
mercenary (0.3.6)
mini_portile2 (2.8.9)
minima (2.5.1)
Expand All @@ -260,12 +265,12 @@ GEM
faraday (>= 1, < 3)
sawyer (~> 0.9)
parallel (1.27.0)
parser (3.3.10.0)
parser (3.3.10.2)
ast (~> 2.4.1)
racc
pathutil (0.16.2)
forwardable-extended (~> 2.6)
prism (1.6.0)
prism (1.9.0)
public_suffix (5.1.1)
racc (1.8.1)
rainbow (3.1.1)
Expand All @@ -276,21 +281,22 @@ GEM
regexp_parser (2.11.3)
rexml (3.4.4)
rouge (3.30.0)
rubocop (1.82.0)
rubocop (1.85.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
mcp (~> 0.6)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.48.0, < 2.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.48.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-minitest (0.38.2)
prism (~> 1.7)
rubocop-minitest (0.39.1)
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
Expand All @@ -314,7 +320,7 @@ GEM
concurrent-ruby (~> 1.0)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.1.0)
unicode-emoji (4.2.0)
uri (1.1.0)
webrick (1.9.1)

Expand Down
109 changes: 107 additions & 2 deletions test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ Layout/FirstArrayElementLineBreak:
Description: Checks for a line break before the first element in a multi-line array.
Enabled: false
VersionAdded: '0.49'
AllowImplicitArrayLiterals: false
AllowMultilineFinalElement: true
Layout/FirstHashElementIndentation:
Description: Checks the indentation of the first key in a hash literal.
Expand Down Expand Up @@ -695,6 +696,10 @@ Layout/IndentationWidth:
Enabled: true
VersionAdded: '0.49'
Width: 2
EnforcedStyleAlignWith: start_of_line
SupportedStylesAlignWith:
- start_of_line
- relative_to_receiver
AllowedPatterns: []
Layout/InitialIndentation:
Description: Checks the indentation of the first non-blank non-comment line in a
Expand Down Expand Up @@ -1205,6 +1210,10 @@ Lint/CopDirectiveSyntax:
Description: Checks that `# rubocop:` directives are strictly formatted.
Enabled: true
VersionAdded: '1.72'
Lint/DataDefineOverride:
Description: Disallow overriding the `Data` built-in methods via `Data.define`.
Enabled: pending
VersionAdded: '1.85'
Lint/Debugger:
Description: Checks for debugger calls.
Enabled: true
Expand Down Expand Up @@ -1774,8 +1783,9 @@ Lint/SafeNavigationConsistency:
condition, consistent and appropriate safe navigation, without excess or deficiency,
is used for all method calls on the same object.
Enabled: false
SafeAutoCorrect: false
VersionAdded: '0.55'
VersionChanged: '0.77'
VersionChanged: '1.85'
AllowedMethods:
- present?
- blank?
Expand Down Expand Up @@ -1924,6 +1934,11 @@ Lint/UnreachableLoop:
VersionChanged: '1.7'
AllowedPatterns:
- !ruby/regexp /(exactly|at_least|at_most)\(\d+\)\.times/
Lint/UnreachablePatternBranch:
Description: Checks for unreachable `in` pattern branches after an unconditional
catch-all pattern.
Enabled: pending
VersionAdded: '1.85'
Lint/UnusedBlockArgument:
Description: Checks for unused block arguments.
StyleGuide: "#underscore-unused-vars"
Expand Down Expand Up @@ -2356,6 +2371,7 @@ Naming/PredicateMethod:
AllowedPatterns: []
AllowBangMethods: false
WaywardPredicates:
- infinite?
- nonzero?
Naming/PredicatePrefix:
Description: Predicate method names should not be prefixed and end with a `?`.
Expand Down Expand Up @@ -2966,6 +2982,15 @@ Style/EmptyCaseCondition:
Description: Avoid empty condition in case statements.
Enabled: false
VersionAdded: '0.40'
Style/EmptyClassDefinition:
Description: Enforces consistent style for empty class definitions.
Enabled: pending
VersionAdded: '1.84'
EnforcedStyle: class_keyword
SupportedStyles:
- class_keyword
- class_new
- class_definition
Style/EmptyElse:
Description: Avoid empty else-clauses.
Enabled: false
Expand Down Expand Up @@ -3099,6 +3124,11 @@ Style/FileNull:
Enabled: false
SafeAutoCorrect: false
VersionAdded: '1.69'
Style/FileOpen:
Description: Checks for `File.open` without a block, which can leak file descriptors.
Enabled: pending
Safe: false
VersionAdded: '1.85'
Style/FileRead:
Description: Favor `File.(bin)read` convenience methods.
StyleGuide: "#file-read"
Expand Down Expand Up @@ -3249,6 +3279,15 @@ Style/HashLikeCase:
Enabled: false
VersionAdded: '0.88'
MinBranchesCount: 3
Style/HashLookupMethod:
Description: Enforces the use of either `Hash#[]` or `Hash#fetch` for hash lookup.
Enabled: false
Safe: false
VersionAdded: '1.84'
EnforcedStyle: brackets
SupportedStyles:
- brackets
- fetch
Style/HashSlice:
Description: Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter`
methods that can be replaced with `Hash#slice` method.
Expand Down Expand Up @@ -3319,6 +3358,7 @@ Style/IfWithBooleanLiteralBranches:
VersionAdded: '1.9'
SafeAutoCorrect: false
AllowedMethods:
- infinite?
- nonzero?
Style/IfWithSemicolon:
Description: Do not use if x; .... Use the ternary operator instead.
Expand Down Expand Up @@ -3478,6 +3518,11 @@ Style/MapIntoArray:
VersionAdded: '1.63'
VersionChanged: '1.67'
Safe: false
Style/MapJoin:
Description: Checks for redundant `map(&:to_s)` before `join`.
Enabled: pending
Safe: false
VersionAdded: '1.85'
Style/MapToHash:
Description: Prefer `to_h` with a block over `map.to_h`.
Enabled: false
Expand Down Expand Up @@ -3599,6 +3644,7 @@ Style/ModuleMemberExistenceCheck:
with equivalent predicates.
Enabled: true
VersionAdded: '1.82'
AllowedMethods: []
Style/MultilineBlockChain:
Description: Avoid multi-line chains of blocks.
StyleGuide: "#single-line-blocks"
Expand Down Expand Up @@ -3694,6 +3740,12 @@ Style/NegatedWhile:
StyleGuide: "#until-for-negatives"
Enabled: false
VersionAdded: '0.20'
Style/NegativeArrayIndex:
Description: Use negative array indices instead of calculating array length minus
a value. Also handles range patterns with length calculations. Recognizes preserving
methods and their combinations, allowing safe replacement when the receiver matches.
Enabled: pending
VersionAdded: '1.84'
Style/NestedFileDirname:
Description: Checks for nested `File.dirname`.
Enabled: false
Expand Down Expand Up @@ -3831,6 +3883,12 @@ Style/ObjectThen:
SupportedStyles:
- then
- yield_self
Style/OneClassPerFile:
Description: Checks that each source file defines at most one top-level class or
module.
Enabled: pending
VersionAdded: '1.85'
AllowedClasses: []
Style/OneLineConditional:
Description: Favor the ternary operator (?:) or multi-line constructs over single-line
if/then/else/end constructs.
Expand Down Expand Up @@ -3901,6 +3959,12 @@ Style/ParenthesesAroundCondition:
VersionChanged: '0.56'
AllowSafeAssignment: true
AllowInMultilineConditions: false
Style/PartitionInsteadOfDoubleSelect:
Description: Checks for consecutive `select`/`filter`/`find_all` and `reject` calls
on the same receiver with the same block body.
Enabled: pending
Safe: false
VersionAdded: '1.85'
Style/PercentLiteralDelimiters:
Description: Use `%`-literal delimiters consistently.
StyleGuide: "#percent-literal-braces"
Expand All @@ -3927,6 +3991,11 @@ Style/PerlBackrefs:
StyleGuide: "#no-perl-regexp-last-matchers"
Enabled: false
VersionAdded: '0.13'
Style/PredicateWithKind:
Description: Prefer `any?(Klass)` to `any? { |x| x.is_a?(Klass) }`.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: '1.85'
Style/PreferredHashMethods:
Description: Checks use of `has_key?` and `has_value?` Hash methods.
StyleGuide: "#hash-key"
Expand Down Expand Up @@ -3971,6 +4040,12 @@ Style/RandomWithOffset:
StyleGuide: "#random-numbers"
Enabled: false
VersionAdded: '0.52'
Style/ReduceToHash:
Description: Use `to_h { ... }` instead of `each_with_object`, `inject`, or `reduce`
to build a hash.
Enabled: pending
Safe: false
VersionAdded: '1.85'
Style/RedundantArgument:
Description: Checks for a redundant argument passed to certain methods.
Enabled: false
Expand Down Expand Up @@ -4015,6 +4090,7 @@ Style/RedundantCondition:
VersionAdded: '0.76'
VersionChanged: '1.73'
AllowedMethods:
- infinite?
- nonzero?
Style/RedundantConditional:
Description: Don't return true/false from a conditional.
Expand Down Expand Up @@ -4105,6 +4181,10 @@ Style/RedundantLineContinuation:
Description: Checks for redundant line continuation.
Enabled: false
VersionAdded: '1.49'
Style/RedundantMinMaxBy:
Description: Identifies places where `max_by`/`min_by` can be replaced by `max`/`min`.
Enabled: pending
VersionAdded: '1.85'
Style/RedundantParentheses:
Description: Checks for parentheses that seem not to serve any purpose.
Enabled: false
Expand Down Expand Up @@ -4170,6 +4250,11 @@ Style/RedundantStringEscape:
Description: Checks for redundant escapes in string literals.
Enabled: false
VersionAdded: '1.37'
Style/RedundantStructKeywordInit:
Description: Checks for redundant `keyword_init` option for `Struct.new`.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: '1.85'
Style/RegexpLiteral:
Description: Use / or %r around regular expressions.
StyleGuide: "#percent-r"
Expand Down Expand Up @@ -4218,6 +4303,11 @@ Style/ReturnNilInPredicateMethodDefinition:
AllowedPatterns: []
VersionAdded: '1.53'
VersionChanged: '1.67'
Style/ReverseFind:
Description: Use `array.rfind` instead of `array.reverse.find`.
Enabled: pending
Safe: false
VersionAdded: '1.84'
Style/SafeNavigation:
Description: Transforms usages of a method call safeguarded by a check for the existence
of the object to safe navigation (`&.`). Autocorrection is unsafe as it assumes
Expand Down Expand Up @@ -4247,8 +4337,18 @@ Style/Sample:
- https://github.com/fastruby/fast-ruby#arrayshufflefirst-vs-arraysample-code
Enabled: false
VersionAdded: '0.30'
Style/SelectByKind:
Description: Prefer grep/grep_v to select/reject/find/detect with a kind check.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: '1.85'
Style/SelectByRange:
Description: Prefer grep/grep_v to select/reject/find/detect with a range check.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: '1.85'
Style/SelectByRegexp:
Description: Prefer grep/grep_v to select/reject with a regexp match.
Description: Prefer grep/grep_v to select/reject/find/detect with a regexp match.
Enabled: false
SafeAutoCorrect: false
VersionAdded: '1.22'
Expand Down Expand Up @@ -4469,6 +4569,11 @@ Style/SymbolProc:
- define_method
AllowedPatterns: []
AllowComments: false
Style/TallyMethod:
Description: Prefer `Enumerable#tally` over manual counting patterns.
Enabled: pending
Safe: false
VersionAdded: '1.85'
Style/TernaryParentheses:
Description: Checks for use of parentheses around ternary conditions.
Enabled: false
Expand Down
Loading