diff --git a/.rubocop.yml b/.rubocop.yml index eb41466a..91f752d3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -48,11 +48,20 @@ Layout/MultilineOperationIndentation: Layout/ParameterAlignment: EnforcedStyle: with_fixed_indentation +Layout/SpaceAroundMethodCallOperator: + Enabled: true + # Use exactly one space on each side of an operator. Do not align operators # because it makes the code harder to edit, and makes lines unnecessarily long. Layout/SpaceAroundOperators: AllowForAlignment: false +Lint/RaiseException: + Enabled: true + +Lint/StructNewOverride: + Enabled: true + # Migrations often contain long up/down methods, and extracting smaller methods # from these is of questionable value. Metrics/AbcSize: @@ -132,6 +141,10 @@ Style/BlockDelimiters: Style/DoubleNegation: Enabled: false +# This cop is unimportant in this repo. +Style/ExponentialNotation: + Enabled: false + # Avoid annotated tokens except in desperately complicated format strings. # In 99% of format strings they actually make it less readable. Style/FormatStringToken: diff --git a/paper_trail.gemspec b/paper_trail.gemspec index fbaa5cf0..babe937c 100644 --- a/paper_trail.gemspec +++ b/paper_trail.gemspec @@ -44,7 +44,7 @@ has been destroyed. s.add_development_dependency "paper_trail-association_tracking", "~> 2.0.0" s.add_development_dependency "rake", "~> 13.0" s.add_development_dependency "rspec-rails", "~> 3.8" - s.add_development_dependency "rubocop", "~> 0.80.0" + s.add_development_dependency "rubocop", "~> 0.82.0" s.add_development_dependency "rubocop-performance", "~> 1.4" s.add_development_dependency "rubocop-rspec", "~> 1.35"