This repository has been archived by the owner on Jul 27, 2021. It is now read-only.
forked from appirits/comable
/
.rubocop.yml
67 lines (56 loc) · 1.5 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
# C: Line is too long.
LineLength:
Enabled: false
# C: Missing top-level class documentation comment.
Documentation:
Enabled: false
# C: Use only ascii symbols in comments.
AsciiComments:
Enabled: false
# W: The use of eval is a serious security risk.
Eval:
Exclude:
- '**/Gemfile'
# W: Unused block argument. You can omit the argument if you don't care about it.
UnusedBlockArgument:
Exclude:
- core/lib/generators/comable/install/templates/config/initializers/comable.rb
# C: Use the new Ruby 1.9 hash syntax.
HashSyntax:
Exclude:
- tasks/*
- core/app/models/concerns/comable/checkout.rb
- core/app/models/comable/payment.rb
- core/app/models/comable/shipment.rb
# C: Method has too many lines.
MethodLength:
Exclude:
- '**/db/migrate/*'
# C: Assignment Branch Condition size for change is too high.
AbcSize:
Exclude:
- '**/db/migrate/*'
# C: Replace class var @@_ with a class instance var.
ClassVars:
Exclude:
- core/lib/comable/core/configuration.rb
# C: Use nested module/class definitions instead of compact style.
ClassAndModuleChildren:
Exclude:
- core/lib/comable/state_machine_patch.rb
# C: Module has too many lines.
ModuleLength:
# Ignore spec files
Exclude:
- spec/**/*_spec.rb
- core/spec/**/*_spec.rb
- frontend/spec/**/*_spec.rb
- backend/spec/**/*_spec.rb
# Ignore files.
AllCops:
Exclude:
- vendor/**/*
- spec/dummy/db/schema.rb
- spec/dummy/tmp/**/*
- spec/support/share_db_connection.rb
- gemfiles/**/*