rubocop-github 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb65f2420029886164d78ce065e0af16594e0e8
4
- data.tar.gz: d9544f86a42756426a5d09a674d8626db046cd67
3
+ metadata.gz: 306766990a92f8a79b7c3e3bbd1bc051519fdcd1
4
+ data.tar.gz: a81b183dfef42c2282586b3656bbbdaa93f28bc1
5
5
  SHA512:
6
- metadata.gz: dd9bc6ad99bd07d55589e4e097135e4655c73b4efae0ba982eebf737ff7aae858d6528c12d2df9341864e9135fd398336e8d1604ddc775de3bc1994ed41ff571
7
- data.tar.gz: 6cffe417060b9ed6b2c7a57110ab5d84b48e9f0a622a6a588f8e47f562f678ddd4cee697627f7bc8b070c703736a3c98408f4ce4fd3eb5bfc61fe209690bd138
6
+ metadata.gz: 8044af6d9588890333d935042a7c1a5ec7f48e83ee542facc4cb88f9dc4a41be9c74fc90eb9d56828517497cdf4d9f151c9ccf2f28e8d63bb4990eb870a00b2f
7
+ data.tar.gz: 679a5e00ffd212aa09cf8b0e7866af9e63ed36bef7c8d009c227d6e3171d31a0e8f25e61023093d60fe4b6223a977c0956047c84781718ab711a3f5b31473fd6
data/README.md CHANGED
@@ -14,7 +14,9 @@ gem "rubocop-github"
14
14
 
15
15
  ``` yaml
16
16
  inherit_gem:
17
- rubocop-github: config/default.yml
17
+ rubocop-github:
18
+ - config/default.yml
19
+ - config/rails.yml
18
20
  ```
19
21
 
20
22
  ## The Cops
@@ -3,7 +3,276 @@ require: rubocop/cop/github
3
3
  AllCops:
4
4
  DisabledByDefault: true
5
5
 
6
- GitHub/ApplicationRecord:
6
+ Lint/BlockAlignment:
7
+ Enabled: true
8
+
9
+ Lint/CircularArgumentReference:
10
+ Enabled: true
11
+
12
+ Lint/ConditionPosition:
13
+ Enabled: true
14
+
15
+ Lint/Debugger:
16
+ Enabled: true
17
+
18
+ Lint/DefEndAlignment:
19
+ Enabled: true
20
+
21
+ Lint/DeprecatedClassMethods:
22
+ Enabled: true
23
+
24
+ Lint/DuplicateMethods:
25
+ Enabled: true
26
+
27
+ Lint/DuplicatedKey:
28
+ Enabled: true
29
+
30
+ Lint/EachWithObjectArgument:
31
+ Enabled: true
32
+
33
+ Lint/ElseLayout:
34
+ Enabled: true
35
+
36
+ Lint/EmptyEnsure:
37
+ Enabled: true
38
+
39
+ Lint/EndInMethod:
40
+ Enabled: true
41
+
42
+ Lint/EmptyInterpolation:
43
+ Enabled: true
44
+
45
+ Lint/EndAlignment:
46
+ Enabled: false
47
+
48
+ Lint/EnsureReturn:
49
+ Enabled: true
50
+
51
+ Lint/Eval:
52
+ Enabled: true
53
+
54
+ Lint/FloatOutOfRange:
55
+ Enabled: true
56
+
57
+ Lint/FormatParameterMismatch:
58
+ Enabled: true
59
+
60
+ Lint/InvalidCharacterLiteral:
61
+ Enabled: true
62
+
63
+ Lint/LiteralInCondition:
64
+ Enabled: true
65
+
66
+ Lint/LiteralInInterpolation:
67
+ Enabled: true
68
+
69
+ Lint/Loop:
70
+ Enabled: true
71
+
72
+ Lint/NextWithoutAccumulator:
73
+ Enabled: true
74
+
75
+ Lint/RandOne:
76
+ Enabled: true
77
+
78
+ Lint/RequireParentheses:
79
+ Enabled: true
80
+
81
+ Lint/RescueException:
82
+ Enabled: true
83
+
84
+ Lint/StringConversionInInterpolation:
85
+ Enabled: true
86
+
87
+ Lint/UnderscorePrefixedVariableName:
88
+ Enabled: true
89
+
90
+ Lint/UnneededDisable:
91
+ Enabled: true
92
+
93
+ Lint/UnneededSplatExpansion:
94
+ Enabled: true
95
+
96
+ Lint/UnreachableCode:
97
+ Enabled: true
98
+
99
+ Lint/UselessComparison:
100
+ Enabled: true
101
+
102
+ Lint/UselessSetterCall:
103
+ Enabled: true
104
+
105
+ Lint/Void:
106
+ Enabled: true
107
+
108
+ Performance/CaseWhenSplat:
109
+ Enabled: false
110
+
111
+ Performance/Count:
112
+ Enabled: true
113
+
114
+ Performance/Detect:
115
+ Enabled: true
116
+
117
+ Performance/DoubleStartEndWith:
118
+ Enabled: true
119
+
120
+ Performance/EndWith:
121
+ Enabled: true
122
+
123
+ Performance/FlatMap:
124
+ Enabled: true
125
+
126
+ Performance/HashEachMethods:
127
+ Enabled: true
128
+
129
+ Performance/LstripRstrip:
130
+ Enabled: true
131
+
132
+ Performance/RangeInclude:
133
+ Enabled: false
134
+
135
+ Performance/RedundantMatch:
136
+ Enabled: false
137
+
138
+ Performance/RedundantMerge:
139
+ Enabled: true
140
+ MaxKeyValuePairs: 1
141
+
142
+ Performance/RedundantSortBy:
143
+ Enabled: true
144
+
145
+ Performance/ReverseEach:
146
+ Enabled: true
147
+
148
+ Performance/Sample:
149
+ Enabled: true
150
+
151
+ Performance/Size:
152
+ Enabled: true
153
+
154
+ Performance/StartWith:
155
+ Enabled: true
156
+
157
+ Style/ArrayJoin:
158
+ Enabled: true
159
+
160
+ Style/AsciiIdentifiers:
161
+ Enabled: true
162
+
163
+ Style/BeginBlock:
164
+ Enabled: true
165
+
166
+ Style/BlockComments:
167
+ Enabled: true
168
+
169
+ Style/BlockEndNewline:
170
+ Enabled: true
171
+
172
+ Style/CaseEquality:
173
+ Enabled: true
174
+
175
+ Style/CharacterLiteral:
176
+ Enabled: true
177
+
178
+ Style/ClassAndModuleCamelCase:
179
+ Enabled: true
180
+
181
+ Style/ClassMethods:
182
+ Enabled: true
183
+
184
+ Style/DefWithParentheses:
185
+ Enabled: true
186
+
187
+ Style/EndBlock:
188
+ Enabled: true
189
+
190
+ Style/EndOfLine:
191
+ Enabled: true
192
+
193
+ Style/FileName:
194
+ Enabled: true
195
+
196
+ Style/FlipFlop:
197
+ Enabled: true
198
+
199
+ Style/For:
200
+ Enabled: true
201
+
202
+ Style/FrozenStringLiteralComment:
203
+ Enabled: true
204
+
205
+ Style/InitialIndentation:
206
+ Enabled: true
207
+
208
+ Style/LambdaCall:
209
+ Enabled: true
210
+
211
+ Style/MethodCallParentheses:
212
+ Enabled: true
213
+
214
+ Style/MethodDefParentheses:
215
+ Enabled: true
216
+
217
+ Style/MethodName:
218
+ Enabled: true
219
+
220
+ Style/MultilineIfThen:
221
+ Enabled: true
222
+
223
+ Style/NilComparison:
224
+ Enabled: true
225
+
226
+ Style/Not:
227
+ Enabled: true
228
+
229
+ Style/OneLineConditional:
230
+ Enabled: true
231
+
232
+ Style/SpaceAfterMethodName:
233
+ Enabled: true
234
+
235
+ Style/SpaceAfterColon:
236
+ Enabled: true
237
+
238
+ Style/SpaceAfterComma:
239
+ Enabled: true
240
+
241
+ Style/SpaceAfterNot:
242
+ Enabled: true
243
+
244
+ Style/SpaceAfterSemicolon:
245
+ Enabled: true
246
+
247
+ Style/SpaceAroundBlockParameters:
248
+ Enabled: true
249
+
250
+ Style/SpaceAroundEqualsInParameterDefault:
251
+ Enabled: true
252
+
253
+ Style/SpaceInsideArrayPercentLiteral:
254
+ Enabled: true
255
+
256
+ Style/SpaceInsideBrackets:
257
+ Enabled: true
258
+
259
+ Style/SpaceInsideParens:
260
+ Enabled: true
261
+
262
+ Style/SpaceInsideRangeLiteral:
263
+ Enabled: true
264
+
265
+ Style/StabbyLambdaParentheses:
266
+ Enabled: true
267
+
268
+ Style/StringLiterals:
269
+ Enabled: true
270
+ EnforcedStyle: double_quotes
271
+
272
+ Style/Tab:
273
+ Enabled: true
274
+
275
+ Style/TrailingBlankLines:
7
276
  Enabled: true
8
277
 
9
278
  Style/TrailingWhitespace:
@@ -0,0 +1,24 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ Rails/FindEach:
5
+ Enabled: false
6
+
7
+ Rails/OutputSafety:
8
+ Enabled: true
9
+
10
+ Rails/PluralizationGrammar:
11
+ Enabled: true
12
+
13
+ Rails/RequestReferer:
14
+ Enabled: true
15
+ EnforcedStyle: referrer
16
+
17
+ Rails/ScopeArgs:
18
+ Enabled: true
19
+
20
+ Rails/UniqBeforePluck:
21
+ Enabled: true
22
+
23
+ GitHub/RailsApplicationRecord:
24
+ Enabled: true
@@ -1 +1 @@
1
- require "rubocop/cop/github/application_record"
1
+ require "rubocop/cop/github/rails_application_record"
@@ -3,7 +3,7 @@ require "rubocop"
3
3
  module RuboCop
4
4
  module Cop
5
5
  module GitHub
6
- class ApplicationRecord < Cop
6
+ class RailsApplicationRecord < Cop
7
7
  MSG = "Models should subclass from ApplicationRecord"
8
8
 
9
9
  ACTIVE_RECORD_BASE = s(:const, s(:const, nil, :ActiveRecord), :Base)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-10 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -61,8 +61,9 @@ files:
61
61
  - LICENSE
62
62
  - README.md
63
63
  - config/default.yml
64
+ - config/rails.yml
64
65
  - lib/rubocop/cop/github.rb
65
- - lib/rubocop/cop/github/application_record.rb
66
+ - lib/rubocop/cop/github/rails_application_record.rb
66
67
  homepage: https://github.com/github/rubocop-github
67
68
  licenses:
68
69
  - MIT