Skip to content

Commit 1545fca

Browse files
authored
Merge pull request #2040 from ksss/empty-argument
Apply RBS/Style/EmptyArgument
2 parents b3afd77 + 01ae7a4 commit 1545fca

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ RBS/Style:
3333
Exclude:
3434
- 'sig/**/*'
3535
- 'test/**/*'
36+
RBS/Style/EmptyArgument:
37+
Enabled: true
3638
RBS/Style/InitializeReturnType:
3739
Enabled: true
3840

core/dir.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ class Dir
784784
# caveats.
785785
#
786786
def chdir: () -> Integer
787-
| [T] { () -> T } -> T
787+
| [T] () { () -> T } -> T
788788

789789
# <!--
790790
# rdoc-file=dir.c

core/set.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,5 +629,5 @@ module Enumerable[unchecked out Elem]
629629
# Needs to `require "set"` to use this method.
630630
#
631631
def to_set: () -> Set[Elem]
632-
| [T] { (Elem) -> T } -> Set[T]
632+
| [T] () { (Elem) -> T } -> Set[T]
633633
end

stdlib/did_you_mean/0/did_you_mean.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ module DidYouMean
243243
# - requireables()
244244
# -->
245245
#
246-
def self.requireables: -> Array[String]
246+
def self.requireables: () -> Array[String]
247247

248248
# <!--
249249
# rdoc-file=lib/did_you_mean/spell_checkers/require_path_checker.rb

0 commit comments

Comments
 (0)