rubocop-minitest 0.10.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +18 -3
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +5 -1
  4. data/.rubocop.yml +5 -1
  5. data/.rubocop_todo.yml +8 -7
  6. data/CHANGELOG.md +95 -50
  7. data/CONTRIBUTING.md +3 -3
  8. data/Gemfile +2 -2
  9. data/LICENSE.txt +1 -1
  10. data/README.md +18 -2
  11. data/Rakefile +1 -1
  12. data/bin/console +2 -0
  13. data/config/default.yml +15 -4
  14. data/docs/antora.yml +1 -1
  15. data/docs/modules/ROOT/pages/cops.adoc +14 -1
  16. data/docs/modules/ROOT/pages/cops_minitest.adoc +79 -8
  17. data/docs/modules/ROOT/pages/index.adoc +1 -1
  18. data/legacy-docs/cops_minitest.md +16 -16
  19. data/legacy-docs/index.md +1 -1
  20. data/lib/rubocop/cop/minitest/assert_empty.rb +1 -1
  21. data/lib/rubocop/cop/minitest/assert_empty_literal.rb +12 -16
  22. data/lib/rubocop/cop/minitest/assert_equal.rb +1 -1
  23. data/lib/rubocop/cop/minitest/assert_in_delta.rb +4 -1
  24. data/lib/rubocop/cop/minitest/assert_includes.rb +1 -1
  25. data/lib/rubocop/cop/minitest/assert_instance_of.rb +1 -1
  26. data/lib/rubocop/cop/minitest/assert_kind_of.rb +1 -1
  27. data/lib/rubocop/cop/minitest/assert_match.rb +1 -1
  28. data/lib/rubocop/cop/minitest/assert_nil.rb +5 -11
  29. data/lib/rubocop/cop/minitest/assert_output.rb +1 -1
  30. data/lib/rubocop/cop/minitest/assert_path_exists.rb +6 -12
  31. data/lib/rubocop/cop/minitest/assert_respond_to.rb +1 -1
  32. data/lib/rubocop/cop/minitest/assert_silent.rb +8 -6
  33. data/lib/rubocop/cop/minitest/assert_truthy.rb +5 -11
  34. data/lib/rubocop/cop/minitest/assert_with_expected_argument.rb +41 -0
  35. data/lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb +1 -1
  36. data/lib/rubocop/cop/minitest/global_expectations.rb +6 -7
  37. data/lib/rubocop/cop/minitest/literal_as_actual_argument.rb +15 -14
  38. data/lib/rubocop/cop/minitest/multiple_assertions.rb +2 -2
  39. data/lib/rubocop/cop/minitest/no_assertions.rb +48 -0
  40. data/lib/rubocop/cop/minitest/refute_empty.rb +1 -1
  41. data/lib/rubocop/cop/minitest/refute_equal.rb +7 -8
  42. data/lib/rubocop/cop/minitest/refute_false.rb +15 -22
  43. data/lib/rubocop/cop/minitest/refute_in_delta.rb +4 -1
  44. data/lib/rubocop/cop/minitest/refute_includes.rb +1 -1
  45. data/lib/rubocop/cop/minitest/refute_instance_of.rb +1 -1
  46. data/lib/rubocop/cop/minitest/refute_kind_of.rb +1 -1
  47. data/lib/rubocop/cop/minitest/refute_match.rb +1 -1
  48. data/lib/rubocop/cop/minitest/refute_nil.rb +4 -8
  49. data/lib/rubocop/cop/minitest/refute_path_exists.rb +6 -12
  50. data/lib/rubocop/cop/minitest/refute_respond_to.rb +1 -1
  51. data/lib/rubocop/cop/minitest/test_method_name.rb +18 -8
  52. data/lib/rubocop/cop/minitest/unspecified_exception.rb +1 -1
  53. data/lib/rubocop/cop/minitest_cops.rb +2 -0
  54. data/lib/rubocop/cop/mixin/in_delta_mixin.rb +5 -15
  55. data/lib/rubocop/cop/mixin/minitest_cop_rule.rb +13 -13
  56. data/lib/rubocop/cop/mixin/minitest_exploration_helpers.rb +27 -3
  57. data/lib/rubocop/minitest/version.rb +8 -1
  58. data/mkdocs.yml +2 -2
  59. data/relnotes/v0.1.0.md +1 -1
  60. data/relnotes/v0.10.0.md +12 -12
  61. data/relnotes/v0.10.1.md +1 -1
  62. data/relnotes/v0.10.2.md +5 -0
  63. data/relnotes/v0.10.3.md +5 -0
  64. data/relnotes/v0.11.0.md +16 -0
  65. data/relnotes/v0.11.1.md +5 -0
  66. data/relnotes/v0.12.0.md +10 -0
  67. data/relnotes/v0.2.0.md +4 -4
  68. data/relnotes/v0.2.1.md +1 -1
  69. data/relnotes/v0.3.0.md +6 -6
  70. data/relnotes/v0.4.0.md +5 -5
  71. data/relnotes/v0.4.1.md +1 -1
  72. data/relnotes/v0.5.0.md +1 -1
  73. data/relnotes/v0.5.1.md +1 -1
  74. data/relnotes/v0.6.0.md +1 -1
  75. data/relnotes/v0.6.1.md +2 -2
  76. data/relnotes/v0.6.2.md +1 -1
  77. data/relnotes/v0.7.0.md +5 -5
  78. data/relnotes/v0.8.0.md +4 -4
  79. data/relnotes/v0.8.1.md +1 -1
  80. data/relnotes/v0.9.0.md +3 -3
  81. data/rubocop-minitest.gemspec +7 -7
  82. data/tasks/cops_documentation.rake +24 -304
  83. metadata +28 -15
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.10.1
4
+ version: 0.12.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: 2020-07-24 00:00:00.000000000 Z
13
+ date: 2021-04-23 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.87'
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.87'
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: []
@@ -94,10 +100,12 @@ files:
94
100
  - lib/rubocop/cop/minitest/assert_respond_to.rb
95
101
  - lib/rubocop/cop/minitest/assert_silent.rb
96
102
  - lib/rubocop/cop/minitest/assert_truthy.rb
103
+ - lib/rubocop/cop/minitest/assert_with_expected_argument.rb
97
104
  - lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb
98
105
  - lib/rubocop/cop/minitest/global_expectations.rb
99
106
  - lib/rubocop/cop/minitest/literal_as_actual_argument.rb
100
107
  - lib/rubocop/cop/minitest/multiple_assertions.rb
108
+ - lib/rubocop/cop/minitest/no_assertions.rb
101
109
  - lib/rubocop/cop/minitest/refute_empty.rb
102
110
  - lib/rubocop/cop/minitest/refute_equal.rb
103
111
  - lib/rubocop/cop/minitest/refute_false.rb
@@ -124,6 +132,11 @@ files:
124
132
  - relnotes/v0.1.0.md
125
133
  - relnotes/v0.10.0.md
126
134
  - relnotes/v0.10.1.md
135
+ - relnotes/v0.10.2.md
136
+ - relnotes/v0.10.3.md
137
+ - relnotes/v0.11.0.md
138
+ - relnotes/v0.11.1.md
139
+ - relnotes/v0.12.0.md
127
140
  - relnotes/v0.2.0.md
128
141
  - relnotes/v0.2.1.md
129
142
  - relnotes/v0.3.0.md
@@ -141,16 +154,16 @@ files:
141
154
  - rubocop-minitest.gemspec
142
155
  - tasks/cops_documentation.rake
143
156
  - tasks/cut_release.rake
144
- homepage:
157
+ homepage:
145
158
  licenses:
146
159
  - MIT
147
160
  metadata:
148
161
  homepage_uri: https://docs.rubocop.org/rubocop-minitest/
149
- changelog_uri: https://github.com/rubocop-hq/rubocop-minitest/blob/master/CHANGELOG.md
150
- source_code_uri: https://github.com/rubocop-hq/rubocop-minitest
151
- documentation_uri: https://docs.rubocop.org/rubocop-minitest/
152
- bug_tracker_uri: https://github.com/rubocop-hq/rubocop-minitest/issues
153
- post_install_message:
162
+ changelog_uri: https://github.com/rubocop/rubocop-minitest/blob/master/CHANGELOG.md
163
+ source_code_uri: https://github.com/rubocop/rubocop-minitest
164
+ documentation_uri: https://docs.rubocop.org/rubocop-minitest/0.12
165
+ bug_tracker_uri: https://github.com/rubocop/rubocop-minitest/issues
166
+ post_install_message:
154
167
  rdoc_options: []
155
168
  require_paths:
156
169
  - lib
@@ -158,15 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
171
  requirements:
159
172
  - - ">="
160
173
  - !ruby/object:Gem::Version
161
- version: 2.4.0
174
+ version: 2.5.0
162
175
  required_rubygems_version: !ruby/object:Gem::Requirement
163
176
  requirements:
164
177
  - - ">="
165
178
  - !ruby/object:Gem::Version
166
179
  version: '0'
167
180
  requirements: []
168
- rubygems_version: 3.1.2
169
- signing_key:
181
+ rubygems_version: 3.2.13
182
+ signing_key:
170
183
  specification_version: 4
171
184
  summary: Automatic Minitest code style checking tool.
172
185
  test_files: []