rubocop-37signals 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubocop-37signals.rb +1 -0
- data/rubocop-ruby.yml +206 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4401b98f88e6ca312ad0c0ef5922778550c77be925007c06c536835ba81b6362
|
4
|
+
data.tar.gz: 1c5758a7e2e0ea9a49e4081dbd3610d3ee0fbe69218fa56eb9aaa726e9e50443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb49106202f099d55c3cb87447df29112b9f52207d5895c6dfc08b3b15146c8b7661abd1cc4ab4f041ce2cb3aead82c40eede9efd8f81838530872d579b32cd
|
7
|
+
data.tar.gz: 19fe7c1aec30259c42bf3975763d8929bedb9ae7a504eb04f4992427391b2ffd0449135315b4c2b85f330294e1220e5a1c560e3907d042b31521e863ab4fe9a1
|
@@ -0,0 +1 @@
|
|
1
|
+
# Stub so Bundler can quietly require the gem.
|
data/rubocop-ruby.yml
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
inherit_mode:
|
2
|
+
merge:
|
3
|
+
- Exclude
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
DisabledByDefault: true
|
7
|
+
|
8
|
+
# We generally prefer &&/|| but like low-precedence and/or in context
|
9
|
+
Style/AndOr:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
# Align `when` with `end`.
|
13
|
+
Layout/CaseIndentation:
|
14
|
+
Enabled: true
|
15
|
+
EnforcedStyle: end
|
16
|
+
|
17
|
+
# Align comments with method definitions.
|
18
|
+
Layout/CommentIndentation:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Layout/ElseAlignment:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
# Align `end` with the matching keyword or starting expression except for
|
25
|
+
# assignments, where it should be aligned with the LHS.
|
26
|
+
Layout/EndAlignment:
|
27
|
+
Enabled: true
|
28
|
+
EnforcedStyleAlignWith: variable
|
29
|
+
AutoCorrect: true
|
30
|
+
|
31
|
+
Layout/EmptyLineAfterMagicComment:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Layout/EmptyLinesAroundBlockBody:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
# In a regular class definition, no empty lines around the body.
|
38
|
+
Layout/EmptyLinesAroundClassBody:
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
# In a regular method definition, no empty lines around the body.
|
42
|
+
Layout/EmptyLinesAroundMethodBody:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
# In a regular module definition, no empty lines around the body.
|
46
|
+
Layout/EmptyLinesAroundModuleBody:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
50
|
+
Style/HashSyntax:
|
51
|
+
Enabled: true
|
52
|
+
EnforcedShorthandSyntax: either
|
53
|
+
|
54
|
+
# Method definitions after `private` or `protected` isolated calls need one
|
55
|
+
# extra level of indentation.
|
56
|
+
#
|
57
|
+
# We break this rule in context, though, e.g. for private-only concerns,
|
58
|
+
# so we leave it disabled.
|
59
|
+
Layout/IndentationConsistency:
|
60
|
+
Enabled: false
|
61
|
+
EnforcedStyle: indented_internal_methods
|
62
|
+
|
63
|
+
# Two spaces, no tabs (for indentation).
|
64
|
+
#
|
65
|
+
# Doesn't behave properly with private-only concerns, so it's disabled.
|
66
|
+
Layout/IndentationWidth:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Layout/LeadingCommentSpace:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Layout/SpaceAfterColon:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Layout/SpaceAfterComma:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Layout/SpaceAroundKeyword:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Layout/SpaceBeforeComma:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Layout/SpaceBeforeFirstArg:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Style/DefWithParentheses:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
# Defining a method with parameters needs parentheses.
|
94
|
+
Style/MethodDefParentheses:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
# Use `foo {}` not `foo{}`.
|
98
|
+
Layout/SpaceBeforeBlockBraces:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
# Use `->(x, y) { x + y }` not `-> (x, y) { x + y }`
|
102
|
+
Layout/SpaceInLambdaLiteral:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Style/StabbyLambdaParentheses:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
# Use `foo { bar }` not `foo {bar}`.
|
109
|
+
# Use `foo { }` not `foo {}`.
|
110
|
+
Layout/SpaceInsideBlockBraces:
|
111
|
+
Enabled: true
|
112
|
+
EnforcedStyleForEmptyBraces: space
|
113
|
+
|
114
|
+
# Use `[ a, [ b, c ] ]` not `[a, [b, c]]`
|
115
|
+
# Use `[]` not `[ ]`
|
116
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
117
|
+
Enabled: true
|
118
|
+
EnforcedStyle: space
|
119
|
+
EnforcedStyleForEmptyBrackets: no_space
|
120
|
+
|
121
|
+
# Use `%w[ a b ]` not `%w[ a b ]`.
|
122
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
126
|
+
# Use `{}` not `{ }`.
|
127
|
+
Layout/SpaceInsideHashLiteralBraces:
|
128
|
+
Enabled: true
|
129
|
+
EnforcedStyle: space
|
130
|
+
EnforcedStyleForEmptyBraces: no_space
|
131
|
+
|
132
|
+
# Use `foo(bar)` not `foo( bar )`
|
133
|
+
Layout/SpaceInsideParens:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
# Requiring a space is not yet supported as of 0.59.2
|
137
|
+
# Use `%w[ foo ]` not `%w[foo]`
|
138
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
139
|
+
Enabled: false
|
140
|
+
#EnforcedStyle: space
|
141
|
+
|
142
|
+
# Use `hash[:key]` not `hash[ :key ]`
|
143
|
+
Layout/SpaceInsideReferenceBrackets:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
# Use `"foo"` not `'foo'` unless escaping is required
|
147
|
+
Style/StringLiterals:
|
148
|
+
Enabled: true
|
149
|
+
EnforcedStyle: double_quotes
|
150
|
+
|
151
|
+
# Detect hard tabs, no hard tabs.
|
152
|
+
Layout/IndentationStyle:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
# Blank lines should not have any spaces.
|
156
|
+
Layout/TrailingEmptyLines:
|
157
|
+
Enabled: true
|
158
|
+
|
159
|
+
# No trailing whitespace.
|
160
|
+
Layout/TrailingWhitespace:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
# Use quotes for string literals when they are enough.
|
164
|
+
Style/RedundantPercentQ:
|
165
|
+
Enabled: false
|
166
|
+
|
167
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
168
|
+
Lint/RequireParentheses:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Lint/RedundantStringCoercion:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
Lint/UriEscapeUnescape:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
Style/ParenthesesAroundCondition:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Style/RedundantReturn:
|
181
|
+
Enabled: true
|
182
|
+
AllowMultipleReturnValues: true
|
183
|
+
|
184
|
+
Style/Semicolon:
|
185
|
+
Enabled: true
|
186
|
+
AllowAsExpressionSeparator: true
|
187
|
+
|
188
|
+
# Prefer Foo.method over Foo::method
|
189
|
+
Style/ColonMethodCall:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Style/PercentLiteralDelimiters:
|
193
|
+
Enabled: true
|
194
|
+
PreferredDelimiters:
|
195
|
+
default: "()"
|
196
|
+
"%i": "[]"
|
197
|
+
"%I": "[]"
|
198
|
+
"%r": "{}"
|
199
|
+
"%w": "[]"
|
200
|
+
"%W": "[]"
|
201
|
+
|
202
|
+
Style/TrailingCommaInArrayLiteral:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Style/TrailingCommaInHashLiteral:
|
206
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-37signals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 37signals
|
@@ -70,6 +70,8 @@ executables: []
|
|
70
70
|
extensions: []
|
71
71
|
extra_rdoc_files: []
|
72
72
|
files:
|
73
|
+
- lib/rubocop-37signals.rb
|
74
|
+
- rubocop-ruby.yml
|
73
75
|
- rubocop.yml
|
74
76
|
homepage: https://github.com/basecamp/house-style
|
75
77
|
licenses:
|