Bump slim_lint, rubocop-performance, rubocop-rspec and rubocop
requested to merge dependabot/bundler/slim_lint-and-rubocop-performance-and-rubocop-rspec-and-rubocop-0.20.2 into master
Bumps slim_lint, rubocop-performance, rubocop-rspec and rubocop. These dependencies needed to be updated together.
Updates slim_lint
from 0.18.0 to 0.20.2
Release notes
Sourced from slim_lint's releases.
Slim-Lint 0.20.2
- Ignore
Style/WhileUntilDo
RuboCop cop by defaultSlim-Lint 0.20.1
- Disable
Style/IdenticalConditionalBranches
cop by defaultSlim-Lint 0.20.0
This is a hotfix to address breaking changes in the upstream RuboCop gem.
- Update minimum RuboCop version to 0.78.0 due to renaming of various cops and namespaces
Slim-Lint 0.19.0
- Remove dependency on
sysexits
gem- Update RuboCop dependency to require
0.77.0
or newer
Changelog
Sourced from slim_lint's changelog.
0.20.2
- Ignore
Style/WhileUntilDo
RuboCop cop by default0.20.1
- Disable
Style/IdenticalConditionalBranches
cop by default0.20.0
- Update minimum RuboCop version to 0.78.0 due to renaming of various cops and namespaces
0.19.0
- Remove dependency on
sysexits
gem- Update RuboCop dependency to require
0.77.0
or newer
Commits
-
c2812ae
Cut version 0.20.2 -
9d4dbeb
Ignore Style/WhileUntilDo RuboCop lint -
96648e2
Cut version 0.20.1 -
7afc3ab
Remove Style/IdenticalConditionalBranches from default cops (#113) -
cdc33c0
Cut version 0.20.0 -
ee7d9fd
Update change log with RuboCop update -
ece2e74
Fix RuboCop warnings -
0366688
Test against Ruby 2.7.0 -
24e3e80
Move LineLength cop to Layout department -
5181d78
Update dependencies - Additional commits viewable in compare view
Updates rubocop-performance
from 1.5.1 to 1.8.1
Release notes
Sourced from rubocop-performance's releases.
RuboCop Performance 1.8.1
Bug fixes
- #164: Fix an error for
Performance/CollectionLiteralInLoop
when a method fromEnumerable
is called with no receiver. (@eugeneius)- #165: Fix a false positive for
Performance/Sum
when using initial value argument is a variable. (@koic)Changes
- #163: Change
Performance/Detect
to also detect offenses when index 0 or -1 is used instead (ie.detect{ ... }[0]
). (@dvandersluis)- #168: Extend
Performance/Sum
to register an offense forinject(&:+)
. (@eugeneius)RuboCop Performance 1.8.0
New features
- #140: Add new
Performance/CollectionLiteralInLoop
cop. (@fatkodima)- #137: Add new
Performance/Sum
cop. (@fatkodima)Bug fixes
Changes
- #157: Extend
Performance/Detect
cop with check forfilter
method andPerformance/Count
cop with checks forfind_all
andfilter
methods. (@fatkodima)- #154: Require RuboCop 0.87 or higher. (@koic)
RuboCop Performance 1.7.1
Bug fixes
- #147: Fix an error for
Performance/AncestorsInclude
when usingancestors.include?
without receiver. (@koic)- #150: Fix an incorrect autocorrect for
Performance/BigDecimalWithNumericArgument
when a precision is specified. (@eugeneius)Changes
- #149: Mark
Performance/AncestorsInclude
as unsafe. (@eugeneius)- #145: Mark
Performance/StringInclude
asSafeAutocorrect: false
and disable autocorrect by default. (@koic)RuboCop Performance 1.7.0
New features
... (truncated)
Changelog
Sourced from rubocop-performance's changelog.
1.8.1 (2020-09-19)
Bug fixes
- #164: Fix an error for
Performance/CollectionLiteralInLoop
when a method fromEnumerable
is called with no receiver. ([@eugeneius][])- #165: Fix a false positive for
Performance/Sum
when using initial value argument is a variable. ([@koic][])Changes
- #163: Change
Performance/Detect
to also detect offenses when index 0 or -1 is used instead (ie.detect{ ... }[0]
). ([@dvandersluis][])- #168: Extend
Performance/Sum
to register an offense forinject(&:+)
. ([@eugeneius][])1.8.0 (2020-09-04)
New features
- #140: Add new
Performance/CollectionLiteralInLoop
cop. ([@fatkodima][])- #137: Add new
Performance/Sum
cop. ([@fatkodima][])Bug fixes
- #159: Fix a false positive for
Performance/AncestorsInclude
when receiver is a variable. ([@koic][])Changes
- #157: Extend
Performance/Detect
cop with check forfilter
method andPerformance/Count
cop with checks forfind_all
andfilter
methods. ([@fatkodima][])- #154: Require RuboCop 0.87 or higher. ([@koic][])
1.7.1 (2020-07-18)
Bug fixes
- #147: Fix an error for
Performance/AncestorsInclude
when usingancestors.include?
without receiver. ([@koic][])- #150: Fix an incorrect autocorrect for
Performance/BigDecimalWithNumericArgument
when a precision is specified. ([@eugeneius][])Changes
- #149: Mark
Performance/AncestorsInclude
as unsafe. ([@eugeneius][])- #145: Mark
Performance/StringInclude
asSafeAutocorrect: false
and disable autocorrect by default. ([@koic][])1.7.0 (2020-07-07)
New features
... (truncated)
- #141: Add new
Performance/RedundantStringChars
cop. ([@fatkodima][])- #127: Add new
Performance/IoReadlines
cop. ([@fatkodima][])- #128: Add new
Performance/ReverseFirst
cop. ([@fatkodima][])- #132: Add new
Performance/RedundantSortBlock
cop. ([@fatkodima][])- #125: Support
Array()
andHash()
methods forPerformance/Size
cop. ([@fatkodima][])- #124: Add new
Performance/Squeeze
cop. ([@fatkodima][])
Commits
-
5d5de8b
Cut 1.8.1 -
4bfca8f
Merge pull request #168 from eugeneius/sum_block_pass -
19223fc
Handle inject(&:+) in Performance/Sum -
6d7e45f
Merge pull request #167 from dvandersluis/detect-indexed -
627f47d
Bump rubocop-ast requirement to >= 0.4.0 -
3823409
[Fix #163] Detect array indexes forPerformance/Detect
-
a117b59
Merge pull request #166 from koic/fix_false_positive_for_performance_sum -
61578d9
[Fix #165] Fix a false positive forPerformance/Sum
-
5da259b
Merge pull request #164 from eugeneius/collection_literal_in_loop_no_receiver -
1c23eba
Handle Enumerable methods called with no receiver - Additional commits viewable in compare view
Updates rubocop-rspec
from 1.37.1 to 1.43.2
Release notes
Sourced from rubocop-rspec's releases.
RuboCop RSpec v1.43.2
- Fix
RSpec/FilePath
when checking a file with a shared example. (@pirj)- Fix subject nesting detection in
RSpec/LeadingSubject
. (@pirj)RuboCop RSpec v1.43.1
Fix
RSpec/FilePath
when checking a file defining e.g. an empty class. (@bquorning)RuboCop RSpec v1.43.0
... (truncated)
- Add a new base cop class
::RuboCop::Cop::RSpec::Base
. The old base class::RuboCop::Cop::RSpec::Cop
is deprecated, and will be removed in the next major release. (@bquorning)- Add support for subject detection after includes and example groups in
RSpec/LeadingSubject
. (@pirj)- Ignore trailing punctuation in context description prefix. ([@elliterate][])
- Relax
RSpec/VariableDefinition
cop so interpolated and multiline strings are accepted even when configured to enforce thesymbol
style. (@bquorning)- Fix
RSpec/EmptyExampleGroup
to flag example groups with examples in invalid scopes. (@mlarraz)- Fix
RSpec/EmptyExampleGroup
to ignore examples groups with examples defined inside iterators. (@pirj)- Improve
RSpec/NestedGroups
,RSpec/FilePath
,RSpec/DescribeMethod
,RSpec/MultipleDescribes
,RSpec/DescribeClass
's top-level example group detection. (@pirj)- Add detection of
let!
with a block-pass or a string literal toRSpec/LetSetup
. (@pirj)- Add
IgnoredPatterns
configuration option toRSpec/VariableName
. ([@jtannas][])- Add
RSpec/MultipleMemoizedHelpers
cop. ([@mockdeep][])
Changelog
Sourced from rubocop-rspec's changelog.
1.43.2 (2020-08-25)
- Fix
RSpec/FilePath
when checking a file with a shared example. ([@pirj][])- Fix subject nesting detection in
RSpec/LeadingSubject
. ([@pirj][])1.43.1 (2020-08-17)
- Fix
RSpec/FilePath
when checking a file defining e.g. an empty class. ([@bquorning][])1.43.0 (2020-08-17)
- Add a new base cop class
::RuboCop::Cop::RSpec::Base
. The old base class::RuboCop::Cop::RSpec::Cop
is deprecated, and will be removed in the next major release. ([@bquorning][])- Add support for subject detection after includes and example groups in
RSpec/LeadingSubject
. ([@pirj][])- Ignore trailing punctuation in context description prefix. ([@elliterate][])
- Relax
RSpec/VariableDefinition
cop so interpolated and multiline strings are accepted even when configured to enforce thesymbol
style. ([@bquorning][])- Fix
RSpec/EmptyExampleGroup
to flag example groups with examples in invalid scopes. ([@mlarraz][])- Fix
RSpec/EmptyExampleGroup
to ignore examples groups with examples defined inside iterators. ([@pirj][])- Improve
RSpec/NestedGroups
,RSpec/FilePath
,RSpec/DescribeMethod
,RSpec/MultipleDescribes
,RSpec/DescribeClass
's top-level example group detection. ([@pirj][])- Add detection of
let!
with a block-pass or a string literal toRSpec/LetSetup
. ([@pirj][])- Add
IgnoredPatterns
configuration option toRSpec/VariableName
. ([@jtannas][])- Add
RSpec/MultipleMemoizedHelpers
cop. ([@mockdeep][])1.42.0 (2020-07-09)
- Update RuboCop dependency to 0.87.0 because of changes to internal APIs. ([@bquorning][], [@Darhazer][])
1.41.0 (2020-07-03)
- Extend the list of Rails spec types for
RSpec/DescribeClass
. ([@pirj][])- Fix
FactoryBot/AttributeDefinedStatically
to allow#traits_for_enum
without a block. ([@harrylewis][])- Improve the performance of
FactoryBot/AttributeDefinedStatically
,RSpec/InstanceVariable
,RSpec/LetSetup
,RSpec/NestedGroups
andRSpec/ReturnFromStub
. ([@andrykonchin][])1.40.0 (2020-06-11)
- Add new
RSpec/VariableName
cop. ([@tejasbubane][])- Add new
RSpec/VariableDefinition
cop. ([@tejasbubane][])- Expand
Capybara/VisibilityMatcher
to support more than justhave_selector
. ([@twalpole][])- Add new
SpecSuffixOnly
option toRSpec/FilePath
cop. ([@zdennis][])- Allow
RSpec/RepeatedExampleGroupBody
to differ only by described_class. ([@robotdana][])- Fix
RSpec/FilePath
detection across sibling directories. ([@rolfschmidt][])- Improve the performance of
RSpec/SubjectStub
by an order of magnitude. ([@andrykonchin][])1.39.0 (2020-05-01)
... (truncated)
- Fix
RSpec/FilePath
detection when absolute path includes test subject. ([@eitoball][])- Add new
Capybara/VisibilityMatcher
cop. ([@aried3r][])- Ignore String constants by
RSpec/Describe
. ([@AlexWayfer][])- Drop support for ruby 2.3. ([@bquorning][])
- Fix multiple cops to detect
let
with proc argument. ([@tejasbubane][])- Add autocorrect support for
RSpec/ScatteredLet
. ([@Darhazer][])
Commits
-
fd7009b
Bump version to 1.43.2 -
5723158
Merge pull request #1011 from rubocop-hq/fix-leading-subject -
a57c6f1
Merge pull request #1009 from rubocop-hq/fix-file_path-cop-to-ignore-shared-g... -
46b39c7
Merge pull request #1001 from rubocop-hq/release -
c6ae5cf
Bump version to 1.43.1 -
96495ab
Merge pull request #1000 from rubocop-hq/fix-file-path-bug -
118f043
FixRSpec/FilePath
when checking an empty class -
3d4f211
Merge pull request #998 from rubocop-hq/release -
589cd18
Bump version to v1.43.0 -
5ac67ea
Merge pull request #993 from biinari/fix/expect_offense_kwargs - Additional commits viewable in compare view
Updates rubocop
from 0.76.0 to 0.93.1
Release notes
Sourced from rubocop's releases.
RuboCop 0.93.1
Bug fixes
- #8782: Fix incorrect autocorrection for
Style/TernaryParentheses
withdefined?
. (@dvandersluis)- #8867: Rework
Lint/RedundantSafeNavigation
to be more safe. (@fatkodima)- #8864: Fix false positive for
Style/RedundantBegin
with a postfixwhile
oruntil
. (@dvandersluis)- #8869: Fix a false positive for
Style/RedundantBegin
when usingbegin
for or assignment and method call. (@koic)- #8862: Fix an error for
Lint/AmbiguousRegexpLiteral
when using regexp without method calls in nested structure. (@koic)- #8872: Fix an error for
Metrics/ClassLength
when multiple assignments to constants. (@koic)- #8871: Fix a false positive for
Style/RedundantBegin
when usingbegin
for method argument or part of conditions. (@koic)- #8875: Fix an incorrect auto-correct for
Style/ClassEqualityComparison
when comparing class name. (@koic)- #8880: Fix an error for
Style/ClassLength
when overlapping constant assignments. (@koic)RuboCop 0.93
New features
- #8796: Add new
Lint/HashCompareByIdentity
cop. (@fatkodima)- #8833: Add new
Style/ClassEqualityComparison
cop. (@fatkodima)- #8668: Add new
Lint/RedundantSafeNavigation
cop. (@fatkodima)- #8842: Add notification about cache being used to debug mode. ([@hatkyinc2][])
- #8822: Make
Style/RedundantBegin
aware ofbegin
withoutrescue
orensure
. (@koic)Bug fixes
- #8810: Fix multiple offense detection for
Style/RaiseArgs
. ([@pbernays][])- #8151: Fix a false positive for
Lint/BooleanSymbol
when used within%i[...]
. (@fatkodima)- #8809: Fix multiple offense detection for
Style/For
. ([@pbernays][])- #8801: Fix
Layout/SpaceAroundEqualsInParameterDefault
only registered once in a line. ([@rdunlop][])- #8514: Correct multiple
Style/MethodDefParentheses
per file. ([@rdunlop][])- #8825: Fix crash in
Style/ExplicitBlockArgument
when code is called outside of a method. ([@ghiculescu][])- #8718: Fix undefined methods of pseudo location. ([@ybiquitous][])
- #8354: Detect regexp named captures in
Style/CaseLikeIf
cop. ([@dsavochkin][])- #8821: Fix an incorrect autocorrect for
Style/NestedTernaryOperator
when using a nested ternary operator expression with no parentheses on the outside. (@koic)- #8834: Fix a false positive for
Style/ParenthesesAsGroupedExpression
when method argument parentheses are omitted and hash argument key is enclosed in parentheses. (@koic)- #8830: Fix bad autocorrect of
Style/StringConcatenation
when string includes double quotes. ([@tleish][])- #8807: Fix a false positive for
Style/RedundantCondition
when using assignment by hash key access. (@koic)- #8848: Fix a false positive for
Style/CombinableLoops
when using the same method with different arguments. (@dvandersluis)- #8843: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteral
when sending method to regexp literal receiver. (@koic)- #8842: Save actual status to cache, except corrected. ([@hatkyinc2][])
- #8835: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using string interpolation for non-operator methods. (@koic)- #7495: Example for
Lint/AmbiguousBlockAssociation
cop. ([@AllanSiqueira][])- #8855: Fix an error for
Layout/EmptyLinesAroundAccessModifier
andStyle/AccessModifierDeclarations
when using only access modifier. (@koic)Changes
... (truncated)
- #8803: (Breaking)
RegexpNode#parsed_tree
now processes regexps including interpolation (by blanking the interpolation before parsing, rather than skipping). ([@owst][])
Changelog
Sourced from rubocop's changelog.
0.93.1 (2020-10-12)
Bug fixes
- #8782: Fix incorrect autocorrection for
Style/TernaryParentheses
withdefined?
. ([@dvandersluis][])- #8867: Rework
Lint/RedundantSafeNavigation
to be more safe. ([@fatkodima][])- #8864: Fix false positive for
Style/RedundantBegin
with a postfixwhile
oruntil
. ([@dvandersluis][])- #8869: Fix a false positive for
Style/RedundantBegin
when usingbegin
for or assignment and method call. ([@koic][])- #8862: Fix an error for
Lint/AmbiguousRegexpLiteral
when using regexp without method calls in nested structure. ([@koic][])- #8872: Fix an error for
Metrics/ClassLength
when multiple assignments to constants. ([@koic][])- #8871: Fix a false positive for
Style/RedundantBegin
when usingbegin
for method argument or part of conditions. ([@koic][])- #8875: Fix an incorrect auto-correct for
Style/ClassEqualityComparison
when comparing class name. ([@koic][])- #8880: Fix an error for
Style/ClassLength
when overlapping constant assignments. ([@koic][])0.93.0 (2020-10-08)
New features
- #8796: Add new
Lint/HashCompareByIdentity
cop. ([@fatkodima][])- #8833: Add new
Style/ClassEqualityComparison
cop. ([@fatkodima][])- #8668: Add new
Lint/RedundantSafeNavigation
cop. ([@fatkodima][])- #8842: Add notification about cache being used to debug mode. ([@hatkyinc2][])
- #8822: Make
Style/RedundantBegin
aware ofbegin
withoutrescue
orensure
. ([@koic][])Bug fixes
- #8810: Fix multiple offense detection for
Style/RaiseArgs
. ([@pbernays][])- #8151: Fix a false positive for
Lint/BooleanSymbol
when used within%i[...]
. ([@fatkodima][])- #8809: Fix multiple offense detection for
Style/For
. ([@pbernays][])- #8801: Fix
Layout/SpaceAroundEqualsInParameterDefault
only registered once in a line. ([@rdunlop][])- #8514: Correct multiple
Style/MethodDefParentheses
per file. ([@rdunlop][])- #8825: Fix crash in
Style/ExplicitBlockArgument
when code is called outside of a method. ([@ghiculescu][])- #8718: Fix undefined methods of pseudo location. ([@ybiquitous][])
- #8354: Detect regexp named captures in
Style/CaseLikeIf
cop. ([@dsavochkin][])- #8821: Fix an incorrect autocorrect for
Style/NestedTernaryOperator
when using a nested ternary operator expression with no parentheses on the outside. ([@koic][])- #8834: Fix a false positive for
Style/ParenthesesAsGroupedExpression
when method argument parentheses are omitted and hash argument key is enclosed in parentheses. ([@koic][])- #8830: Fix bad autocorrect of
Style/StringConcatenation
when string includes double quotes. ([@tleish][])- #8807: Fix a false positive for
Style/RedundantCondition
when using assignment by hash key access. ([@koic][])- #8848: Fix a false positive for
Style/CombinableLoops
when using the same method with different arguments. ([@dvandersluis][])- #8843: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteral
when sending method to regexp literal receiver. ([@koic][])- #8842: Save actual status to cache, except corrected. ([@hatkyinc2][])
- #8835: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using string interpolation for non-operator methods. ([@koic][])- #7495: Example for
Lint/AmbiguousBlockAssociation
cop. ([@AllanSiqueira][])- #8855: Fix an error for
Layout/EmptyLinesAroundAccessModifier
andStyle/AccessModifierDeclarations
when using only access modifier. ([@koic][])Changes
... (truncated)
- #8803: (Breaking)
RegexpNode#parsed_tree
now processes regexps including interpolation (by blanking the interpolation before parsing, rather than skipping). ([@owst][])- #8625: Improve
Style/RedundantRegexpCharacterClass
andStyle/RedundantRegexpEscape
by usingregexp_parser
gem. ([@owst][])- #8646: Faster find of all files in
TargetFinder
class which improves initial startup speed. ([@tleish][])
Commits
-
f561472
Cut 0.93.1 -
c40307a
ReworkLint/RedundantSafeNavigation
to be more safe -
eb9b664
[Fix #8880] Fix an error forStyle/ClassLength
-
0798771
Merge pull request #8876 from koic/fix_incorrect_autocorrect_for_class_equali... -
ec93d26
Tweak the offense message forStyle/ClassEqualityComparison
-
4733d70
[Fix #8875] Fix incorrect autocorrect forStyle/ClassEqualityComparison
-
272771b
[Fix #8871] Fix a false positive forStyle/RedundantBegin
-
f488821
[Fix #8872] Fix an error forMetrics/ClassLength
-
f79e1c0
Merge pull request #8863 from koic/fix_error_for_ambiguous_regexp_literal -
e36f120
[Fix #8862] Fix an error forLint/AmbiguousRegexpLiteral
- Additional commits viewable in compare view