forked from webdino/gitfab2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
97 lines (74 loc) · 1.65 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
86
87
88
89
90
91
92
93
94
95
96
97
inherit_from: .rubocop_todo.yml
Rails:
Enabled: true
# TODO: Remove this to enable this cop in Rails 5
# https://github.com/bbatsov/rubocop/issues/3675
Rails/HttpPositionalArguments:
Enabled: false
AllCops:
Exclude:
- 'Capfile'
- 'Gemfile'
- 'app/validators/*'
- 'app/models/ability.rb'
- 'bin/*'
- 'config/**/*'
- 'db/seeds.rb'
- 'script/*'
- 'spec/**/*'
- 'vendor/**/*'
ClassAndModuleChildren:
EnforcedStyle: compact
GuardClause:
MinBodyLength: 4
Layout/ExtraSpacing:
Enabled: false
Layout/SpaceInLambdaLiteral:
Enabled: false
Layout/IndentationWidth:
Enabled: true
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: rails
Lint/AmbiguousOperator:
Exclude:
- 'app/controllers/concerns/error_handling.rb'
- 'app/models/concerns/searchable.rb'
Lint/NonLocalExitFromIterator:
Enabled: false
Lint/ParenthesesAsGroupedExpression:
Enabled: false
Lint/UselessSetterCall:
Exclude:
- 'app/controllers/annotations_controller.rb'
- 'app/controllers/note_cards_controller.rb'
- 'app/controllers/states_controller.rb'
- 'app/controllers/usages_controller.rb'
Metrics/ClassLength:
Max: 180
Exclude:
- 'db/migrate/**'
Metrics/LineLength:
Max: 120
Exclude:
- 'db/migrate/**'
- 'db/schema.rb'
PredicateName:
NamePrefixBlacklist:
- hoge_
Style/AsciiComments:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/NumericLiterals:
Exclude:
- 'db/schema.rb'
Style/SignalException:
Exclude:
- 'app/controllers/application_controller.rb'
Style/RaiseArgs:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/WordArray:
Enabled: false