diff --git a/config/default.yml b/config/default.yml index 9c058d5..504111e 100644 --- a/config/default.yml +++ b/config/default.yml @@ -73,24 +73,51 @@ Lint/AmbiguousBlockAssociation: Exclude: - spec/**/*_spec.rb +Lint/BinaryOperatorWithIdenticalOperands: # (0.89) + Enabled: true + Lint/DeprecatedOpenSSLConstant: Enabled: true Lint/DuplicateElsifCondition: Enabled: true +Lint/DuplicateRescueException: # (0.89) + Enabled: true + +Lint/EmptyConditionalBody: # (0.89) + Enabled: true + +Lint/FloatComparison: # (0.89) + Enabled: true + +Lint/MissingSuper: # (0.89) + Enabled: true + Lint/MixedRegexpCaptureTypes: Enabled: true Lint/OrderedMagicComments: Enabled: true +Lint/OutOfRangeRegexpRef: # (0.89) + Enabled: true + Lint/RaiseException: Enabled: true +Lint/SelfAssignment: # (0.89) + Enabled: true + Lint/StructNewOverride: Enabled: true +Lint/TopLevelReturnWithArgument: # (0.89) + Enabled: true + +Lint/UnreachableLoop: # (0.89) + Enabled: true + # TODO: Fix this one Lint/UriEscapeUnescape: Enabled: false @@ -166,20 +193,56 @@ Rails/ActiveRecordAliases: - lib/forms/**/*.rb - spec/lib/forms/**/*.rb +Rails/ActiveRecordCallbacksOrder: # (2.7) + Enabled: true + +Rails/FindById: # (2.7) + Enabled: true + +Rails/Inquiry: # (2.7) + Enabled: true + Rails/HttpPositionalArguments: Include: - spec/**/* - test/**/* +Rails/MailerName: # (2.7) + Enabled: true + +Rails/MatchRoute: # (2.7) + Enabled: true + +Rails/NegateInclude: # (2.7) + Enabled: true + Rails/OutputSafety: Enabled: true +Rails/Pluck: # (2.7) + Enabled: true + +Rails/PluckInWhere: # (2.7) + Enabled: true + +Rails/RenderInline: # (2.7) + Enabled: true + +Rails/RenderPlainText: # (2.7) + Enabled: true + +Rails/ShortI18n: # (2.7) + Enabled: true + Rails/SkipsModelValidations: Enabled: true Exclude: - lib/tasks/**/*.rake - spec/**/*.rb +Rails/WhereExists: # (2.7) + Enabled: true + # ================ # # RSpec Cops # # ================ # @@ -243,12 +306,18 @@ Style/CaseLikeIf: Style/Documentation: Enabled: false +Style/ExplicitBlockArgument: # (0.89) + Enabled: true + Style/ExponentialNotation: Enabled: true Style/FrozenStringLiteralComment: Enabled: false +Style/GlobalStdStream: # (0.89) + Enabled: true + Style/HashEachMethods: Enabled: true @@ -267,6 +336,9 @@ Style/HashTransformValues: Style/ModuleFunction: EnforcedStyle: extend_self +Style/OptionalBooleanParameter: # (0.89) + Enabled: true + Style/PercentLiteralDelimiters: Enabled: true @@ -285,9 +357,15 @@ Style/RedundantRegexpCharacterClass: Style/RedundantRegexpEscape: Enabled: true +Style/SingleArgumentDig: # (0.89) + Enabled: true + Style/SlicingWithRange: Enabled: true +Style/StringConcatenation: # (0.89) + Enabled: true + Style/SymbolArray: EnforcedStyle: percent diff --git a/rubocop-wundertax.gemspec b/rubocop-wundertax.gemspec index 66610ae..8b1cd66 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.1.0' + s.version = '2.1.1' s.summary = 'RuboCop Wundertax' s.description = 'Code style checking for Wundertax Ruby repositories' s.homepage = 'https://github.com/wundertax/rubocop-wundertax' @@ -10,12 +10,12 @@ Gem::Specification.new do |s| s.files = Dir['README.md', 'LICENSE', 'config/*.yml'] - s.add_dependency 'rubocop', '~> 0.88' + s.add_dependency 'rubocop', '~> 0.89' s.add_dependency 'rubocop-performance' s.add_dependency 'rubocop-rails' s.add_dependency 'rubocop-rspec' - s.add_development_dependency 'rake', '~> 12.0' + s.add_development_dependency 'rake', '~> 13.0' s.add_development_dependency 'yamllint' s.required_ruby_version = '>= 2.5.0'