rubomatic 1.1.0.pre.rc.2 → 1.2.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/configs/lint.yml +2 -2
- data/configs/metrics.yml +4 -2
- data/configs/style.yml +20 -20
- data/lib/rubomatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b7acbf69f4c8fe25321bc98d89e9fad7529ca77cdf89cfa4636ef5f8b09f37
|
4
|
+
data.tar.gz: b469de2d58ed09471357c3b8e7b956ac6c40ca15f06e81bb4ad76eb3e3109b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62df5b3a1dc75c13be2596e9d940b2510bfaac78d1bbb447d278b3e15f7e1abe89f28e987e359c5c5bbb4f60496daf7917105ffb37597a026148c8b8c67e247c
|
7
|
+
data.tar.gz: 2f9590d72edbbd8d66822e7a62753bea6d540488540c2106e0418f0e3c019ac2fd2818a89c436f88c2a7caaae197c8b1747200cd9dc367ec505397a6c6d10078
|
data/configs/lint.yml
CHANGED
@@ -956,12 +956,12 @@ Lint/UselessMethodDefinition:
|
|
956
956
|
VersionChanged: '0.91'
|
957
957
|
Safe: false
|
958
958
|
|
959
|
-
|
959
|
+
<% if RuboCop::Version.version.to_f >= 1.43 %>
|
960
960
|
Lint/UselessRescue:
|
961
961
|
Description: 'Checks for useless `rescue`s, which only reraise rescued exceptions.'
|
962
962
|
Enabled: true
|
963
963
|
VersionAdded: '1.43'
|
964
|
-
|
964
|
+
<% end %>
|
965
965
|
|
966
966
|
Lint/UselessRuby2Keywords:
|
967
967
|
Description: 'Finds unnecessary uses of `ruby2_keywords`.'
|
data/configs/metrics.yml
CHANGED
@@ -52,13 +52,15 @@ Metrics/ClassLength:
|
|
52
52
|
Max: 100
|
53
53
|
CountAsOne: [ ]
|
54
54
|
|
55
|
-
|
55
|
+
<% if RuboCop::Version.document_version.to_f >= 1.47 %>
|
56
56
|
Metrics/CollectionLiteralLength:
|
57
57
|
Description: Checks for `Array` or `Hash` literals with many entries.
|
58
58
|
Enabled: true
|
59
59
|
VersionAdded: '1.47'
|
60
60
|
LengthThreshold: 250
|
61
|
-
|
61
|
+
Exclude:
|
62
|
+
- lib/tasks/seeds
|
63
|
+
<% end %>
|
62
64
|
|
63
65
|
# Avoid complex methods.
|
64
66
|
Metrics/CyclomaticComplexity:
|
data/configs/style.yml
CHANGED
@@ -62,12 +62,12 @@ Style/ArrayCoercion:
|
|
62
62
|
Enabled: true
|
63
63
|
VersionAdded: '0.88'
|
64
64
|
|
65
|
-
|
65
|
+
<% if RuboCop::Version.document_version.to_f >= 1.40 %>
|
66
66
|
Style/ArrayIntersect:
|
67
67
|
Description: 'Use `array1.intersect?(array2)` instead of `(array1 & array2).any?`.'
|
68
68
|
Enabled: true
|
69
69
|
VersionAdded: '1.40'
|
70
|
-
|
70
|
+
<% end %>
|
71
71
|
|
72
72
|
Style/ArrayJoin:
|
73
73
|
Description: 'Use Array#join instead of Array#*.'
|
@@ -447,20 +447,20 @@ Style/CommentedKeyword:
|
|
447
447
|
VersionAdded: '0.51'
|
448
448
|
VersionChanged: '1.19'
|
449
449
|
|
450
|
-
|
450
|
+
<% if RuboCop::Version.document_version.to_f >= 1.44 %>
|
451
451
|
Style/ComparableClamp:
|
452
452
|
Description: 'Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum.'
|
453
453
|
Enabled: true
|
454
454
|
VersionAdded: '1.44'
|
455
|
-
|
455
|
+
<% end %>
|
456
456
|
|
457
|
-
|
457
|
+
<% if RuboCop::Version.document_version.to_f >= 1.41 %>
|
458
458
|
Style/ConcatArrayLiterals:
|
459
459
|
Description: 'Enforces the use of `Array#push(item)` instead of `Array#concat([item])` to avoid redundant array literals.'
|
460
460
|
Enabled: true
|
461
461
|
Safe: false
|
462
462
|
VersionAdded: '1.41'
|
463
|
-
|
463
|
+
<% end %>
|
464
464
|
|
465
465
|
Style/ConditionalAssignment:
|
466
466
|
Description: >-
|
@@ -540,13 +540,13 @@ Style/Dir:
|
|
540
540
|
Enabled: true
|
541
541
|
VersionAdded: '0.50'
|
542
542
|
|
543
|
-
|
543
|
+
<% if RuboCop::Version.document_version.to_f >= 1.48 %>
|
544
544
|
Style/DirEmpty:
|
545
545
|
Description: >-
|
546
546
|
Prefer to use `Dir.empty?('path/to/dir')` when checking if a directory is empty.
|
547
547
|
Enabled: true
|
548
548
|
VersionAdded: '1.48'
|
549
|
-
|
549
|
+
<% end %>
|
550
550
|
|
551
551
|
Style/DisableCopsWithinSourceCodeDirective:
|
552
552
|
Severity: info # Or warning
|
@@ -745,13 +745,13 @@ Style/FetchEnvVar:
|
|
745
745
|
# Environment variables to be excluded from the inspection.
|
746
746
|
AllowedVars: [ ]
|
747
747
|
|
748
|
-
|
748
|
+
<% if RuboCop::Version.document_version.to_f >= 1.48 %>
|
749
749
|
Style/FileEmpty:
|
750
750
|
Description: >-
|
751
751
|
Prefer to use `File.empty?('path/to/file')` when checking if a file is empty.
|
752
752
|
Enabled: true
|
753
753
|
VersionAdded: '1.48'
|
754
|
-
|
754
|
+
<% end %>
|
755
755
|
|
756
756
|
Style/FileRead:
|
757
757
|
Description: 'Favor `File.(bin)read` convenience methods.'
|
@@ -1075,7 +1075,7 @@ Style/InverseMethods:
|
|
1075
1075
|
:select: :reject
|
1076
1076
|
:select!: :reject!
|
1077
1077
|
|
1078
|
-
|
1078
|
+
<% if RuboCop::Version.document_version.to_f >= 1.44 %>
|
1079
1079
|
Style/InvertibleUnlessCondition:
|
1080
1080
|
Description: 'Favor `if` with inverted condition over `unless`.'
|
1081
1081
|
Enabled: true
|
@@ -1102,7 +1102,7 @@ Style/InvertibleUnlessCondition:
|
|
1102
1102
|
:exclude?: :include?
|
1103
1103
|
# :one?: :many?
|
1104
1104
|
# :many?: :one?
|
1105
|
-
|
1105
|
+
<% end %>
|
1106
1106
|
|
1107
1107
|
Style/IpAddresses:
|
1108
1108
|
Description: "Don't include literal IP addresses in code."
|
@@ -1829,19 +1829,19 @@ Style/RedundantConditional:
|
|
1829
1829
|
Enabled: true
|
1830
1830
|
VersionAdded: '0.50'
|
1831
1831
|
|
1832
|
-
|
1832
|
+
<% if RuboCop::Version.document_version.to_f >= 1.40 %>
|
1833
1833
|
Style/RedundantConstantBase:
|
1834
1834
|
Description: Avoid redundant `::` prefix on constant.
|
1835
1835
|
Enabled: true
|
1836
1836
|
VersionAdded: '1.40'
|
1837
|
-
|
1837
|
+
<% end %>
|
1838
1838
|
|
1839
|
-
|
1839
|
+
<% if RuboCop::Version.document_version.to_f >= 1.41 %>
|
1840
1840
|
Style/RedundantDoubleSplatHashBraces:
|
1841
1841
|
Description: 'Checks for redundant uses of double splat hash braces.'
|
1842
1842
|
Enabled: true
|
1843
1843
|
VersionAdded: '1.41'
|
1844
|
-
|
1844
|
+
<% end %>
|
1845
1845
|
|
1846
1846
|
Style/RedundantEach:
|
1847
1847
|
Description: 'Checks for redundant `each`.'
|
@@ -1883,12 +1883,12 @@ Style/RedundantFreeze:
|
|
1883
1883
|
VersionAdded: '0.34'
|
1884
1884
|
VersionChanged: '0.66'
|
1885
1885
|
|
1886
|
-
|
1886
|
+
<% if RuboCop::Version.document_version.to_f >= 1.45 %>
|
1887
1887
|
Style/RedundantHeredocDelimiterQuotes:
|
1888
1888
|
Description: 'Checks for redundant heredoc delimiter quotes.'
|
1889
1889
|
Enabled: true
|
1890
1890
|
VersionAdded: '1.45'
|
1891
|
-
|
1891
|
+
<% end %>
|
1892
1892
|
|
1893
1893
|
Style/RedundantInitialize:
|
1894
1894
|
Description: 'Checks for redundant `initialize` methods.'
|
@@ -1990,13 +1990,13 @@ Style/RegexpLiteral:
|
|
1990
1990
|
# are found in the regexp string.
|
1991
1991
|
AllowInnerSlashes: false
|
1992
1992
|
|
1993
|
-
|
1993
|
+
<% if RuboCop::Version.document_version.to_f >= 1.40 %>
|
1994
1994
|
Style/RequireOrder:
|
1995
1995
|
Description: Sort `require` and `require_relative` in alphabetical order.
|
1996
1996
|
Enabled: true
|
1997
1997
|
SafeAutoCorrect: false
|
1998
1998
|
VersionAdded: '1.40'
|
1999
|
-
|
1999
|
+
<% end %>
|
2000
2000
|
|
2001
2001
|
Style/RescueModifier:
|
2002
2002
|
Description: 'Avoid using rescue in its modifier form.'
|
data/lib/rubomatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0.pre.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|