Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/config/default.yml +14 -12
  4. data/config/rails.yml +18 -0
  5. metadata +34 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA1:
3
- metadata.gz: 0fb04aefc6c3e5512814c36e187071ea0fce4b77
4
- data.tar.gz: 9567d0d1832b2907db5016662045c5c7eeb63b23
3
+ metadata.gz: 24ffaa218f8a5c4c475d20efb6313ed3400f49c4
4
+ data.tar.gz: c429f745be8577b2026ba910ddaf35abb197e2ef
5
5
SHA512:
6
- metadata.gz: '03944dc8db0a929742ca9f5edc5a1f681ef59c46b4fd32d05b4b0e4554f307ac8d2cefebef56dcdb147c4853b2afc3f6b0c3f8e2085ae1c08c85f1aa3b960257'
7
- data.tar.gz: 3a27a7acbcf5d0fad5f618c4598d1a43f963317857266fa8d5a40552d781878b75ef3c3e5a7cf1281ae063c10acbc0c5478d77b7c7cca64101713be57a068bcb
6
+ metadata.gz: cc4452044523ec665a21a6c61a828693feb5d87ef2422f8343adb96a6d4c753e8ccda2d9e23e99b02272ffb035c908fe087e6b511532d1e518e3d8a5ad5c3165
7
+ data.tar.gz: 2cca4df0ce86011a0c826fae654b1b2c4444900a7dd1821dea0251ee52e99ea8ce485041fd1f332f8c026e6351351ea0eabbb48d9b21e80e648ad33d532c3478
data/README.md CHANGED
@@ -16,6 +16,8 @@ gem "rubocop-springest"
16
16
**.rubocop.yml**
17
17
18
18
``` yaml
19
+ require: rubocop-performance
20
+
19
21
inherit_gem:
20
22
rubocop-springest:
21
23
- config/default.yml
data/config/default.yml CHANGED
@@ -1,4 +1,6 @@
1
- require: rubocop/cop/github
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop/cop/github
2
4
3
5
AllCops:
4
6
DisabledByDefault: true
@@ -175,10 +177,10 @@ Lint/StringConversionInInterpolation:
175
177
Lint/UnderscorePrefixedVariableName:
176
178
Enabled: true
177
179
178
- Lint/UnneededCopDisableDirective:
180
+ Lint/RedundantCopDisableDirective:
179
181
Enabled: true
180
182
181
- Lint/UnneededSplatExpansion:
183
+ Lint/RedundantSplatExpansion:
182
184
Enabled: true
183
185
184
186
Lint/UnreachableCode:
@@ -287,9 +289,6 @@ Performance/DoubleStartEndWith:
287
289
Performance/EndWith:
288
290
Enabled: true
289
291
290
- Performance/LstripRstrip:
291
- Enabled: true
292
-
293
292
Performance/RangeInclude:
294
293
Enabled: false
295
294
@@ -300,9 +299,6 @@ Performance/RedundantMerge:
300
299
Enabled: true
301
300
MaxKeyValuePairs: 1
302
301
303
- Performance/RedundantSortBy:
304
- Enabled: true
305
-
306
302
Performance/Size:
307
303
Enabled: true
308
304
@@ -316,9 +312,6 @@ Performance/FlatMap:
316
312
Performance/ReverseEach:
317
313
Enabled: true
318
314
319
- Performance/Sample:
320
- Enabled: true
321
-
322
315
Performance/StringReplacement:
323
316
Enabled: true
324
317
@@ -389,3 +382,12 @@ Style/StabbyLambdaParentheses:
389
382
Style/StringLiterals:
390
383
Enabled: true
391
384
EnforcedStyle: double_quotes
385
+
386
+ Style/Strip:
387
+ Enabled: true
388
+
389
+ Style/RedundantSortBy:
390
+ Enabled: true
391
+
392
+ Style/Sample:
393
+ Enabled: true
data/config/rails.yml CHANGED
@@ -1,4 +1,22 @@
1
1
Rails:
2
+ DisableByDefault: true
3
+
4
+ Rails/Present:
5
+ Enabled: true
6
+
7
+ Rails/Blank:
8
+ Enabled: true
9
+
10
+ Rails/ActiveRecordAliases:
11
+ Enabled: true
12
+
13
+ Rails/DynamicFindBy:
14
+ Enabled: true
15
+
16
+ Rails/IgnoredSkipActionFilterOption:
17
+ Enabled: true
18
+
19
+ Rails/Validation:
2
20
Enabled: true
3
21
4
22
Rails/FindEach:
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: rubocop-springest
3
3
version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.9
5
5
platform: ruby
6
6
authors:
7
7
- Mark Mulder
8
8
autorequire:
9
9
bindir: bin
10
10
cert_chain: []
11
- date: 2019-03-11 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
dependencies:
13
13
- !ruby/object:Gem::Dependency
14
14
name: rubocop
15
15
requirement: !ruby/object:Gem::Requirement
16
16
requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-performance
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
17
45
- - "~>"
18
46
- !ruby/object:Gem::Version
19
- version: '0.51'
47
+ version: '1.4'
20
48
type: :runtime
21
49
prerelease: false
22
50
version_requirements: !ruby/object:Gem::Requirement
23
51
requirements:
24
52
- - "~>"
25
53
- !ruby/object:Gem::Version
26
- version: '0.51'
54
+ version: '1.4'
27
55
- !ruby/object:Gem::Dependency
28
56
name: actionview
29
57
requirement: !ruby/object:Gem::Requirement
@@ -80,7 +108,7 @@ dependencies:
80
108
- - "~>"
81
109
- !ruby/object:Gem::Version
82
110
version: '2.7'
83
- description: 'Code style checking for Springest Ruby repositories '
111
+ description: Code style checking for Springest Ruby repositories
84
112
email:
85
113
- markmulder@gmail.com
86
114
executables: []
@@ -126,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
154
version: '0'
127
155
requirements: []
128
156
rubyforge_project:
129
- rubygems_version: 2.6.14.1
157
+ rubygems_version: 2.6.14.3
130
158
signing_key:
131
159
specification_version: 4
132
160
summary: RuboCop Springest