undercover warns about methods, classes and blocks that were changed without tests, to help you easily find untested code and reduce the number of bugs. It does so by analysing data from git diffs, code structure and SimpleCov coverage reports
#10375: Fix error for auto-correction of unless/else nested inside each other. ([@jonas054][])
#10457: Make Style/SelectByRegexp aware of ENV const. ([@koic][])
#10462: Fix an incorrect autocorrect for Lint/SymbolConversion when using a quoted symbol key with hash rocket. ([@koic][])
#10456: Fix a false positive for Layout/MultilineMethodCallIndentation when using EnforcedStyle: indented with indented assignment method. ([@koic][])
#10459: Fix a false positive for Layout/LineLength when long URIs in yardoc comments to have titles. ([@ydah][])
#10447: Fix an error for Style/SoleNestedConditional raises exception when inspecting if ... end if .... ([@ydah][])
1.26.0 (2022-03-09)
New features
#10419: Add new Style/NestedFileDirname cop. ([@koic][])
#10433: Support TargetRubyVersion 3.2 (experimental). ([@koic][])
Bug fixes
#10406: Fix a false positive for Lint/InheritException when inheriting a standard lib exception class that is not a subclass of StandardError. ([@koic][])
#10421: Make Style/DefWithParentheses aware of endless method definition. ([@koic][])
#10401: Fix a false positive for Style/HashSyntax when local variable hash key and hash value are the same. ([@koic][])
#10424: Fix a false positive for Security/YamlLoad when using Ruby 3.1+ (Psych 4). ([@koic][])
#10403: Fix an error for Style/StringConcatenation when string concatenation with multiline heredoc text. ([@koic][])
#10432: Fix an error when using regexp with non-encoding option. ([@koic][])
#10415: Fix an error for Lint/UselessTimes when using 1.times with method chain. ([@koic][])
Changes
#10408: Mark Lint/InheritException as unsafe auto-correction. ([@koic][])
#10407: Change EnforcedStyle from runtime_error to standard_error for Lint/InheritException. ([@koic][])
#10414: Update auto-gen-config's auto-correction comments to be more clear. ([@maxjacobson][])
#10427: Mark Style/For as unsafe auto-correction. ([@issyl0][])
#10410: Improve help string for --fail-level CLI option. ([@tejasbubane][])
1.25.1 (2022-02-03)
Bug fixes
#10359: Fix a false positive and negative for Style/HashSyntax when using hash value omission. ([@koic][])
#10387: Fix an error for Style/RedundantBegin when assigning nested begin blocks. ([@koic][])
#10366: Fix a false positive for Style/MethodCallWithArgsParentheses when setting EnforcedStyle: omit_parentheses and using hash value omission with modifier from. ([@koic][])
#10376: Fix an error for Layout/RescueEnsureAlignment when using .() call with block. ([@koic][])
#10364: Fix an infinite loop error for Layout/HashAlignment when EnforcedStyle: with_fixed_indentation is specified for Layout/ArgumentAlignment. ([@koic][])
#10371: Fix a false negative for Style/HashSyntax when Hash[foo: foo] or {foo: foo} is followed by a next expression. ([@koic][])
#10394: Fix an error for Style/SwapValues when assigning receiver object at def. ([@koic][])
#10379: Fix an error for Layout/EmptyLinesAroundExceptionHandlingKeywords when rescue and end are on the same line. ([@koic][])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rubocop to permit the latest version.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
f691b9e
Cut 1.26.1036baf2
Update Changelog6c10b64
[Fix #10374] Fix a false positive forLayout/LineLength
when long URIs in y...5234ad4
[Fix #10462] Fix an incorrect autocorrect forLint/SymbolConversion
3112ce7
Merge pull request #10457 from koic/make_style_select_by_regexp_aware_of_env_...b901a9f
Merge pull request #10461 from jonas054/10375_fix_unless_else_autocorrectef61df5
Merge pull request #10458 from koic/fix_false_positive_for_layout_multiline_m...6915fd3
[Fix #10375] Defer auto-correction of nested unless/else30f8583
[Fix #10456] Fix a false positive forLayout/MultilineMethodCallIndentation
170d3ea
MakeStyle/SelectByRegexp
aware ofENV
constDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)