config/default.yml in rubocop-1.43.0 vs config/default.yml in rubocop-1.44.0

- old
+ new

@@ -260,10 +260,26 @@ VersionAdded: '1.30' VersionChanged: '1.40' Include: - '**/*.gemspec' +Gemspec/DevelopmentDependencies: + Description: Checks that development dependencies are specified in Gemfile rather than gemspec. + Enabled: pending + VersionAdded: '1.44' + EnforcedStyle: Gemfile + SupportedStyles: + - Gemfile + - gems.rb + - gemspec + AllowedGems: + - bundler + Include: + - '**/*.gemspec' + - '**/Gemfile' + - '**/gems.rb' + Gemspec/DuplicatedAssignment: Description: 'An attribute assignment method calls should be listed only once in a gemspec.' Enabled: true Severity: warning VersionAdded: '0.52' @@ -3429,10 +3445,15 @@ Enabled: true SafeAutoCorrect: false VersionAdded: '0.51' VersionChanged: '1.19' +Style/ComparableClamp: + Description: 'Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum.' + Enabled: pending + VersionAdded: '1.44' + Style/ConcatArrayLiterals: Description: 'Enforces the use of `Array#push(item)` instead of `Array#concat([item])` to avoid redundant array literals.' Enabled: pending Safe: false VersionAdded: '1.41' @@ -4028,9 +4049,38 @@ # `InverseBlocks` are methods that are inverted by inverting the return # of the block that is passed to the method InverseBlocks: :select: :reject :select!: :reject! + +Style/InvertibleUnlessCondition: + Description: 'Favor `if` with inverted condition over `unless`.' + Enabled: false + VersionAdded: '1.44' + # `InverseMethods` are methods that can be inverted in a `unless` condition. + # The relationship of inverse methods needs to be defined in both directions. + # Keys and values both need to be defined as symbols. + InverseMethods: + :!=: :== + :>: :<= + :<=: :> + :<: :>= + :>=: :< + :!~: :=~ + :zero?: :nonzero? + :nonzero?: :zero? + :any?: :none? + :none?: :any? + :even?: :odd? + :odd?: :even? + # `ActiveSupport` defines some common inverse methods. They are listed below, + # and not enabled by default. + # :present?: :blank? + # :blank?: :present? + # :include?: :exclude? + # :exclude?: :include? + # :one?: :many? + # :many?: :one? Style/IpAddresses: Description: "Don't include literal IP addresses in code." Enabled: false VersionAdded: '0.58'