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
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ GEM
regexp_parser (2.12.0)
rexml (3.4.4)
rouge (4.7.0)
rubocop (1.89.0)
json (~> 2.3)
rubocop (1.90.0)
json (>= 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (>= 1.10)
Expand Down
64 changes: 57 additions & 7 deletions test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Layout/ArgumentAlignment:
IndentationWidth:
Layout/ArrayAlignment:
Description: Align the elements of an array literal if they span more than one line.
StyleGuide: "#no-double-indent"
StyleGuide: "#align-multiline-arrays"
Enabled: false
VersionAdded: '0.49'
VersionChanged: '0.77'
Expand Down Expand Up @@ -435,6 +435,8 @@ Layout/EmptyLineAfterMagicComment:
StyleGuide: "#separate-magic-comments-from-code"
Enabled: true
VersionAdded: '0.49'
VersionChanged: '1.90'
NumberOfEmptyLines: 1
Layout/EmptyLineAfterMultilineCondition:
Description: Enforces empty line after multiline condition.
Enabled: false
Expand Down Expand Up @@ -956,6 +958,7 @@ Layout/SpaceAroundOperators:
StyleGuide: "#spaces-operators"
Enabled: true
VersionAdded: '0.49'
VersionChanged: '1.90'
AllowForAlignment: true
EnforcedStyleForExponentOperator: no_space
SupportedStylesForExponentOperator:
Expand Down Expand Up @@ -1150,6 +1153,11 @@ Lint/AmbiguousRegexpLiteral:
Enabled: false
VersionAdded: '0.17'
VersionChanged: '0.83'
Lint/ArgumentMismatch:
Description: Checks for calls that pass the wrong number of positional arguments
to a method, using the project index.
Enabled: pending
VersionAdded: '1.90'
Lint/ArrayLiteralInRegexp:
Description: Checks for an array literal interpolated inside a regexp.
Enabled: false
Expand Down Expand Up @@ -1213,6 +1221,7 @@ Lint/CopDirectiveSyntax:
Description: Checks that `# rubocop:` directives are strictly formatted.
Enabled: true
VersionAdded: '1.72'
VersionChanged: '1.90'
Lint/DataDefineOverride:
Description: Disallow overriding the `Data` built-in methods via `Data.define`.
Enabled: true
Expand Down Expand Up @@ -1307,6 +1316,7 @@ Lint/DeprecatedReference:
VersionAdded: '1.89'
Lint/DisjunctiveAssignmentInConstructor:
Description: In constructor, plain assignment is preferred over disjunctive.
StyleGuide: "#disjunctive-assignment-in-constructor"
Enabled: true
Safe: false
VersionAdded: '0.62'
Expand Down Expand Up @@ -1345,9 +1355,10 @@ Lint/DuplicateMethods:
Description: Checks for duplicate method definitions.
Enabled: true
VersionAdded: '0.29'
VersionChanged: '1.89'
VersionChanged: '1.90'
DelegatingMethods:
- delegate
AllowedCrossFilePaths: []
Lint/DuplicateRegexpCharacterClassElement:
Description: Checks for duplicate elements in Regexp character classes.
Enabled: true
Expand Down Expand Up @@ -1547,7 +1558,7 @@ Lint/MissingCopEnableDirective:
Description: Checks for a `# rubocop:enable` after `# rubocop:disable`.
Enabled: true
VersionAdded: '0.52'
VersionChanged: '1.88'
VersionChanged: '1.90'
MaxRangeSize: .inf
Lint/MissingSuper:
Description: Checks for the presence of constructors and lifecycle callbacks without
Expand All @@ -1564,6 +1575,7 @@ Lint/MixedCaseRange:
VersionAdded: '1.53'
Lint/MixedRegexpCaptureTypes:
Description: Do not mix named captures and numbered captures in a Regexp literal.
StyleGuide: "#do-not-mix-named-and-numbered-captures"
Enabled: false
VersionAdded: '0.85'
Lint/MultipleComparison:
Expand Down Expand Up @@ -1692,6 +1704,7 @@ Lint/RedundantCopEnableDirective:
Description: Checks for rubocop:enable comments that can be removed.
Enabled: true
VersionAdded: '0.76'
VersionChanged: '1.90'
Lint/RedundantDirGlobSort:
Description: Checks for redundant `sort` method to `Dir.glob` and `Dir[]`.
Enabled: false
Expand Down Expand Up @@ -1845,6 +1858,7 @@ Lint/ShadowedArgument:
IgnoreImplicitReferences: false
Lint/ShadowedException:
Description: Avoid rescuing a higher level exception before a lower level exception.
StyleGuide: "#exception-ordering"
Enabled: false
VersionAdded: '0.41'
Lint/ShadowingOuterLocalVariable:
Expand All @@ -1862,6 +1876,11 @@ Lint/StructNewOverride:
Description: Disallow overriding the `Struct` built-in methods via `Struct.new`.
Enabled: false
VersionAdded: '0.81'
Lint/SuperArgumentMismatch:
Description: Checks for `super` calls that pass the wrong number of positional arguments
to the overridden implementation, using the project index.
Enabled: pending
VersionAdded: '1.90'
Lint/SuppressedException:
Description: Don't suppress exceptions.
StyleGuide: "#dont-hide-exceptions"
Expand Down Expand Up @@ -1942,6 +1961,7 @@ Lint/UnexpectedBlockArity:
sort: 2
Lint/UnifiedInteger:
Description: Use Integer instead of Fixnum or Bignum.
StyleGuide: "#integer-type-checking"
Enabled: false
VersionAdded: '0.43'
Lint/UnmodifiedReduceAccumulator:
Expand Down Expand Up @@ -1991,7 +2011,10 @@ Lint/UnusedPrivateMethod:
Description: Checks for private instance methods that are not referenced anywhere
in the project. Requires `AllCops/UseProjectIndex` to be enabled.
Enabled: false
AllowedNames: []
AllowedPatterns: []
VersionAdded: '1.89'
VersionChanged: '1.90'
Lint/UriEscapeUnescape:
Description: "`URI.escape` method is obsolete and should not be used. Instead, use
`CGI.escape`, `URI.encode_www_form` or `URI.encode_www_form_component` depending
Expand Down Expand Up @@ -2023,6 +2046,7 @@ Lint/UselessConstantScoping:
Description: Checks for useless constant scoping.
Enabled: false
VersionAdded: '1.72'
VersionChanged: '1.90'
Lint/UselessDefaultValueArgument:
Description: Checks for usage of `fetch` or `Array.new` with default value argument
and block.
Expand Down Expand Up @@ -2596,6 +2620,7 @@ Style/ArrayCoercion:
VersionAdded: '0.88'
Style/ArrayFirstLast:
Description: Use `arr.first` and `arr.last` instead of `arr[0]` and `arr[-1]`.
StyleGuide: "#first-and-last"
References:
- "#first-and-last"
Enabled: false
Expand Down Expand Up @@ -2898,6 +2923,7 @@ Style/ConditionalAssignment:
Description: Use the return value of `if` and `case` statements for assignment to
a variable and variable comparison instead of assigning that variable inside of
each branch.
StyleGuide: "#use-if-case-returns"
Enabled: false
VersionAdded: '0.36'
VersionChanged: '0.47'
Expand Down Expand Up @@ -2928,7 +2954,7 @@ Style/DataInheritance:
VersionChanged: '1.51'
Style/DateTime:
Description: Use Time over DateTime.
StyleGuide: "#date-time"
StyleGuide: "#no-datetime"
Enabled: false
VersionAdded: '0.51'
VersionChanged: '0.92'
Expand All @@ -2955,13 +2981,20 @@ Style/DirEmpty:
is empty.
Enabled: false
VersionAdded: '1.48'
Style/DirectiveScope:
Description: Checks for directive scopes that can be expressed with the tighter
`disable-next` form.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: '1.90'
Style/DisableCopsWithinSourceCodeDirective:
Description: Forbids disabling/enabling cops within source code.
Enabled: false
VersionAdded: '0.82'
VersionChanged: '1.89'
VersionChanged: '1.90'
AllowedCops: []
DisallowedCops: []
AllowTrailingComment: false
Style/DocumentDynamicEvalDefinition:
Description: When using `class_eval` (or other `eval`) with string interpolation,
add a comment block showing its appearance if interpolated.
Expand Down Expand Up @@ -3022,6 +3055,7 @@ Style/EmptyCaseCondition:
VersionAdded: '0.40'
Style/EmptyClassDefinition:
Description: Enforces consistent style for empty class definitions.
StyleGuide: "#single-line-classes"
Enabled: false
VersionAdded: '1.84'
VersionChanged: '1.86'
Expand Down Expand Up @@ -3161,11 +3195,13 @@ Style/FileEmpty:
VersionAdded: '1.48'
Style/FileNull:
Description: Use `File::NULL` instead of hardcoding "dev/null".
StyleGuide: "#null-devices"
Enabled: false
SafeAutoCorrect: false
VersionAdded: '1.69'
Style/FileOpen:
Description: Checks for `File.open` without a block, which can leak file descriptors.
StyleGuide: "#auto-release-resources"
Enabled: false
Safe: false
VersionAdded: '1.85'
Expand Down Expand Up @@ -3223,6 +3259,7 @@ Style/FormatString:
- percent
Style/FormatStringToken:
Description: Use a consistent style for format string tokens.
StyleGuide: "#named-format-tokens"
Enabled: false
VersionAdded: '0.49'
VersionChanged: '1.74'
Expand Down Expand Up @@ -3358,12 +3395,14 @@ Style/HashSyntax:
PreferHashRocketsForNonAlnumEndingSymbols: false
Style/HashTransformKeys:
Description: Prefer `transform_keys` over `each_with_object`, `map`, or `to_h`.
StyleGuide: "#hash-transform-methods"
Enabled: false
VersionAdded: '0.80'
VersionChanged: '0.90'
Safe: false
Style/HashTransformValues:
Description: Prefer `transform_values` over `each_with_object`, `map`, or `to_h`.
StyleGuide: "#hash-transform-methods"
Enabled: false
VersionAdded: '0.80'
VersionChanged: '0.90'
Expand Down Expand Up @@ -3500,7 +3539,7 @@ Style/KeywordArgumentsMerging:
Style/KeywordParametersOrder:
Description: Enforces that optional keyword parameters are placed at the end of
the parameters list.
StyleGuide: "#keyword-parameters-order"
StyleGuide: "#keyword-arguments-order"
Enabled: false
VersionAdded: '0.90'
VersionChanged: '1.7'
Expand Down Expand Up @@ -3529,6 +3568,7 @@ Style/LambdaCall:
Style/LineEndConcatenation:
Description: Use \ instead of + or << to concatenate two string literals at line
end.
StyleGuide: "#heredoc-long-strings"
Enabled: false
SafeAutoCorrect: false
VersionAdded: '0.18'
Expand Down Expand Up @@ -3770,7 +3810,7 @@ Style/NegatedIfElseCondition:
VersionAdded: '1.2'
Style/NegatedUnless:
Description: Favor if over unless for negative conditions.
StyleGuide: "#if-for-negatives"
StyleGuide: "#unless-for-negatives"
Enabled: false
VersionAdded: '0.69'
EnforcedStyle: both
Expand Down Expand Up @@ -3929,6 +3969,7 @@ Style/ObjectThen:
Style/OneClassPerFile:
Description: Checks that each source file defines at most one top-level class or
module.
StyleGuide: "#one-class-per-file"
Enabled: false
VersionAdded: '1.85'
VersionChanged: '1.86'
Expand Down Expand Up @@ -4227,6 +4268,7 @@ Style/RedundantInterpolationUnfreeze:
VersionAdded: '1.66'
Style/RedundantLineContinuation:
Description: Checks for redundant line continuation.
StyleGuide: "#no-trailing-backslash"
Enabled: false
VersionAdded: '1.49'
Style/RedundantMinMaxBy:
Expand Down Expand Up @@ -4258,6 +4300,7 @@ Style/RedundantRegexpConstructor:
VersionAdded: '1.52'
Style/RedundantRegexpEscape:
Description: Checks for redundant escapes in Regexps.
StyleGuide: "#limit-escapes"
Enabled: false
VersionAdded: '0.85'
Style/RedundantReturn:
Expand Down Expand Up @@ -4635,6 +4678,12 @@ Style/TernaryParentheses:
- require_no_parentheses
- require_parentheses_when_complex
AllowSafeAssignment: true
Style/TimeNow:
Description: Prefer `Time.now` over `Time.new` when retrieving the current system
time.
StyleGuide: "#time-now"
Enabled: pending
VersionAdded: '1.90'
Style/TopLevelMethodDefinition:
Description: Looks for top-level method definitions.
StyleGuide: "#top-level-methods"
Expand Down Expand Up @@ -4696,6 +4745,7 @@ Style/TrailingMethodEndStatement:
Style/TrailingUnderscoreVariable:
Description: Checks for the usage of unneeded trailing underscores at the end of
parallel variable assignment.
StyleGuide: "#trailing-underscore-variables"
Enabled: false
VersionAdded: '0.31'
VersionChanged: '0.35'
Expand Down
Loading