diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51b0a039..5c30a3ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - ruby-version: [2.5, 2.6, 2.7, 3.0] + ruby-version: [2.5, 2.6, 2.7, 3.0, 3.1] runs-on: ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index d97c49fe..5fbb51ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +* Update rubocop-performance from 1.12.0 to [1.13.1](https://github.com/rubocop/rubocop-performance/tag/v1.13.1) +* Update rubocop from 1.23.0 to [1.24.1](https://github.com/rubocop/rubocop/tag/v1.24.1) + ## 1.5.0 * Update rubocop-performance from 1.11.5 to [1.12.0](https://github.com/rubocop/rubocop-performance/tag/v1.12.0) diff --git a/Gemfile.lock b/Gemfile.lock index 187f13a1..4bc6a404 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,8 +2,8 @@ PATH remote: . specs: standard (1.5.0) - rubocop (= 1.23.0) - rubocop-performance (= 1.12.0) + rubocop (= 1.24.1) + rubocop-performance (= 1.13.1) GEM remote: https://rubygems.org/ @@ -13,29 +13,29 @@ GEM docile (1.4.0) gimme (0.5.0) method_source (1.0.0) - minitest (5.14.4) + minitest (5.15.0) parallel (1.21.0) - parser (3.0.3.1) + parser (3.1.0.0) ast (~> 2.4.1) pry (0.14.1) coderay (~> 1.1) method_source (~> 1.0) rainbow (3.0.0) rake (13.0.6) - regexp_parser (2.1.1) + regexp_parser (2.2.0) rexml (3.2.5) - rubocop (1.23.0) + rubocop (1.24.1) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 1.12.0, < 2.0) + rubocop-ast (>= 1.15.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.13.0) + rubocop-ast (1.15.1) parser (>= 3.0.1.1) - rubocop-performance (1.12.0) + rubocop-performance (1.13.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) ruby-progressbar (1.11.0) @@ -61,4 +61,4 @@ DEPENDENCIES standard! BUNDLED WITH - 2.2.22 + 2.3.4 diff --git a/config/base.yml b/config/base.yml index 100acab3..4441fa1e 100644 --- a/config/base.yml +++ b/config/base.yml @@ -801,7 +801,7 @@ Lint/Void: CheckForMethodsWithNoSideEffects: false Lint/IncompatibleIoSelectWithFiberScheduler: - Enabled: false + Enabled: true Lint/RequireRelativeSelfPath: Enabled: true @@ -896,6 +896,9 @@ Naming/VariableName: Naming/VariableNumber: Enabled: false +Naming/BlockForwarding: + Enabled: false + Performance/AncestorsInclude: Enabled: false @@ -1045,6 +1048,9 @@ Performance/UriDefaultParser: Performance/ConcurrentMonotonicTime: Enabled: true +Performance/StringIdentifierArgument: + Enabled: true + Security/Eval: Enabled: true @@ -1824,3 +1830,11 @@ Style/SelectByRegexp: Style/OpenStructUse: Enabled: false +Style/MapToHash: + Enabled: false + +Style/FileWrite: + Enabled: true + +Style/FileRead: + Enabled: true diff --git a/config/ruby-1.8.yml b/config/ruby-1.8.yml index 29b7287c..11e4e600 100644 --- a/config/ruby-1.8.yml +++ b/config/ruby-1.8.yml @@ -5,3 +5,9 @@ Style/HashSyntax: Style/Lambda: Enabled: false + +Style/FileWrite: + Enabled: false + +Style/FileRead: + Enabled: false diff --git a/config/ruby-3.0.yml b/config/ruby-3.0.yml new file mode 100644 index 00000000..60e76de2 --- /dev/null +++ b/config/ruby-3.0.yml @@ -0,0 +1,13 @@ +inherit_from: ./base.yml + +AllCops: + TargetRubyVersion: 3.0 + +Style/HashExcept: + Enabled: true + +Naming/BlockForwarding: + Enabled: false + +Naming/BlockForwarding: + Enabled: false diff --git a/standard.gemspec b/standard.gemspec index 47e939cb..d64b4a5d 100644 --- a/standard.gemspec +++ b/standard.gemspec @@ -19,6 +19,6 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "rubocop", "1.23.0" - spec.add_dependency "rubocop-performance", "1.12.0" + spec.add_dependency "rubocop", "1.24.1" + spec.add_dependency "rubocop-performance", "1.13.1" end diff --git a/test/test_helper.rb b/test/test_helper.rb index 2835b460..1730116c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,7 +1,6 @@ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) begin require "simplecov" - SimpleCov.start SimpleCov.start do add_filter "vendor" end