-
Notifications
You must be signed in to change notification settings - Fork 99
/
.rubocop.yml
85 lines (66 loc) · 1.84 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
require:
- standard
- rubocop-rspec
- rubocop-performance
- rubocop-rails
- rubocop-thread_safety
- rubocop-graphql
- rubocop-factory_bot
- rubocop-rspec_rails
- ./dev/cops/service_call_cop.rb
inherit_gem:
standard: config/base.yml
AllCops:
NewCops: disable
DisplayStyleGuide: true
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'db/*_schema.rb'
# TODO: Enable when we have time to fix all the offenses
Style/StringLiterals:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
SafeAutoCorrect: true
Performance/CaseWhenSplat:
Enabled: true
Rails/InverseOf:
Description: 'Checks for associations where the inverse cannot be determined automatically.'
Enabled: false
Rails/HttpStatus:
Description: 'Enforces use of symbolic or numeric value to describe HTTP status.'
Enabled: false
Rails/HasManyOrHasOneDependent:
Description: 'Forces a "dependent" options for has_one and has_many rails relations.'
Enabled: false
RSpec/ExampleLength:
Description: 'Checks for long examples.'
Enabled: false
RSpec/MultipleExpectations:
Description: 'Checks if examples contain too many expect calls.'
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/NamedSubject:
Enabled: false
# GraphQL
GraphQL/ArgumentDescription:
Enabled: false
GraphQL/FieldDescription:
Enabled: false
GraphQL/ObjectDescription:
Enabled: false
GraphQL/ExtractType:
Enabled: false
GraphQL/ExtractInputType:
Exclude:
- 'app/graphql/mutations/applied_coupons/create.rb'
- 'app/graphql/mutations/credit_notes/create.rb'
- 'app/graphql/mutations/invites/accept.rb'
- 'app/graphql/mutations/plans/create.rb'
- 'app/graphql/mutations/plans/update.rb'
- 'app/graphql/mutations/register_user.rb'
- 'app/graphql/mutations/wallet_transactions/create.rb'