Skip to content

Commit

Permalink
Introduce rubocop-on-rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jun 7, 2024
1 parent c4f2a62 commit 2f26593
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require: rubocop-on-rbs

AllCops:
TargetRubyVersion: 3.0
NewCops: enable
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ gem "rake"
gem "rbs"
gem "rdoc"
gem "rubocop"
gem "rubocop-on-rbs"
gem "steep"
2 changes: 1 addition & 1 deletion sig/easytest.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f26593

Please sign in to comment.