Skip to content

Commit

Permalink
Update rubocop requirement from = 0.82.0 to = 0.85.1 (#140)
Browse files Browse the repository at this point in the history
* Update rubocop requirement from = 0.82.0 to = 0.85.1

Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v0.82.0...v0.85.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Enable new cops

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Matt Brictson <matt@mattbrictson.com>
  • Loading branch information
dependabot-preview[bot] and mattbrictson authored Jun 13, 2020
1 parent 5619644 commit c8c5a11
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ AllCops:
- "tmp/**/*"
- "vendor/**/*"

Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true

Layout/HashAlignment:
EnforcedColonStyle:
- table
Expand All @@ -29,6 +32,12 @@ Layout/SpaceAroundEqualsInParameterDefault:
Layout/SpaceAroundMethodCallOperator:
Enabled: true

Lint/DeprecatedOpenSSLConstant:
Enabled: true

Lint/MixedRegexpCaptureTypes:
Enabled: true

Lint/RaiseException:
Enabled: true

Expand Down Expand Up @@ -102,6 +111,15 @@ Style/HashTransformValues:
Style/NumericPredicate:
Enabled: false

Style/RedundantRegexpCharacterClass:
Enabled: true

Style/RedundantRegexpEscape:
Enabled: true

Style/SlicingWithRange:
Enabled: true

Style/StringLiterals:
EnforcedStyle: double_quotes

Expand Down
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace :bump do
replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
replace_in_file ".circleci/config.yml", /bundler -v (\S+)/ => version
replace_in_file ".circleci/Dockerfile", /bundler -v (\S+)/ => version
replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d\.]+)$/ => version
replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d.]+)$/ => version
end

task :ruby do
Expand All @@ -43,9 +43,9 @@ namespace :bump do

replace_in_file "tomo.gemspec", /ruby_version = ">= (.*)"/ => lowest
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor
replace_in_file ".circleci/config.yml", %r{circleci/ruby:([\d\.]+)} => latest
replace_in_file ".circleci/Dockerfile", %r{circleci/ruby:([\d\.]+)} => latest
replace_in_file "docs/comparisons.md", /ruby version\s*\|\s*([\d\.]+)/i => lowest_minor
replace_in_file ".circleci/config.yml", %r{circleci/ruby:([\d.]+)} => latest
replace_in_file ".circleci/Dockerfile", %r{circleci/ruby:([\d.]+)} => latest
replace_in_file "docs/comparisons.md", /ruby version\s*\|\s*([\d.]+)/i => lowest_minor

travis = YAML.safe_load(open(".travis.yml"))
travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"]
Expand Down
2 changes: 1 addition & 1 deletion tomo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "minitest-ci", "~> 3.4"
spec.add_development_dependency "minitest-reporters", "~> 1.3"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rubocop", "0.82.0"
spec.add_development_dependency "rubocop", "0.85.1"
spec.add_development_dependency "rubocop-minitest", "0.9.0"
spec.add_development_dependency "rubocop-performance", "1.6.1"
end

0 comments on commit c8c5a11

Please sign in to comment.