Skip to content

Commit

Permalink
Rubocop: Add rubocop-on-rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jun 9, 2024
1 parent 0e8ec86 commit 9dabcf6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: 3.3
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1
- run: bundle exec rubocop --parallel
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
- rubocop-on-rbs

AllCops:
EnabledByDefault: true
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ gem 'rbs', '~> 3.4'
gem 'rubocop', '~> 1.57'
gem 'rubocop-minitest', '~> 0.33.0'
gem 'rubocop-performance', '~> 1.19'
gem 'rubocop-rake', '~> 0.6.0'
gem 'rubocop-rake', '~> 0.6'

gem 'rubocop-on-rbs', '~> 0.2' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1')
2 changes: 1 addition & 1 deletion sig/ilios.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Ilios
class Statement
def bind: (Hash[Symbol | String, untyped]) -> self
def page_size=: (Integer) -> self
def idempotent=: (true | false) -> self
def idempotent=: (bool) -> self
end

class Future
Expand Down

0 comments on commit 9dabcf6

Please sign in to comment.