From 0f828873c2e2cad58021d1ee183ae30725e80c1d Mon Sep 17 00:00:00 2001 From: Camilo Payan Date: Tue, 26 Dec 2023 12:36:52 -0500 Subject: [PATCH 1/2] Updates std-perf to 1.3.0 and rubocop to 1.59.0 --- CHANGELOG.md | 5 +++++ Gemfile.lock | 22 +++++++++++----------- config/base.yml | 12 ++++++++++++ standard.gemspec | 4 ++-- 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e12e3edb..e49f725f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +* Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0) +* Updates standard-performance to [1.3.0](https://github.com/standardrb/standard-performance/releases/tag/v1.3.0) + ## 1.32.1 * Fixes regeneration of TODO files ot avoid missing already-ignored rules [#587](https://github.com/standardrb/standard/pull/587) diff --git a/Gemfile.lock b/Gemfile.lock index bb0fc8f3..e9030eee 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,9 +4,9 @@ PATH standard (1.32.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.57.2) + rubocop (~> 1.59.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.2) + standard-performance (~> 1.3) GEM remote: https://rubygems.org/ @@ -31,7 +31,7 @@ GEM rake (13.0.6) regexp_parser (2.8.2) rexml (3.2.6) - rubocop (1.57.2) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -39,14 +39,14 @@ GEM rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-performance (1.19.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.1) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (1.13.0) simplecov (0.22.0) docile (~> 1.1) @@ -57,9 +57,9 @@ GEM standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.2.1) + standard-performance (1.3.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.19.1) + rubocop-performance (~> 1.20.1) unicode-display_width (2.5.0) PLATFORMS @@ -76,4 +76,4 @@ DEPENDENCIES standard! BUNDLED WITH - 2.4.21 + 2.4.12 diff --git a/config/base.yml b/config/base.yml index e5de5ca8..166966a9 100644 --- a/config/base.yml +++ b/config/base.yml @@ -586,12 +586,18 @@ Lint/InheritException: Lint/InterpolationCheck: Enabled: true +Lint/ItWithoutArgumentsInBlock: + Enabled: true + Lint/LambdaWithoutLiteralBlock: Enabled: false Lint/LiteralAsCondition: Enabled: true +Lint/LiteralAssignmentInCondition: + Enabled: true + Lint/LiteralInInterpolation: Enabled: true @@ -977,6 +983,9 @@ Style/ArgumentsForwarding: Style/ArrayCoercion: Enabled: false +Style/ArrayFirstLast: + Enabled: false + Style/ArrayIntersect: Enabled: false @@ -1712,6 +1721,9 @@ Style/Strip: Style/StructInheritance: Enabled: false +Style/SuperWithArgsParentheses: + Enabled: true + Style/SwapValues: Enabled: false diff --git a/standard.gemspec b/standard.gemspec index 7fa35c60..770195ad 100644 --- a/standard.gemspec +++ b/standard.gemspec @@ -23,11 +23,11 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.metadata["rubygems_mfa_required"] = "true" - spec.add_dependency "rubocop", "~> 1.57.2" + spec.add_dependency "rubocop", "~> 1.59.0" spec.add_dependency "lint_roller", "~> 1.0" spec.add_dependency "standard-custom", "~> 1.0.0" - spec.add_dependency "standard-performance", "~> 1.2" + spec.add_dependency "standard-performance", "~> 1.3" # not semver: first three are lsp protocol version, last is patch spec.add_dependency "language_server-protocol", "~> 3.17.0.2" From 22b98898c017c35672bc8ddc64f57a418d023dda Mon Sep 17 00:00:00 2001 From: Camilo Payan Date: Tue, 26 Dec 2023 12:56:51 -0500 Subject: [PATCH 2/2] Removes ruby head for now since there's a bit of an XMas gap in versions --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0d596db..e5df0028 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - ruby-version: [2.7, '3.0', 3.1, 3.2, head] + ruby-version: [2.7, '3.0', 3.1, 3.2, 3.3] runs-on: ${{ matrix.os }}