Skip to content

Commit

Permalink
Enable rubocop-on-rbs to activestorage (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss authored Jan 19, 2025
1 parent 239fb9f commit ce44437
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions gems/activestorage/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
inherit_from: ../../.rubocop.yml

RBS/Layout:
Enabled: true
RBS/Lint:
Enabled: true
RBS/Style:
Enabled: true
4 changes: 2 additions & 2 deletions gems/activestorage/6.1/lib/attached/model.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module ActiveStorage
def has_one_attached: (
(::String | ::Symbol) name,
?dependent: ::Symbol dependent,
?service: (::String | ::Symbol| nil) service,
?service: (::String | ::Symbol | nil) service,
?strict_loading: bool strict_loading
) -> void

Expand Down Expand Up @@ -93,7 +93,7 @@ module ActiveStorage
def has_many_attached: (
(::String | ::Symbol) name,
?dependent: ::Symbol dependent,
?service: (::String | ::Symbol| nil) service,
?service: (::String | ::Symbol | nil) service,
?strict_loading: bool strict_loading
) -> void
end
Expand Down

0 comments on commit ce44437

Please sign in to comment.