rubocop-rubomatic 1.3.0 → 1.4.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/CHANGELOG.adoc +15 -0
- data/config/bundler.yml +0 -22
- data/config/default.yml +0 -4
- data/config/gemspec_on.yml +0 -23
- data/config/layout.yml +0 -346
- data/config/lint.yml +6 -403
- data/config/metrics.yml +0 -41
- data/config/migration.yml +0 -4
- data/config/naming.yml +0 -68
- data/config/performance.yml +3 -128
- data/config/security.yml +0 -31
- data/config/style.yml +14 -931
- data/lib/rubocop/rubomatic/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40c7c0e8960f8b6b88e8bc1b7589399dc9c0ffe34e5eee642f2abd7d9604dbbf
|
4
|
+
data.tar.gz: 9ed75a9007edf100c49e05d9eb59ba633a3e8c0e8a494fcce6eccf912acf3622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ecb2af6629b9f01f25ca5842b8c424fcf2fc7d1dc185d05a36c23c69f62e12f1cf40ef3fc2d964b6e03cf6a52fd463e0c3b1552ffe39e2574e58aff987828c4
|
7
|
+
data.tar.gz: 377465bd480e1659da718d979b63434d01947ef4e74e6d00cf83e2bd7ba968412ae6adc8e081c29cf516e8c448764cf0188594fe64af5a1128bc70d9762df7e8
|
data/CHANGELOG.adoc
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
== 1.4.0
|
2
|
+
|
3
|
+
=== Cops
|
4
|
+
|
5
|
+
* Added new ``Lint/ItWithoutArgumentsInBlock`` cop
|
6
|
+
* Added new ``Style/ArrayFirstLast`` cop
|
7
|
+
* Added new ``Style/SuperWithArgsParentheses`` cop
|
8
|
+
* Added new ``Lint/LiteralAssignmentInCondition`` cop
|
9
|
+
* Added new ``Style/SingleLineDoEndBlock`` cop
|
10
|
+
* Added new ``Performance/MapMethodChain`` cop
|
11
|
+
|
12
|
+
=== Options
|
13
|
+
|
14
|
+
* Added ``UseAnonymousForwarding: true`` to ``Style/ArgumentsForwarding``, but only for ruby 3.2+
|
15
|
+
|
1
16
|
== 1.3.0
|
2
17
|
|
3
18
|
=== Cops
|
data/config/bundler.yml
CHANGED
@@ -1,29 +1,21 @@
|
|
1
1
|
Bundler/DuplicatedGem:
|
2
|
-
Description: 'Checks for duplicate gem entries in Gemfile.'
|
3
2
|
Enabled: true
|
4
3
|
Severity: warning
|
5
|
-
VersionAdded: '0.46'
|
6
|
-
VersionChanged: '1.40'
|
7
4
|
Include:
|
8
5
|
- '**/*.gemfile'
|
9
6
|
- '**/Gemfile'
|
10
7
|
- '**/gems.rb'
|
11
8
|
|
12
9
|
Bundler/DuplicatedGroup:
|
13
|
-
Description: Checks for duplicate group entries in Gemfile.
|
14
10
|
Enabled: true
|
15
11
|
Severity: warning
|
16
|
-
VersionAdded: '1.56'
|
17
12
|
Include:
|
18
13
|
- '**/*.gemfile'
|
19
14
|
- '**/Gemfile'
|
20
15
|
- '**/gems.rb'
|
21
16
|
|
22
17
|
Bundler/GemComment:
|
23
|
-
Description: 'Add a comment describing each gem.'
|
24
18
|
Enabled: false
|
25
|
-
VersionAdded: '0.59'
|
26
|
-
VersionChanged: '0.85'
|
27
19
|
Include:
|
28
20
|
- '**/*.gemfile'
|
29
21
|
- '**/Gemfile'
|
@@ -32,9 +24,7 @@ Bundler/GemComment:
|
|
32
24
|
OnlyFor: [ ]
|
33
25
|
|
34
26
|
Bundler/GemFilename:
|
35
|
-
Description: 'Enforces the filename for managing gems.'
|
36
27
|
Enabled: true
|
37
|
-
VersionAdded: '1.20'
|
38
28
|
EnforcedStyle: 'Gemfile'
|
39
29
|
SupportedStyles:
|
40
30
|
- 'Gemfile'
|
@@ -46,9 +36,7 @@ Bundler/GemFilename:
|
|
46
36
|
- '**/gems.locked'
|
47
37
|
|
48
38
|
Bundler/GemVersion:
|
49
|
-
Description: 'Requires or forbids specifying gem versions.'
|
50
39
|
Enabled: true
|
51
|
-
VersionAdded: '1.14'
|
52
40
|
EnforcedStyle: 'required'
|
53
41
|
SupportedStyles:
|
54
42
|
- 'required'
|
@@ -60,14 +48,8 @@ Bundler/GemVersion:
|
|
60
48
|
AllowedGems: [ ]
|
61
49
|
|
62
50
|
Bundler/InsecureProtocolSource:
|
63
|
-
Description: >-
|
64
|
-
The source `:gemcutter`, `:rubygems` and `:rubyforge` are deprecated
|
65
|
-
because HTTP requests are insecure. Please change your source to
|
66
|
-
'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
|
67
51
|
Enabled: true
|
68
52
|
Severity: warning
|
69
|
-
VersionAdded: '0.50'
|
70
|
-
VersionChanged: '1.40'
|
71
53
|
AllowHttpProtocol: true
|
72
54
|
Include:
|
73
55
|
- '**/*.gemfile'
|
@@ -75,11 +57,7 @@ Bundler/InsecureProtocolSource:
|
|
75
57
|
- '**/gems.rb'
|
76
58
|
|
77
59
|
Bundler/OrderedGems:
|
78
|
-
Description: >-
|
79
|
-
Gems within groups in the Gemfile should be alphabetically sorted.
|
80
60
|
Enabled: false
|
81
|
-
VersionAdded: '0.46'
|
82
|
-
VersionChanged: '0.47'
|
83
61
|
TreatCommentsAsGroupSeparators: true
|
84
62
|
# By default, "-" and "_" are ignored for order purposes.
|
85
63
|
# This can be overridden by setting this parameter to true.
|
data/config/default.yml
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
Rubomatic/Layout/MultilineArrayLineBreaks:
|
2
|
-
Description: 'Extends base Layout/MultilineArrayLineBreaks cop'
|
3
2
|
Enabled: true
|
4
|
-
VersionAdded: '1.4.0'
|
5
3
|
AllowMultilineFinalElement: true
|
6
4
|
AllowPercentArray: true
|
7
5
|
|
8
6
|
Rubomatic/Style/DisallowedMethods:
|
9
|
-
Description: 'Disallows the usage of `#abort` and `#tap` methods'
|
10
7
|
Enabled: true
|
11
|
-
VersionAdded: '0.0.2'
|
data/config/gemspec_on.yml
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
Gemspec/DependencyVersion:
|
2
|
-
Description: 'Requires or forbids specifying gem dependency versions.'
|
3
2
|
Enabled: true
|
4
|
-
VersionAdded: '1.29'
|
5
3
|
EnforcedStyle: 'required'
|
6
4
|
SupportedStyles:
|
7
5
|
- 'required'
|
@@ -11,28 +9,19 @@ Gemspec/DependencyVersion:
|
|
11
9
|
AllowedGems: [ ]
|
12
10
|
|
13
11
|
Gemspec/DeprecatedAttributeAssignment:
|
14
|
-
Description: Checks that deprecated attribute assignments are not set in a gemspec file.
|
15
12
|
Enabled: true
|
16
13
|
Severity: warning
|
17
|
-
VersionAdded: '1.30'
|
18
|
-
VersionChanged: '1.40'
|
19
14
|
Include:
|
20
15
|
- '**/*.gemspec'
|
21
16
|
|
22
17
|
Gemspec/DuplicatedAssignment:
|
23
|
-
Description: 'An attribute assignment method calls should be listed only once in a gemspec.'
|
24
18
|
Enabled: true
|
25
19
|
Severity: warning
|
26
|
-
VersionAdded: '0.52'
|
27
|
-
VersionChanged: '1.40'
|
28
20
|
Include:
|
29
21
|
- '**/*.gemspec'
|
30
22
|
|
31
23
|
Gemspec/OrderedDependencies:
|
32
|
-
Description: >-
|
33
|
-
Dependencies in the gemspec should be alphabetically sorted.
|
34
24
|
Enabled: true
|
35
|
-
VersionAdded: '0.51'
|
36
25
|
TreatCommentsAsGroupSeparators: true
|
37
26
|
# By default, "-" and "_" are ignored for order purposes.
|
38
27
|
# This can be overridden by setting this parameter to true.
|
@@ -41,32 +30,20 @@ Gemspec/OrderedDependencies:
|
|
41
30
|
- '**/*.gemspec'
|
42
31
|
|
43
32
|
Gemspec/RequireMFA:
|
44
|
-
Description: 'Checks that the gemspec has metadata to require Multi-Factor Authentication from RubyGems.'
|
45
33
|
Enabled: true
|
46
34
|
Severity: warning
|
47
|
-
VersionAdded: '1.23'
|
48
|
-
VersionChanged: '1.40'
|
49
|
-
Reference:
|
50
|
-
- https://guides.rubygems.org/mfa-requirement-opt-in/
|
51
35
|
Include:
|
52
36
|
- '**/*.gemspec'
|
53
37
|
|
54
38
|
Gemspec/RequiredRubyVersion:
|
55
|
-
Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
|
56
39
|
Enabled: true
|
57
40
|
Severity: warning
|
58
|
-
VersionAdded: '0.52'
|
59
|
-
VersionChanged: '1.40'
|
60
41
|
Include:
|
61
42
|
- '**/*.gemspec'
|
62
43
|
|
63
44
|
Gemspec/RubyVersionGlobalsUsage:
|
64
|
-
Description: Checks usage of RUBY_VERSION in gemspec.
|
65
|
-
StyleGuide: '#no-ruby-version-in-the-gemspec'
|
66
45
|
Enabled: true
|
67
46
|
Severity: warning
|
68
|
-
VersionAdded: '0.72'
|
69
|
-
VersionChanged: '1.40'
|
70
47
|
Include:
|
71
48
|
- '**/*.gemspec'
|
72
49
|
|