-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
106 lines (76 loc) · 1.94 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
98
99
100
101
102
103
104
105
106
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-capybara
- rubocop-factory_bot
AllCops:
NewCops: enable
Bundler/OrderedGems:
TreatCommentsAsGroupSeparators: false
FactoryBot/AssociationStyle:
Enabled: false
FactoryBot/AttributeDefinedStatically:
Enabled: false
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/FirstMethodArgumentLineBreak:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/MultilineHashKeyLineBreaks:
Enabled: true
Layout/MultilineMethodArgumentLineBreaks:
Enabled: false
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Lint/MissingSuper:
Enabled: false
Lint/SuppressedException:
AllowComments: true
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'config/environments/*'
- 'config/routes.rb'
Metrics/ClassLength:
CountAsOne: ['array', 'hash', 'heredoc']
Exclude:
- spec/components/previews/**/*
Metrics/MethodLength:
CountAsOne: ['array', 'hash', 'heredoc']
Exclude:
- spec/components/previews/**/*
Metrics/ParameterLists:
Exclude:
- app/components/**/*
- spec/components/previews/**/*
Performance/BlockGivenWithExplicitBlock:
Enabled: false
RSpec/ExampleLength:
Max: 20
CountAsOne: ['array', 'hash', 'heredoc']
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/MultipleExpectations:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashSyntax:
EnforcedShorthandSyntax: either
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolProc:
AllowMethodsWithArguments: true
Style/UnlessLogicalOperators:
EnforcedStyle: forbid_logical_operators