rubomatic 1.1.0.pre.rc.1 → 1.1.0.pre.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/configs/metrics.yml +8 -0
- data/configs/rails.yml +11 -0
- data/configs/style.yml +13 -0
- data/lib/rubomatic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990c38c1c4eef1dc40e823b0cae4992afa0e6691ff6278f925a17c92fecd1c8f
|
4
|
+
data.tar.gz: 266c31bd8b33156cfed27d8268b39f85682db2cf7565207feb0c471c9c11db00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f7c0a9adf49363deec6236d7fe2e5ce897138632c4b9b20f7d16e1f7bd6a803db31ddff27d9033e29abfcfe1403391c2efd2df2751093773d3635a7f8fc2bc
|
7
|
+
data.tar.gz: 0fe8b7bc1bd39ae94c0b48f375f41930d9f5c21c1e619408fd90d14abea6e5fd80d20514690a9e0ce0606129774cd6b9fc86e72af908b3f37e4416c907ca27e5
|
data/configs/metrics.yml
CHANGED
@@ -52,6 +52,14 @@ Metrics/ClassLength:
|
|
52
52
|
Max: 100
|
53
53
|
CountAsOne: [ ]
|
54
54
|
|
55
|
+
<% if RuboCop::Version.document_version.to_f >= 1.47 %>
|
56
|
+
Metrics/CollectionLiteralLength:
|
57
|
+
Description: Checks for `Array` or `Hash` literals with many entries.
|
58
|
+
Enabled: true
|
59
|
+
VersionAdded: '1.47'
|
60
|
+
LengthThreshold: 250
|
61
|
+
<% end %>
|
62
|
+
|
55
63
|
# Avoid complex methods.
|
56
64
|
Metrics/CyclomaticComplexity:
|
57
65
|
Description: >-
|
data/configs/rails.yml
CHANGED
@@ -776,6 +776,17 @@ Rails/RequireDependency:
|
|
776
776
|
Enabled: false
|
777
777
|
VersionAdded: '2.10'
|
778
778
|
|
779
|
+
Rails/ResponseParsedBody:
|
780
|
+
Description: Prefer `response.parsed_body` to `JSON.parse(response.body)`.
|
781
|
+
Enabled: true
|
782
|
+
SafeAutoCorrect: false
|
783
|
+
VersionAdded: '2.18'
|
784
|
+
Include:
|
785
|
+
- spec/controllers/**/*.rb
|
786
|
+
- spec/requests/**/*.rb
|
787
|
+
- test/controllers/**/*.rb
|
788
|
+
- test/integration/**/*.rb
|
789
|
+
|
779
790
|
Rails/ReversibleMigration:
|
780
791
|
Description: 'Checks whether the change method of the migration file is reversible.'
|
781
792
|
StyleGuide: 'https://rails.rubystyle.guide#reversible-migration'
|
data/configs/style.yml
CHANGED
@@ -1189,6 +1189,12 @@ Style/MapToHash:
|
|
1189
1189
|
VersionAdded: '1.24'
|
1190
1190
|
Safe: false
|
1191
1191
|
|
1192
|
+
Style/MapToSet:
|
1193
|
+
Description: Prefer `to_set` with a block over `map.to_set`.
|
1194
|
+
Enabled: true
|
1195
|
+
Safe: false
|
1196
|
+
VersionAdded: '1.42'
|
1197
|
+
|
1192
1198
|
Style/MethodCallWithArgsParentheses:
|
1193
1199
|
Description: 'Use parentheses for method calls with arguments.'
|
1194
1200
|
StyleGuide: '#method-invocation-parens'
|
@@ -1246,6 +1252,13 @@ Style/MinMax:
|
|
1246
1252
|
Enabled: true
|
1247
1253
|
VersionAdded: '0.50'
|
1248
1254
|
|
1255
|
+
Style/MinMaxComparison:
|
1256
|
+
Description: Enforces the use of `max` or `min` instead of comparison for greater
|
1257
|
+
or less.
|
1258
|
+
Enabled: true
|
1259
|
+
Safe: false
|
1260
|
+
VersionAdded: '1.42'
|
1261
|
+
|
1249
1262
|
Style/MissingElse:
|
1250
1263
|
Description: >-
|
1251
1264
|
Require if/case expressions to have an else branches.
|
data/lib/rubomatic/version.rb
CHANGED