Skip to content

Commit

Permalink
Suppress InternalAffairs/CopDescription offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed May 13, 2022
1 parent b628ae2 commit 8921aed
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 42 deletions.
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/assert_empty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_empty`
# instead of using `assert(object.empty?)`.
# Enforces the test to use `assert_empty` instead of using `assert(object.empty?)`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_empty_literal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_empty`
# Enforces the test to use `assert_empty`
# instead of using `assert_equal([], object)` or `assert_equal({}, object)`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_equal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `assert_equal(expected, actual)`
# Enforces the use of `assert_equal(expected, actual)`
# over `assert(expected == actual)`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_in_delta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_in_delta`
# Enforces the test to use `assert_in_delta`
# instead of using `assert_equal` to compare floats.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_includes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_includes`
# Enforces the test to use `assert_includes`
# instead of using `assert(collection.include?(object))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_instance_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_instance_of(Class, object)`
# Enforces the test to use `assert_instance_of(Class, object)`
# over `assert(object.instance_of?(Class))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_kind_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_kind_of(Class, object)`
# Enforces the test to use `assert_kind_of(Class, object)`
# over `assert(object.kind_of?(Class))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_match.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_match`
# Enforces the test to use `assert_match`
# instead of using `assert(matcher.match(string))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_nil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_nil` instead of using
# Enforces the test to use `assert_nil` instead of using
# `assert_equal(nil, something)`, `assert(something.nil?)`, or `assert_predicate(something, :nil?)`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks for opportunities to use `assert_output`.
# Checks for opportunities to use `assert_output`.
#
# @example
# # bad
Expand Down
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/assert_path_exists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_path_exists`
# instead of using `assert(File.exist?(path))`.
# Enforces the test to use `assert_path_exists` instead of using `assert(File.exist?(path))`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_predicate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_predicate`
# Enforces the test to use `assert_predicate`
# instead of using `assert(obj.a_predicate_method?)`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_respond_to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `assert_respond_to(object, :do_something)`
# Enforces the use of `assert_respond_to(object, :do_something)`
# over `assert(object.respond_to?(:do_something))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_silent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert_silent { ... }`
# Enforces the test to use `assert_silent { ... }`
# instead of using `assert_output('', '') { ... }`.
#
# @example
Expand Down
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/assert_truthy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `assert(actual)`
# instead of using `assert_equal(true, actual)`.
# Enforces the test to use `assert(actual)` instead of using `assert_equal(true, actual)`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_with_expected_argument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop tries to detect when a user accidentally used
# Tries to detect when a user accidentally used
# `assert` when they meant to use `assert_equal`.
#
# @safety
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks for usage of assertions in lifecycle hooks.
# Checks for usage of assertions in lifecycle hooks.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/global_expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks for deprecated global expectations
# Checks for deprecated global expectations
# and autocorrects them to use expect format.
#
# @example EnforcedStyle: _
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/literal_as_actual_argument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces correct order of expected and
# Enforces correct order of expected and
# actual arguments for `assert_equal`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/multiple_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks if test cases contain too many assertion calls.
# Checks if test cases contain too many assertion calls.
# The maximum allowed assertion calls is configurable.
#
# @example Max: 1
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/no_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks if test cases contain any assertion calls.
# Checks if test cases contain any assertion calls.
#
# @example
# # bad
Expand Down
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/refute_empty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces to use `refute_empty` instead of
# using `refute(object.empty?)`.
# Enforces to use `refute_empty` instead of using `refute(object.empty?)`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_equal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `refute_equal(expected, object)`
# Enforces the use of `refute_equal(expected, object)`
# over `assert(expected != actual)` or `assert(! expected == actual)`.
#
# @example
Expand Down
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/refute_false.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `refute(object)`
# over `assert_equal(false, object)`.
# Enforces the use of `refute(object)` over `assert_equal(false, object)`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_in_delta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_in_delta`
# Enforces the test to use `refute_in_delta`
# instead of using `refute_equal` to compare floats.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_includes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_includes`
# Enforces the test to use `refute_includes`
# instead of using `refute(collection.include?(object))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_instance_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `refute_instance_of(Class, object)`
# Enforces the use of `refute_instance_of(Class, object)`
# over `refute(object.instance_of?(Class))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_kind_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the use of `refute_kind_of(Class, object)`
# Enforces the use of `refute_kind_of(Class, object)`
# over `refute(object.kind_of?(Class))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_match.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_match`
# Enforces the test to use `refute_match`
# instead of using `refute(matcher.match(string))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_nil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_nil` instead of using
# Enforces the test to use `refute_nil` instead of using
# `refute_equal(nil, something)`, `refute(something.nil?)`, or `refute_predicate(something, :nil?)`.
#
# @example
Expand Down
3 changes: 1 addition & 2 deletions lib/rubocop/cop/minitest/refute_path_exists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_path_exists`
# instead of using `refute(File.exist?(path))`.
# Enforces the test to use `refute_path_exists` instead of using `refute(File.exist?(path))`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_predicate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_predicate`
# Enforces the test to use `refute_predicate`
# instead of using `refute(obj.a_predicate_method?)`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/refute_respond_to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces the test to use `refute_respond_to(object, :do_something)`
# Enforces the test to use `refute_respond_to(object, :do_something)`
# over `refute(object.respond_to?(:do_something))`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/test_method_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop enforces that test method names start with `test_` prefix.
# Enforces that test method names start with `test_` prefix.
# It aims to prevent tests that aren't executed by forgetting to start test method name with `test_`.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/unreachable_assertion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks for `assert_raises` has an assertion method at
# Checks for `assert_raises` has an assertion method at
# the bottom of block because the assertion will be never reached.
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/unspecified_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Minitest
# This cop checks for a specified error in `assert_raises`.
# Checks for a specified error in `assert_raises`.
#
# @example
# # bad
Expand Down

0 comments on commit 8921aed

Please sign in to comment.