Skip to content

Commit

Permalink
Apply RBS/Style/EmptyArgument
Browse files Browse the repository at this point in the history
Should use `()` for empty argument.
  • Loading branch information
ksss committed Oct 2, 2024
1 parent 969dd39 commit 01ae7a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ RBS/Style:
Exclude:
- 'sig/**/*'
- 'test/**/*'
RBS/Style/EmptyArgument:
Enabled: true
RBS/Style/InitializeReturnType:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion core/dir.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ class Dir
# caveats.
#
def chdir: () -> Integer
| [T] { () -> T } -> T
| [T] () { () -> T } -> T

# <!--
# rdoc-file=dir.c
Expand Down
2 changes: 1 addition & 1 deletion core/set.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -629,5 +629,5 @@ module Enumerable[unchecked out Elem]
# Needs to `require "set"` to use this method.
#
def to_set: () -> Set[Elem]
| [T] { (Elem) -> T } -> Set[T]
| [T] () { (Elem) -> T } -> Set[T]
end
2 changes: 1 addition & 1 deletion stdlib/did_you_mean/0/did_you_mean.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ module DidYouMean
# - requireables()
# -->
#
def self.requireables: -> Array[String]
def self.requireables: () -> Array[String]

# <!--
# rdoc-file=lib/did_you_mean/spell_checkers/require_path_checker.rb
Expand Down

0 comments on commit 01ae7a4

Please sign in to comment.