-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yml
124 lines (97 loc) · 2.35 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
AllCops:
Exclude:
- db/**/*
- bin/*
- vendor/**/*
- Gemfile.lock
- Rakefile
TargetRubyVersion: 2.7
Layout/DotPosition:
EnforcedStyle: trailing
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"default": "()"
"%i": "[]"
"%w": "[]"
Style/RescueStandardError:
Exclude:
- lib/tasks/*
Layout/EmptyLinesAroundArguments:
Exclude:
- lib/tasks/*
Style/FormatStringToken:
Exclude:
- lib/tasks/*
Metrics/AbcSize:
Max: 40
Metrics/LineLength:
Max: 120
Exclude:
- "lib/tasks/*"
Metrics/PerceivedComplexity:
Max: 100
Exclude:
- "app/services/hubspot/service.rb"
Metrics/ParameterLists:
Max: 6
Metrics/ClassLength:
Max: 300
Metrics/CyclomaticComplexity:
Max: 12
Metrics/ModuleLength:
Exclude:
- "**/*_spec.rb"
- "spec/support/*"
Metrics/MethodLength:
Max: 50
Exclude:
- "app/serializers/**/**/**"
- "spec/support/factories.rb"
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
- "**/routes.rb"
- "**/**/*.rake"
- "app/graphql/**/*.rb"
- "app/admin/**"
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/FrozenStringLiteralComment:
Enabled: false
Layout/ExtraSpacing:
# When true, allows most uses of extra spacing if the intent is to align
# things with the previous or next line, not counting empty lines or comment
# lines.
AllowForAlignment: true
Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
SupportedStyles:
- empty_lines
- no_empty_lines
Layout/EmptyLinesAroundModuleBody:
EnforcedStyle: no_empty_lines
SupportedStyles:
- empty_lines
- no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Description: "Keeps track of empty lines around block bodies."
Enabled: false
Layout/EmptyLines:
Description: "Don't use several empty lines in a row."
Enabled: true
Layout/EndOfLine:
Description: 'Use Unix-style line endings.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
Enabled: true
# Indent one level for follow-up lines
# https://github.com/troessner/reek/issues/553
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Style/WordArray:
Description: 'Use %w or %W for arrays of words.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
Enabled: false