From 7c8173b6fd0eebd58750cfbf9412ae7c37fe356e Mon Sep 17 00:00:00 2001 From: ksss Date: Wed, 25 Dec 2024 14:41:08 +0900 Subject: [PATCH] Update rubocop-on-rbs Apply RBS/Layout/SpaceAroundOperators --- .rubocop.yml | 7 +++++++ Gemfile.lock | 2 +- core/gc.rbs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 321e14c73..8cdb96a0a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -15,6 +15,7 @@ Rubycw/Rubycw: RBS: Enabled: true + RBS/Layout: Enabled: true Exclude: @@ -23,6 +24,7 @@ RBS/Layout: RBS/Layout/CommentIndentation: Exclude: - core/string.rbs + RBS/Lint: Enabled: true Exclude: @@ -32,6 +34,11 @@ RBS/Lint/TopLevelInterface: Enabled: false RBS/Lint/TopLevelTypeAlias: Enabled: false +RBS/Lint/AmbiguousKeywordArgumentKey: + Exclude: + # OpenSSL::KDF.scrypt + - 'stdlib/openssl/0/openssl.rbs' + RBS/Style: Enabled: false Exclude: diff --git a/Gemfile.lock b/Gemfile.lock index 38a2bb3d6..19140ed90 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,7 +113,7 @@ GEM unicode-display_width (>= 2.4.0, < 4.0) rubocop-ast (1.37.0) parser (>= 3.3.1.0) - rubocop-on-rbs (1.2.0) + rubocop-on-rbs (1.3.0) rbs (~> 3.5) rubocop (~> 1.61) zlib diff --git a/core/gc.rbs b/core/gc.rbs index f69551561..0fd4512e2 100644 --- a/core/gc.rbs +++ b/core/gc.rbs @@ -587,7 +587,7 @@ module GC # The type that `GC.compact` and related functions can return. # - type compact_info = Hash[:considered | :moved |:moved_up | :moved_down, Hash[Symbol, Integer]] + type compact_info = Hash[:considered | :moved | :moved_up | :moved_down, Hash[Symbol, Integer]] #