rubocop-minitest 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +18 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +5 -1
- data/.rubocop.yml +5 -3
- data/.rubocop_todo.yml +8 -7
- data/CHANGELOG.md +94 -37
- data/CONTRIBUTING.md +3 -3
- data/Gemfile +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +20 -4
- data/Rakefile +29 -0
- data/bin/console +2 -0
- data/config/default.yml +100 -16
- data/docs/antora.yml +7 -0
- data/docs/modules/ROOT/nav.adoc +6 -0
- data/docs/modules/ROOT/pages/cops.adoc +49 -0
- data/docs/modules/ROOT/pages/cops_minitest.adoc +1050 -0
- data/docs/modules/ROOT/pages/index.adoc +5 -0
- data/docs/modules/ROOT/pages/installation.adoc +15 -0
- data/docs/modules/ROOT/pages/usage.adoc +32 -0
- data/{manual → legacy-docs}/cops.md +0 -0
- data/{manual → legacy-docs}/cops_minitest.md +16 -16
- data/legacy-docs/index.md +1 -0
- data/{manual → legacy-docs}/installation.md +0 -0
- data/{manual → legacy-docs}/usage.md +0 -0
- data/lib/rubocop/cop/generator.rb +56 -0
- data/lib/rubocop/cop/minitest/assert_empty_literal.rb +23 -7
- data/lib/rubocop/cop/minitest/assert_in_delta.rb +29 -0
- data/lib/rubocop/cop/minitest/assert_kind_of.rb +25 -0
- data/lib/rubocop/cop/minitest/assert_nil.rb +1 -0
- data/lib/rubocop/cop/minitest/assert_output.rb +49 -0
- data/lib/rubocop/cop/minitest/assert_path_exists.rb +59 -0
- data/lib/rubocop/cop/minitest/assert_silent.rb +45 -0
- data/lib/rubocop/cop/minitest/assert_truthy.rb +1 -0
- data/lib/rubocop/cop/minitest/assert_with_expected_argument.rb +38 -0
- data/lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb +43 -0
- data/lib/rubocop/cop/minitest/global_expectations.rb +4 -4
- data/lib/rubocop/cop/minitest/literal_as_actual_argument.rb +53 -0
- data/lib/rubocop/cop/minitest/multiple_assertions.rb +63 -0
- data/lib/rubocop/cop/minitest/refute_equal.rb +2 -1
- data/lib/rubocop/cop/minitest/refute_false.rb +1 -0
- data/lib/rubocop/cop/minitest/refute_in_delta.rb +29 -0
- data/lib/rubocop/cop/minitest/refute_kind_of.rb +25 -0
- data/lib/rubocop/cop/minitest/refute_nil.rb +1 -0
- data/lib/rubocop/cop/minitest/refute_path_exists.rb +59 -0
- data/lib/rubocop/cop/minitest/test_method_name.rb +79 -0
- data/lib/rubocop/cop/minitest/unspecified_exception.rb +36 -0
- data/lib/rubocop/cop/minitest_cops.rb +16 -0
- data/lib/rubocop/cop/mixin/argument_range_helper.rb +10 -0
- data/lib/rubocop/cop/mixin/in_delta_mixin.rb +50 -0
- data/lib/rubocop/cop/mixin/minitest_cop_rule.rb +2 -1
- data/lib/rubocop/cop/mixin/minitest_exploration_helpers.rb +97 -0
- data/lib/rubocop/minitest/version.rb +8 -1
- data/mkdocs.yml +4 -4
- data/relnotes/v0.1.0.md +1 -1
- data/relnotes/v0.10.0.md +21 -0
- data/relnotes/v0.10.1.md +5 -0
- data/relnotes/v0.10.2.md +5 -0
- data/relnotes/v0.10.3.md +5 -0
- data/relnotes/v0.11.0.md +16 -0
- data/relnotes/v0.2.0.md +4 -4
- data/relnotes/v0.2.1.md +1 -1
- data/relnotes/v0.3.0.md +6 -6
- data/relnotes/v0.4.0.md +5 -5
- data/relnotes/v0.4.1.md +1 -1
- data/relnotes/v0.5.0.md +1 -1
- data/relnotes/v0.5.1.md +1 -1
- data/relnotes/v0.6.0.md +1 -1
- data/relnotes/v0.6.1.md +2 -2
- data/relnotes/v0.6.2.md +1 -1
- data/relnotes/v0.7.0.md +5 -5
- data/relnotes/v0.8.0.md +4 -4
- data/relnotes/v0.8.1.md +1 -1
- data/relnotes/v0.9.0.md +3 -3
- data/rubocop-minitest.gemspec +7 -7
- data/tasks/cops_documentation.rake +15 -264
- data/tasks/cut_release.rake +16 -0
- metadata +55 -20
- data/manual/index.md +0 -1
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
8
8
|
- Jonas Arvidsson
|
9
9
|
- Koichi ITO
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-03-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|
@@ -18,14 +18,20 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.90'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '2.0'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
29
|
- - ">="
|
27
30
|
- !ruby/object:Gem::Version
|
28
|
-
version: '0.
|
31
|
+
version: '0.90'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '2.0'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: minitest
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -43,7 +49,7 @@ dependencies:
|
|
43
49
|
description: |
|
44
50
|
Automatic Minitest code style checking tool.
|
45
51
|
A RuboCop extension focused on enforcing Minitest best practices and coding conventions.
|
46
|
-
email:
|
52
|
+
email:
|
47
53
|
executables: []
|
48
54
|
extensions: []
|
49
55
|
extra_rdoc_files: []
|
@@ -66,39 +72,68 @@ files:
|
|
66
72
|
- bin/console
|
67
73
|
- bin/setup
|
68
74
|
- config/default.yml
|
75
|
+
- docs/antora.yml
|
76
|
+
- docs/modules/ROOT/nav.adoc
|
77
|
+
- docs/modules/ROOT/pages/cops.adoc
|
78
|
+
- docs/modules/ROOT/pages/cops_minitest.adoc
|
79
|
+
- docs/modules/ROOT/pages/index.adoc
|
80
|
+
- docs/modules/ROOT/pages/installation.adoc
|
81
|
+
- docs/modules/ROOT/pages/usage.adoc
|
82
|
+
- legacy-docs/cops.md
|
83
|
+
- legacy-docs/cops_minitest.md
|
84
|
+
- legacy-docs/index.md
|
85
|
+
- legacy-docs/installation.md
|
86
|
+
- legacy-docs/usage.md
|
69
87
|
- lib/rubocop-minitest.rb
|
88
|
+
- lib/rubocop/cop/generator.rb
|
70
89
|
- lib/rubocop/cop/minitest/assert_empty.rb
|
71
90
|
- lib/rubocop/cop/minitest/assert_empty_literal.rb
|
72
91
|
- lib/rubocop/cop/minitest/assert_equal.rb
|
92
|
+
- lib/rubocop/cop/minitest/assert_in_delta.rb
|
73
93
|
- lib/rubocop/cop/minitest/assert_includes.rb
|
74
94
|
- lib/rubocop/cop/minitest/assert_instance_of.rb
|
95
|
+
- lib/rubocop/cop/minitest/assert_kind_of.rb
|
75
96
|
- lib/rubocop/cop/minitest/assert_match.rb
|
76
97
|
- lib/rubocop/cop/minitest/assert_nil.rb
|
98
|
+
- lib/rubocop/cop/minitest/assert_output.rb
|
99
|
+
- lib/rubocop/cop/minitest/assert_path_exists.rb
|
77
100
|
- lib/rubocop/cop/minitest/assert_respond_to.rb
|
101
|
+
- lib/rubocop/cop/minitest/assert_silent.rb
|
78
102
|
- lib/rubocop/cop/minitest/assert_truthy.rb
|
103
|
+
- lib/rubocop/cop/minitest/assert_with_expected_argument.rb
|
104
|
+
- lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb
|
79
105
|
- lib/rubocop/cop/minitest/global_expectations.rb
|
106
|
+
- lib/rubocop/cop/minitest/literal_as_actual_argument.rb
|
107
|
+
- lib/rubocop/cop/minitest/multiple_assertions.rb
|
80
108
|
- lib/rubocop/cop/minitest/refute_empty.rb
|
81
109
|
- lib/rubocop/cop/minitest/refute_equal.rb
|
82
110
|
- lib/rubocop/cop/minitest/refute_false.rb
|
111
|
+
- lib/rubocop/cop/minitest/refute_in_delta.rb
|
83
112
|
- lib/rubocop/cop/minitest/refute_includes.rb
|
84
113
|
- lib/rubocop/cop/minitest/refute_instance_of.rb
|
114
|
+
- lib/rubocop/cop/minitest/refute_kind_of.rb
|
85
115
|
- lib/rubocop/cop/minitest/refute_match.rb
|
86
116
|
- lib/rubocop/cop/minitest/refute_nil.rb
|
117
|
+
- lib/rubocop/cop/minitest/refute_path_exists.rb
|
87
118
|
- lib/rubocop/cop/minitest/refute_respond_to.rb
|
119
|
+
- lib/rubocop/cop/minitest/test_method_name.rb
|
120
|
+
- lib/rubocop/cop/minitest/unspecified_exception.rb
|
88
121
|
- lib/rubocop/cop/minitest_cops.rb
|
89
122
|
- lib/rubocop/cop/mixin/argument_range_helper.rb
|
123
|
+
- lib/rubocop/cop/mixin/in_delta_mixin.rb
|
90
124
|
- lib/rubocop/cop/mixin/minitest_cop_rule.rb
|
125
|
+
- lib/rubocop/cop/mixin/minitest_exploration_helpers.rb
|
91
126
|
- lib/rubocop/minitest.rb
|
92
127
|
- lib/rubocop/minitest/inject.rb
|
93
128
|
- lib/rubocop/minitest/version.rb
|
94
|
-
- manual/cops.md
|
95
|
-
- manual/cops_minitest.md
|
96
|
-
- manual/index.md
|
97
|
-
- manual/installation.md
|
98
|
-
- manual/usage.md
|
99
129
|
- mkdocs.yml
|
100
130
|
- readthedocs.yml
|
101
131
|
- relnotes/v0.1.0.md
|
132
|
+
- relnotes/v0.10.0.md
|
133
|
+
- relnotes/v0.10.1.md
|
134
|
+
- relnotes/v0.10.2.md
|
135
|
+
- relnotes/v0.10.3.md
|
136
|
+
- relnotes/v0.11.0.md
|
102
137
|
- relnotes/v0.2.0.md
|
103
138
|
- relnotes/v0.2.1.md
|
104
139
|
- relnotes/v0.3.0.md
|
@@ -116,16 +151,16 @@ files:
|
|
116
151
|
- rubocop-minitest.gemspec
|
117
152
|
- tasks/cops_documentation.rake
|
118
153
|
- tasks/cut_release.rake
|
119
|
-
homepage:
|
154
|
+
homepage:
|
120
155
|
licenses:
|
121
156
|
- MIT
|
122
157
|
metadata:
|
123
|
-
homepage_uri: https://docs.rubocop.org/
|
124
|
-
changelog_uri: https://github.com/rubocop
|
125
|
-
source_code_uri: https://github.com/rubocop
|
126
|
-
documentation_uri: https://docs.rubocop.org/
|
127
|
-
bug_tracker_uri: https://github.com/rubocop
|
128
|
-
post_install_message:
|
158
|
+
homepage_uri: https://docs.rubocop.org/rubocop-minitest/
|
159
|
+
changelog_uri: https://github.com/rubocop/rubocop-minitest/blob/master/CHANGELOG.md
|
160
|
+
source_code_uri: https://github.com/rubocop/rubocop-minitest
|
161
|
+
documentation_uri: https://docs.rubocop.org/rubocop-minitest/0.11
|
162
|
+
bug_tracker_uri: https://github.com/rubocop/rubocop-minitest/issues
|
163
|
+
post_install_message:
|
129
164
|
rdoc_options: []
|
130
165
|
require_paths:
|
131
166
|
- lib
|
@@ -140,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
175
|
- !ruby/object:Gem::Version
|
141
176
|
version: '0'
|
142
177
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
144
|
-
signing_key:
|
178
|
+
rubygems_version: 3.2.13
|
179
|
+
signing_key:
|
145
180
|
specification_version: 4
|
146
181
|
summary: Automatic Minitest code style checking tool.
|
147
182
|
test_files: []
|
data/manual/index.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
A [RuboCop](https://github.com/rubocop-hq/rubocop) extension focused on enforcing Minitest best practices and coding conventions.
|