File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ AllCops:
7
7
- bin/**/*
8
8
9
9
require :
10
- - rubocop-performance
11
10
- rubocop-rspec
12
11
12
+ plugins :
13
+ - rubocop-performance
14
+
13
15
inherit_from : .rubocop_todo.yml
14
16
15
17
Layout/LineLength :
Original file line number Diff line number Diff line change 15
15
* [ #2557 ] ( https://github.com/ruby-grape/grape/pull/2557 ) : Add ` lint! ` - [ @ericproulx ] ( https://github.com/ericproulx ) .
16
16
* [ #2561 ] ( https://github.com/ruby-grape/grape/pull/2561 ) : Optimize hash alloc for middleware's default options - [ @ericproulx ] ( https://github.com/ericproulx ) .
17
17
* [ #2563 ] ( https://github.com/ruby-grape/grape/pull/2563 ) : Update ` Grape::Middleware::Auth::Base ` - [ @ericproulx ] ( https://github.com/ericproulx ) .
18
+ * [ #2571 ] ( https://github.com/ruby-grape/grape/pull/2571 ) : Update RuboCop 1.75.8 - [ @pieterocp ] ( https://github.com/pieterocp ) .
18
19
* Your contribution here.
19
20
20
21
#### Fixes
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ group :development, :test do
10
10
gem 'builder' , require : false
11
11
gem 'bundler'
12
12
gem 'rake'
13
- gem 'rubocop' , '1.71.2 ' , require : false
14
- gem 'rubocop-performance' , '1.23.1 ' , require : false
13
+ gem 'rubocop' , '1.75.8 ' , require : false
14
+ gem 'rubocop-performance' , '1.25.0 ' , require : false
15
15
gem 'rubocop-rspec' , '3.4.0' , require : false
16
16
end
17
17
Original file line number Diff line number Diff line change @@ -1422,7 +1422,7 @@ def to_txt
1422
1422
def initialize ( app , *args )
1423
1423
@args = args
1424
1424
@app = app
1425
- @block = block_given? ? true : nil
1425
+ @block = block_given? || nil
1426
1426
end
1427
1427
1428
1428
def call ( env )
@@ -4536,8 +4536,8 @@ def inherited(api)
4536
4536
4537
4537
let ( :shared_api_module ) do
4538
4538
Module . new do
4539
- # rubocop:disable Style/ExplicitBlockArgument because this causes
4540
- # the underlying issue in this form
4539
+ # rubocop:disable Style/ExplicitBlockArgument -- because
4540
+ # this causes the underlying issue in this form
4541
4541
def uniqe_id_route
4542
4542
params do
4543
4543
use :unique_id
Original file line number Diff line number Diff line change 3
3
module Spec
4
4
module Support
5
5
module Helpers
6
- INTEGER_CLASS_NAME = 0 . to_i . class . to_s . freeze
6
+ INTEGER_CLASS_NAME = 0 . class . to_s . freeze
7
7
8
8
def integer_class_name
9
9
INTEGER_CLASS_NAME
You can’t perform that action at this time.
0 commit comments