-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
41 lines (37 loc) · 1.05 KB
/
.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
inherit_gem:
citizens-advice-style:
- default.yml
- default-rails.yml
AllCops:
SuggestExtensions: false
Metrics/BlockLength:
Exclude:
# routes.rb is a large block by design so exclude it
- config/routes.rb
# These config files generally contain lots of lines which trigger this metric, so we're excluding them
- config/environments/*.rb
# Migrations tend to be long as they create lots of fields
- db/migrate/*.rb
# rswag defined tests end up more deeply nested than usually allowed
RSpec/NestedGroups:
Exclude:
- spec/requests/**/*_spec.rb
# This is required to pick up the RSwag defined tests, the bundled config in the Gem doesn't
# appear to be working, so manually adding this: https://github.com/rswag/rswag/blob/master/rswag-specs/.rubocop_rspec_alias_config.yml
RSpec:
Language:
ExampleGroups:
Regular:
- path
- response
- get
- post
- patch
- put
- delete
- head
- options
- trace
Examples:
Regular:
- run_test!