From ddd2974f62341d24b1eef90a705d09c111084f6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 10:23:14 +0000 Subject: [PATCH 1/2] Build(deps-dev): Bump steep from 1.8.3 to 1.9.3 Bumps [steep](https://github.com/soutaro/steep) from 1.8.3 to 1.9.3. - [Release notes](https://github.com/soutaro/steep/releases) - [Changelog](https://github.com/soutaro/steep/blob/master/CHANGELOG.md) - [Commits](https://github.com/soutaro/steep/compare/v1.8.3...v1.9.3) --- updated-dependencies: - dependency-name: steep dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 597e5c6..1ce0200 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -90,7 +90,7 @@ GEM concurrent-ruby (1.3.4) connection_pool (2.4.1) crass (1.0.6) - csv (3.3.0) + csv (3.3.2) date (3.4.1) diff-lcs (1.5.1) drb (2.2.1) @@ -108,7 +108,7 @@ GEM irb (1.14.3) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.9.0) + json (2.9.1) language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) @@ -198,7 +198,7 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbs (3.6.1) + rbs (3.8.1) logger rdoc (6.10.0) psych (>= 4.0.0) @@ -274,7 +274,7 @@ GEM sqlite3 (2.4.0-arm64-darwin) sqlite3 (2.4.0-x86_64-darwin) sqlite3 (2.4.0-x86_64-linux-gnu) - steep (1.8.3) + steep (1.9.3) activesupport (>= 5.1) concurrent-ruby (>= 1.1.10) csv (>= 3.0.9) @@ -285,12 +285,13 @@ GEM logger (>= 1.3.0) parser (>= 3.1) rainbow (>= 2.2.2, < 4.0) - rbs (~> 3.6.0) + rbs (~> 3.8) securerandom (>= 0.1) strscan (>= 1.0.0) terminal-table (>= 2, < 4) + uri (>= 0.12.0) stringio (3.1.2) - strscan (3.1.0) + strscan (3.1.2) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) thor (1.3.2) From 54475919c0b08c6d3ba044f0bbabf04112c36c59 Mon Sep 17 00:00:00 2001 From: kg8m Date: Sat, 28 Dec 2024 18:58:49 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20Steep=E2=80=99s=20`Ruby::UnannotatedE?= =?UTF-8?q?mptyCollection`=20offence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` Warning: /check_all.rb:36:16: [warning] Empty array doesn't have type annotation │ Diagnostic ID: Ruby::UnannotatedEmptyCollection │ └ outputs = [] ~~ ``` --- .rubocop.yml | 6 ++++-- lib/tasks/check_all.rb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 01ec35a..04162db 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -28,6 +28,8 @@ Bundler/GemVersion: Layout/ExtraSpacing: AllowBeforeTrailingComments: true +Layout/LeadingCommentSpace: + AllowRBSInlineAnnotation: true Layout/LineLength: AllowedPatterns: - "'.{50,}'" @@ -125,9 +127,9 @@ Style/DocumentationMethod: Style/FrozenStringLiteralComment: Exclude: - "bin/*" +# Use inline comments like `array = [] #: Array[String]` for RBS/Steep. Style/InlineComment: - Exclude: - - "**/*.md" + Enabled: false # Forcing parentheses of all method calls isn’t readable. # e.g., redirect_to, raise, create_table, t.string, RSpec’s expectations, assertions, and so on Style/MethodCallWithArgsParentheses: diff --git a/lib/tasks/check_all.rb b/lib/tasks/check_all.rb index c187109..380e98f 100644 --- a/lib/tasks/check_all.rb +++ b/lib/tasks/check_all.rb @@ -33,7 +33,7 @@ def executor lambda do |taskname| command = "bundle exec rake #{taskname}" - outputs = [] + outputs = [] #: Array[String] outputs << format(TITLE_TEMPLATE, command:) # Use `PTY.spawn` to get colorized outputs of each command.