diff --git a/.rubocop.yml b/.rubocop.yml index c2f240e2..f0a8928f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,6 +12,9 @@ AllCops: - "tmp/**/*" - "vendor/**/*" +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: true + Layout/HashAlignment: EnforcedColonStyle: - table @@ -29,6 +32,12 @@ Layout/SpaceAroundEqualsInParameterDefault: Layout/SpaceAroundMethodCallOperator: Enabled: true +Lint/DeprecatedOpenSSLConstant: + Enabled: true + +Lint/MixedRegexpCaptureTypes: + Enabled: true + Lint/RaiseException: Enabled: true @@ -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 diff --git a/Rakefile b/Rakefile index d7bc9e29..72f11910 100644 --- a/Rakefile +++ b/Rakefile @@ -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 @@ -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"] diff --git a/tomo.gemspec b/tomo.gemspec index aba02f23..6b820fbd 100644 --- a/tomo.gemspec +++ b/tomo.gemspec @@ -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