-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
144 lines (120 loc) · 3.51 KB
/
.rubocop.yml
File metadata and controls
144 lines (120 loc) · 3.51 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
AllCops:
Exclude:
- db/schema.rb
- "db/migrate/**/*"
- "db/seeds/**/*"
- "node_modules/**/*"
- "vendor/**/*"
- "platform/**/*"
- "Dockerfile"
- "Gemfile"
- "Gemfile.lock"
- "lib/tasks"
DisabledByDefault: true
Layout/EmptyLinesAroundClassBody:
Description: "Keeps track of empty lines around class bodies."
StyleGuide: "#empty-lines-around-bodies"
Enabled: false
VersionAdded: "0.49"
VersionChanged: "0.53"
EnforcedStyle: no_empty_lines
SupportedStyles:
- empty_lines
- empty_lines_except_namespace
- empty_lines_special
- no_empty_lines
- beginning_only
- ending_only
Layout/EmptyLinesAroundModuleBody:
Description: "Keeps track of empty lines around module bodies."
StyleGuide: "#empty-lines-around-bodies"
Enabled: false
VersionAdded: "0.49"
EnforcedStyle: no_empty_lines
SupportedStyles:
- empty_lines
- empty_lines_except_namespace
- empty_lines_special
- no_empty_lines
Exclude:
- app/presenters/**/*
- spec/support/**/*
Layout/SpaceInsideArrayLiteralBrackets:
Description: "Checks the spacing inside array literal brackets."
Enabled: true
VersionAdded: "0.52"
EnforcedStyle: no_space
SupportedStyles:
- space
- no_space
# "compact" normally requires a space inside the brackets, with the exception
# that successive left brackets or right brackets are collapsed together
- compact
EnforcedStyleForEmptyBrackets: no_space
SupportedStylesForEmptyBrackets:
- space
- no_space
Layout/SpaceInsideBlockBraces:
Description: >-
Checks that block braces have or don"t have surrounding space.
For blocks taking parameters, checks that the left brace has
or doesn"t have trailing space.
Enabled: true
VersionAdded: "0.49"
EnforcedStyle: space
SupportedStyles:
- space
- no_space
EnforcedStyleForEmptyBraces: space
SupportedStylesForEmptyBraces:
- space
- no_space
# Space between `{` and `|`. Overrides `EnforcedStyle` if there is a conflict.
SpaceBeforeBlockParameters: true
Exclude:
- spec/**/*
Layout/SpaceInsideHashLiteralBraces:
Description: "Use spaces inside hash literal braces - or don't."
StyleGuide: "#spaces-operators"
Enabled: true
VersionAdded: "0.49"
EnforcedStyle: space
SupportedStyles:
- space
- no_space
# "compact" normally requires a space inside hash braces, with the exception
# that successive left braces or right braces are collapsed together
- compact
EnforcedStyleForEmptyBraces: no_space
SupportedStylesForEmptyBraces:
- space
- no_space
Layout/TrailingEmptyLines:
Description: "Checks trailing blank lines and final newline."
StyleGuide: "#newline-eof"
Enabled: true
VersionAdded: "0.49"
EnforcedStyle: final_newline
SupportedStyles:
- final_newline
- final_blank_line
Layout/TrailingWhitespace:
Description: "Avoid trailing whitespace."
StyleGuide: "#no-trailing-whitespace"
Enabled: true
VersionAdded: "0.49"
VersionChanged: "0.55"
AllowInHeredoc: false
Style/StringLiterals:
Description: "Checks if uses of quotes match the configured preference."
StyleGuide: "#consistent-string-literals"
Enabled: false
VersionAdded: "0.9"
VersionChanged: "0.36"
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes
# If `true`, strings which span multiple lines using `\` for continuation must
# use the same type of quotes on each line.
ConsistentQuotesInMultiline: false