diff --git a/config/default.yml b/config/default.yml index d88b0a4..9c058d5 100644 --- a/config/default.yml +++ b/config/default.yml @@ -72,9 +72,13 @@ Lint/AmbiguousBlockAssociation: Enabled: true Exclude: - spec/**/*_spec.rb + Lint/DeprecatedOpenSSLConstant: Enabled: true +Lint/DuplicateElsifCondition: + Enabled: true + Lint/MixedRegexpCaptureTypes: Enabled: true @@ -124,6 +128,34 @@ Naming/PredicateName: Naming/VariableNumber: EnforcedStyle: non_integer +# =================== +# === Performance === +# =================== + +Performance/AncestorsInclude: + Enabled: true + +Performance/BigDecimalWithNumericArgument: + Enabled: true + +Performance/RedundantSortBlock: + Enabled: true + +Performance/RedundantStringChars: + Enabled: true + +Performance/ReverseFirst: + Enabled: true + +Performance/SortReverse: + Enabled: true + +Performance/Squeeze: + Enabled: true + +Performance/StringInclude: + Enabled: true + # ================ # # Rails Cops # # ================ # @@ -192,9 +224,22 @@ RSpec/NestedGroups: Max: 6 # =============== # -# Style Cops # +# Style Cops # # =============== # + +Style/AccessorGrouping: + Enabled: true + +Style/ArrayCoercion: + Enabled: true + +Style/BisectedAttrAccessor: + Enabled: true + +Style/CaseLikeIf: + Enabled: true + Style/Documentation: Enabled: false @@ -207,6 +252,12 @@ Style/FrozenStringLiteralComment: Style/HashEachMethods: Enabled: true +Style/HashAsLastArrayItem: + Enabled: true + +Style/HashLikeCase: + Enabled: true + Style/HashTransformKeys: Enabled: true @@ -219,6 +270,15 @@ Style/ModuleFunction: Style/PercentLiteralDelimiters: Enabled: true +Style/RedundantAssignment: + Enabled: true + +Style/RedundantFileExtensionInRequire: + Enabled: true + +Style/RedundantFetchBlock: + Enabled: true + Style/RedundantRegexpCharacterClass: Enabled: true diff --git a/rubocop-wundertax.gemspec b/rubocop-wundertax.gemspec index 2208d35..66610ae 100644 --- a/rubocop-wundertax.gemspec +++ b/rubocop-wundertax.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'rubocop-wundertax' - s.version = '2.0.5' + s.version = '2.1.0' s.summary = 'RuboCop Wundertax' s.description = 'Code style checking for Wundertax Ruby repositories' s.homepage = 'https://github.com/wundertax/rubocop-wundertax' @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.files = Dir['README.md', 'LICENSE', 'config/*.yml'] - s.add_dependency 'rubocop', '~> 0.85' + s.add_dependency 'rubocop', '~> 0.88' s.add_dependency 'rubocop-performance' s.add_dependency 'rubocop-rails' s.add_dependency 'rubocop-rspec'