-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
63 lines (47 loc) · 1004 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
require:
- rubocop-capybara
- rubocop-i18n
- rubocop-minitest
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
Style/Documentation:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Metrics/ClassLength:
Enabled: true
Max: 200
Exclude:
- test/**/*
I18n/RailsI18n:
Enabled: true
I18n/GetText:
Enabled: false
Minitest/MultipleAssertions:
Max: 10
Minitest/EmptyLineBeforeAssertionMethods:
Enabled: false
Metrics/MethodLength:
Max: 20
Metrics/AbcSize:
Max: 20
Rails/HelperInstanceVariable:
Enabled: false
# TODO: enable these rules when starting doing i18n
Rails/I18nLocaleTexts:
Enabled: false
I18n/RailsI18n/DecorateString:
Enabled: false
# Allow string or symbol array without literal
Style/WordArray:
EnforcedStyle: brackets
SupportedStyles:
- brackets
Style/SymbolArray:
EnforcedStyle: brackets
SupportedStyles:
- brackets
Style/HashSyntax:
EnforcedShorthandSyntax: either_consistent