forked from hausgold/grape-jwt-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
43 lines (36 loc) · 864 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require: rubocop-rspec
Rails:
Enabled: true
Documentation:
Enabled: true
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.3
Exclude:
- db/schema.rb
- bin/**/*
- db/migrate/**/*
- vendor/cache/**/*
- vendor/bundle/**/*
- build/**/*
Metrics/BlockLength:
Exclude:
# Because of the Grape DSL
- lib/**/*.rb
- Rakefile
- grape-jwt-authentication.gemspec
- spec/**/*.rb
- '**/*.rake'
# Document all the things.
Style/DocumentationMethod:
Enabled: true
RequireForNonPublicMethods: true
# It's a deliberate idiom in RSpec.
# See: https://github.com/bbatsov/rubocop/issues/4222
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
# Because +expect_any_instance_of().to have_received()+ is not
# supported with the +with(hash_including)+ matchers
RSpec/MessageSpies:
EnforcedStyle: receive