From 9ebf159f5ba2820dee42d31842a1746224ae043d Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:35:48 +0900 Subject: [PATCH] Introduce rubocop-on-rbs (#48) https://github.com/ksss/rubocop-on-rbs --- .rubocop.yml | 2 ++ Gemfile | 1 + sig/easytest.rbs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index e7a3a4f..aa09c46 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-on-rbs + AllCops: TargetRubyVersion: 3.1 NewCops: enable diff --git a/Gemfile b/Gemfile index 7cab292..55ac682 100644 --- a/Gemfile +++ b/Gemfile @@ -12,4 +12,5 @@ gem "rake" gem "rbs" gem "rdoc" gem "rubocop" +gem "rubocop-on-rbs" gem "steep" diff --git a/sig/easytest.rbs b/sig/easytest.rbs index 2dc8877..904d5bb 100644 --- a/sig/easytest.rbs +++ b/sig/easytest.rbs @@ -71,7 +71,7 @@ module Easytest def to_have_attributes: (**untyped expected) -> void # Expect to satisfy a condition that the given block returns `true`. - def to_satisfy: () { (untyped actual) -> bool } -> void + def to_satisfy: () { (untyped actual) -> boolish } -> void # Expect to raise the given exception or an exception with the given message. def to_raise: (Class expected, ?(String | Regexp)? with_message) -> void