rubocop-rubomatic 1.3.0 → 1.4.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/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 +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1f436f7d2185ec2b70812d4fb16168932faa7a6fe63c684c3cc968d2afecb2
|
4
|
+
data.tar.gz: 5028bddd92022f47e13d4faf516fdbcc83095bb5f2208473bd09d3376edad703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b118c600a84fcaebd462e30a8783cdd22846617ae60584b5632826d78a56b8284a3d5923b8f2c834e948eb9b059e12cd74baed60e69404ba3addb55a3675b3f
|
7
|
+
data.tar.gz: d8f7662cce7636ed52229615a71d50663711af795de98016f30575cb426d79ff8c862cbf1d12a2fafa755b1dc237d3d4609a7c29ad2bf3e4f1528f8561aff267
|
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
|
|