Skip to content

Commit

Permalink
Upgrade rubocop to 1.12.0
Browse files Browse the repository at this point in the history
Co-authored-by: James Nebeker <jnebeker@users.noreply.github.com>
Co-authored-by: Aaron Kromer <cupakromer@users.noreply.github.com>
Co-authored-by: Sam Kim <sam-kim@users.noreply.github.com>
Co-authored-by: Alex Stone <alexstone@users.noreply.github.com>
  • Loading branch information
5 people committed Nov 19, 2021
1 parent feb613c commit 0ec5173
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions common_rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ Lint/HeredocMethodCallPosition:
Lint/InheritException:
EnforcedStyle: standard_error

# Make developers explain themselves in a comment if they want their rescue block to do nothing.
Lint/SuppressedException:
AllowNil: false

# Often with benchmarking we don't explicitly "use" a variable or return value.
# We simply need to perform the operation which generates said value for the
# benchmark.
Expand Down Expand Up @@ -687,6 +691,10 @@ Style/SlicingWithRange:
Style/StaticClass:
Enabled: true

# Enable Style/StringChars
Style/StringChars:
Enabled: true

# We generally prefer double quotes but many generators use single quotes. We
# don't view the performance difference to be all that much so we don't care
# if the style is mixed or double quotes are used for static strings.
Expand Down
2 changes: 1 addition & 1 deletion radius-spec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 2.5" # rubocop:disable Gemspec/RequiredRubyVersion

spec.add_runtime_dependency "rspec", "~> 3.7"
spec.add_runtime_dependency "rubocop", "~> 1.11.0"
spec.add_runtime_dependency "rubocop", "~> 1.12.0"
spec.add_runtime_dependency "rubocop-rails", "~> 2.12.0"

spec.add_development_dependency "bundler", ">= 2.2.10"
Expand Down

0 comments on commit 0ec5173

Please sign in to comment.