From 6d781b01fb6bd21f9db5f9ad96fa3af94f2c2162 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 29 Aug 2020 20:59:25 +0900 Subject: [PATCH] Revert "Mark Cops and Formatters as private" This reverts commit 90d5333f4c150bfe33d07805a12879b7fa4d6201. I was late to participate in the discussion below. https://github.com/rubocop-hq/rubocop/pull/8501 Cop names are specified by users to .rubocop.yml, `--only` option, and etc. IMHO, the names and behaviors cannot be changed without impacting users. Users should refrain from depend on it as an implementation API, but I don't think it's hidden from users. --- lib/rubocop/cop/bundler/duplicated_gem.rb | 2 -- lib/rubocop/cop/bundler/gem_comment.rb | 1 - .../cop/bundler/insecure_protocol_source.rb | 2 -- lib/rubocop/cop/bundler/ordered_gems.rb | 2 -- lib/rubocop/cop/cop.rb | 2 -- .../cop/gemspec/duplicated_assignment.rb | 2 -- .../cop/gemspec/ordered_dependencies.rb | 2 -- .../cop/gemspec/required_ruby_version.rb | 2 -- .../cop/gemspec/ruby_version_globals_usage.rb | 1 - .../cop/internal_affairs/method_name_equal.rb | 1 - .../internal_affairs/node_destructuring.rb | 2 -- .../internal_affairs/node_type_predicate.rb | 1 - .../offense_location_keyword.rb | 2 -- .../redundant_location_argument.rb | 1 - .../redundant_message_argument.rb | 1 - .../useless_message_assertion.rb | 1 - .../cop/layout/access_modifier_indentation.rb | 2 -- lib/rubocop/cop/layout/argument_alignment.rb | 2 -- lib/rubocop/cop/layout/array_alignment.rb | 2 -- .../cop/layout/assignment_indentation.rb | 2 -- lib/rubocop/cop/layout/block_alignment.rb | 2 -- lib/rubocop/cop/layout/block_end_newline.rb | 2 -- lib/rubocop/cop/layout/case_indentation.rb | 2 -- lib/rubocop/cop/layout/class_structure.rb | 2 -- .../cop/layout/closing_heredoc_indentation.rb | 1 - .../layout/closing_parenthesis_indentation.rb | 1 - lib/rubocop/cop/layout/comment_indentation.rb | 1 - lib/rubocop/cop/layout/condition_position.rb | 2 -- lib/rubocop/cop/layout/def_end_alignment.rb | 2 -- lib/rubocop/cop/layout/dot_position.rb | 2 -- lib/rubocop/cop/layout/else_alignment.rb | 2 -- lib/rubocop/cop/layout/empty_comment.rb | 1 - .../layout/empty_line_after_guard_clause.rb | 2 -- .../layout/empty_line_after_magic_comment.rb | 2 -- .../cop/layout/empty_line_between_defs.rb | 2 -- lib/rubocop/cop/layout/empty_lines.rb | 1 - .../empty_lines_around_access_modifier.rb | 1 - .../layout/empty_lines_around_arguments.rb | 1 - .../empty_lines_around_attribute_accessor.rb | 1 - .../layout/empty_lines_around_begin_body.rb | 2 -- .../layout/empty_lines_around_block_body.rb | 2 -- .../layout/empty_lines_around_class_body.rb | 2 -- ...ines_around_exception_handling_keywords.rb | 2 -- .../layout/empty_lines_around_method_body.rb | 2 -- .../layout/empty_lines_around_module_body.rb | 2 -- lib/rubocop/cop/layout/end_alignment.rb | 2 -- lib/rubocop/cop/layout/end_of_line.rb | 1 - lib/rubocop/cop/layout/extra_spacing.rb | 2 -- .../cop/layout/first_argument_indentation.rb | 1 - .../layout/first_array_element_indentation.rb | 2 -- .../layout/first_array_element_line_break.rb | 1 - .../layout/first_hash_element_indentation.rb | 2 -- .../layout/first_hash_element_line_break.rb | 2 -- .../first_method_argument_line_break.rb | 2 -- .../first_method_parameter_line_break.rb | 2 -- .../cop/layout/first_parameter_indentation.rb | 2 -- lib/rubocop/cop/layout/hash_alignment.rb | 1 - .../heredoc_argument_closing_parenthesis.rb | 1 - lib/rubocop/cop/layout/heredoc_indentation.rb | 2 -- .../cop/layout/indentation_consistency.rb | 2 -- lib/rubocop/cop/layout/indentation_style.rb | 2 -- lib/rubocop/cop/layout/indentation_width.rb | 2 -- lib/rubocop/cop/layout/initial_indentation.rb | 1 - .../cop/layout/leading_comment_space.rb | 1 - lib/rubocop/cop/layout/leading_empty_lines.rb | 2 -- lib/rubocop/cop/layout/line_length.rb | 2 -- .../layout/multiline_array_brace_layout.rb | 2 -- .../cop/layout/multiline_array_line_breaks.rb | 2 -- .../cop/layout/multiline_assignment_layout.rb | 2 -- .../cop/layout/multiline_block_layout.rb | 2 -- .../cop/layout/multiline_hash_brace_layout.rb | 2 -- .../layout/multiline_hash_key_line_breaks.rb | 2 -- .../multiline_method_argument_line_breaks.rb | 2 -- .../multiline_method_call_brace_layout.rb | 2 -- .../multiline_method_call_indentation.rb | 2 -- ...ultiline_method_definition_brace_layout.rb | 2 -- .../layout/multiline_operation_indentation.rb | 1 - lib/rubocop/cop/layout/parameter_alignment.rb | 2 -- .../cop/layout/rescue_ensure_alignment.rb | 2 -- lib/rubocop/cop/layout/space_after_colon.rb | 2 -- lib/rubocop/cop/layout/space_after_comma.rb | 2 -- .../cop/layout/space_after_method_name.rb | 2 -- lib/rubocop/cop/layout/space_after_not.rb | 2 -- .../cop/layout/space_after_semicolon.rb | 2 -- .../layout/space_around_block_parameters.rb | 2 -- ...pace_around_equals_in_parameter_default.rb | 2 -- .../cop/layout/space_around_keyword.rb | 2 -- .../space_around_method_call_operator.rb | 1 - .../cop/layout/space_around_operators.rb | 2 -- .../cop/layout/space_before_block_braces.rb | 2 -- lib/rubocop/cop/layout/space_before_comma.rb | 1 - .../cop/layout/space_before_comment.rb | 2 -- .../cop/layout/space_before_first_arg.rb | 1 - .../cop/layout/space_before_semicolon.rb | 2 -- .../cop/layout/space_in_lambda_literal.rb | 2 -- .../space_inside_array_literal_brackets.rb | 1 - .../space_inside_array_percent_literal.rb | 2 -- .../cop/layout/space_inside_block_braces.rb | 1 - .../space_inside_hash_literal_braces.rb | 1 - lib/rubocop/cop/layout/space_inside_parens.rb | 1 - ...space_inside_percent_literal_delimiters.rb | 2 -- .../cop/layout/space_inside_range_literal.rb | 2 -- .../layout/space_inside_reference_brackets.rb | 1 - .../space_inside_string_interpolation.rb | 2 -- .../cop/layout/trailing_empty_lines.rb | 1 - lib/rubocop/cop/layout/trailing_whitespace.rb | 1 - .../cop/lint/ambiguous_block_association.rb | 2 -- lib/rubocop/cop/lint/ambiguous_operator.rb | 2 -- .../cop/lint/ambiguous_regexp_literal.rb | 2 -- .../cop/lint/assignment_in_condition.rb | 1 - lib/rubocop/cop/lint/big_decimal_new.rb | 1 - ...binary_operator_with_identical_operands.rb | 1 - lib/rubocop/cop/lint/boolean_symbol.rb | 2 -- .../cop/lint/circular_argument_reference.rb | 2 -- lib/rubocop/cop/lint/constant_resolution.rb | 1 - lib/rubocop/cop/lint/debugger.rb | 2 -- .../cop/lint/deprecated_class_methods.rb | 2 -- .../cop/lint/deprecated_open_ssl_constant.rb | 1 - .../disjunctive_assignment_in_constructor.rb | 2 -- .../cop/lint/duplicate_case_condition.rb | 2 -- .../cop/lint/duplicate_elsif_condition.rb | 1 - lib/rubocop/cop/lint/duplicate_hash_key.rb | 2 -- lib/rubocop/cop/lint/duplicate_methods.rb | 2 -- lib/rubocop/cop/lint/duplicate_require.rb | 1 - .../cop/lint/duplicate_rescue_exception.rb | 1 - .../cop/lint/each_with_object_argument.rb | 2 -- lib/rubocop/cop/lint/else_layout.rb | 2 -- .../cop/lint/empty_conditional_body.rb | 1 - lib/rubocop/cop/lint/empty_ensure.rb | 2 -- lib/rubocop/cop/lint/empty_expression.rb | 2 -- lib/rubocop/cop/lint/empty_file.rb | 1 - lib/rubocop/cop/lint/empty_interpolation.rb | 2 -- lib/rubocop/cop/lint/empty_when.rb | 1 - lib/rubocop/cop/lint/ensure_return.rb | 2 -- lib/rubocop/cop/lint/erb_new_arguments.rb | 1 - lib/rubocop/cop/lint/flip_flop.rb | 2 -- lib/rubocop/cop/lint/float_comparison.rb | 1 - lib/rubocop/cop/lint/float_out_of_range.rb | 2 -- .../cop/lint/format_parameter_mismatch.rb | 2 -- .../cop/lint/heredoc_method_call_position.rb | 1 - .../cop/lint/implicit_string_concatenation.rb | 2 -- .../cop/lint/ineffective_access_modifier.rb | 2 -- lib/rubocop/cop/lint/inherit_exception.rb | 2 -- lib/rubocop/cop/lint/interpolation_check.rb | 2 -- lib/rubocop/cop/lint/literal_as_condition.rb | 2 -- .../cop/lint/literal_in_interpolation.rb | 2 -- lib/rubocop/cop/lint/loop.rb | 2 -- .../cop/lint/missing_cop_enable_directive.rb | 1 - lib/rubocop/cop/lint/missing_super.rb | 1 - .../cop/lint/mixed_regexp_capture_types.rb | 1 - lib/rubocop/cop/lint/multiple_comparison.rb | 2 -- .../cop/lint/nested_method_definition.rb | 2 -- .../cop/lint/nested_percent_literal.rb | 2 -- .../cop/lint/next_without_accumulator.rb | 2 -- .../lint/non_deterministic_require_order.rb | 1 - .../cop/lint/non_local_exit_from_iterator.rb | 1 - lib/rubocop/cop/lint/number_conversion.rb | 2 -- .../cop/lint/ordered_magic_comments.rb | 1 - .../cop/lint/out_of_range_regexp_ref.rb | 1 - .../lint/parentheses_as_grouped_expression.rb | 2 -- lib/rubocop/cop/lint/percent_string_array.rb | 2 -- lib/rubocop/cop/lint/percent_symbol_array.rb | 2 -- lib/rubocop/cop/lint/raise_exception.rb | 2 -- lib/rubocop/cop/lint/rand_one.rb | 2 -- .../lint/redundant_cop_disable_directive.rb | 2 -- .../lint/redundant_cop_enable_directive.rb | 2 -- .../cop/lint/redundant_require_statement.rb | 2 -- .../cop/lint/redundant_splat_expansion.rb | 2 -- .../cop/lint/redundant_string_coercion.rb | 2 -- lib/rubocop/cop/lint/redundant_with_index.rb | 1 - lib/rubocop/cop/lint/redundant_with_object.rb | 1 - lib/rubocop/cop/lint/regexp_as_condition.rb | 2 -- lib/rubocop/cop/lint/require_parentheses.rb | 2 -- lib/rubocop/cop/lint/rescue_exception.rb | 2 -- lib/rubocop/cop/lint/rescue_type.rb | 2 -- .../cop/lint/return_in_void_context.rb | 2 -- lib/rubocop/cop/lint/safe_navigation_chain.rb | 2 -- .../cop/lint/safe_navigation_consistency.rb | 1 - .../cop/lint/safe_navigation_with_empty.rb | 1 - lib/rubocop/cop/lint/script_permission.rb | 1 - lib/rubocop/cop/lint/self_assignment.rb | 1 - .../cop/lint/send_with_mixin_argument.rb | 1 - lib/rubocop/cop/lint/shadowed_argument.rb | 1 - lib/rubocop/cop/lint/shadowed_exception.rb | 1 - .../lint/shadowing_outer_local_variable.rb | 2 -- lib/rubocop/cop/lint/struct_new_override.rb | 1 - lib/rubocop/cop/lint/suppressed_exception.rb | 2 -- lib/rubocop/cop/lint/syntax.rb | 2 -- lib/rubocop/cop/lint/to_json.rb | 1 - .../lint/top_level_return_with_argument.rb | 2 -- ...trailing_comma_in_attribute_declaration.rb | 1 - .../lint/underscore_prefixed_variable_name.rb | 1 - lib/rubocop/cop/lint/unified_integer.rb | 2 -- lib/rubocop/cop/lint/unreachable_code.rb | 2 -- lib/rubocop/cop/lint/unreachable_loop.rb | 1 - lib/rubocop/cop/lint/unused_block_argument.rb | 1 - .../cop/lint/unused_method_argument.rb | 1 - lib/rubocop/cop/lint/uri_escape_unescape.rb | 2 -- lib/rubocop/cop/lint/uri_regexp.rb | 1 - .../cop/lint/useless_access_modifier.rb | 2 -- lib/rubocop/cop/lint/useless_assignment.rb | 2 -- .../cop/lint/useless_else_without_rescue.rb | 2 -- .../cop/lint/useless_method_definition.rb | 1 - lib/rubocop/cop/lint/useless_setter_call.rb | 2 -- lib/rubocop/cop/lint/void.rb | 2 -- lib/rubocop/cop/metrics/abc_size.rb | 2 -- lib/rubocop/cop/metrics/block_length.rb | 2 -- lib/rubocop/cop/metrics/block_nesting.rb | 2 -- lib/rubocop/cop/metrics/class_length.rb | 1 - .../cop/metrics/cyclomatic_complexity.rb | 2 -- lib/rubocop/cop/metrics/method_length.rb | 1 - lib/rubocop/cop/metrics/module_length.rb | 1 - lib/rubocop/cop/metrics/parameter_lists.rb | 2 -- lib/rubocop/cop/migration/department_name.rb | 2 -- .../cop/naming/accessor_method_name.rb | 2 -- lib/rubocop/cop/naming/ascii_identifiers.rb | 1 - .../naming/binary_operator_parameter_name.rb | 2 -- .../cop/naming/block_parameter_name.rb | 2 -- .../cop/naming/class_and_module_camel_case.rb | 2 -- lib/rubocop/cop/naming/constant_name.rb | 2 -- lib/rubocop/cop/naming/file_name.rb | 2 -- .../cop/naming/heredoc_delimiter_case.rb | 2 -- .../cop/naming/heredoc_delimiter_naming.rb | 2 -- .../naming/memoized_instance_variable_name.rb | 2 -- lib/rubocop/cop/naming/method_name.rb | 2 -- .../cop/naming/method_parameter_name.rb | 2 -- lib/rubocop/cop/naming/predicate_name.rb | 2 -- .../rescued_exceptions_variable_name.rb | 1 - lib/rubocop/cop/naming/variable_name.rb | 2 -- lib/rubocop/cop/naming/variable_number.rb | 2 -- lib/rubocop/cop/security/eval.rb | 2 -- lib/rubocop/cop/security/json_load.rb | 1 - lib/rubocop/cop/security/marshal_load.rb | 1 - lib/rubocop/cop/security/open.rb | 2 -- lib/rubocop/cop/security/yaml_load.rb | 1 - .../cop/style/access_modifier_declarations.rb | 2 -- lib/rubocop/cop/style/accessor_grouping.rb | 1 - lib/rubocop/cop/style/alias.rb | 2 -- lib/rubocop/cop/style/and_or.rb | 2 -- lib/rubocop/cop/style/array_coercion.rb | 1 - lib/rubocop/cop/style/array_join.rb | 1 - lib/rubocop/cop/style/ascii_comments.rb | 2 -- lib/rubocop/cop/style/attr.rb | 1 - .../cop/style/auto_resource_cleanup.rb | 2 -- .../cop/style/bare_percent_literals.rb | 1 - lib/rubocop/cop/style/begin_block.rb | 1 - .../cop/style/bisected_attr_accessor.rb | 1 - lib/rubocop/cop/style/block_comments.rb | 1 - lib/rubocop/cop/style/block_delimiters.rb | 1 - lib/rubocop/cop/style/case_equality.rb | 1 - lib/rubocop/cop/style/case_like_if.rb | 1 - lib/rubocop/cop/style/character_literal.rb | 2 -- .../cop/style/class_and_module_children.rb | 2 -- lib/rubocop/cop/style/class_check.rb | 1 - lib/rubocop/cop/style/class_methods.rb | 2 -- .../cop/style/class_methods_definitions.rb | 1 - lib/rubocop/cop/style/class_vars.rb | 1 - lib/rubocop/cop/style/collection_methods.rb | 1 - lib/rubocop/cop/style/colon_method_call.rb | 1 - .../cop/style/colon_method_definition.rb | 1 - lib/rubocop/cop/style/combinable_loops.rb | 1 - lib/rubocop/cop/style/command_literal.rb | 2 -- lib/rubocop/cop/style/comment_annotation.rb | 2 -- lib/rubocop/cop/style/commented_keyword.rb | 2 -- .../cop/style/conditional_assignment.rb | 2 -- lib/rubocop/cop/style/constant_visibility.rb | 1 - lib/rubocop/cop/style/copyright.rb | 1 - lib/rubocop/cop/style/date_time.rb | 2 -- lib/rubocop/cop/style/def_with_parentheses.rb | 2 -- lib/rubocop/cop/style/dir.rb | 2 -- ...sable_cops_within_source_code_directive.rb | 1 - lib/rubocop/cop/style/documentation.rb | 1 - lib/rubocop/cop/style/documentation_method.rb | 1 - .../cop/style/double_cop_disable_directive.rb | 1 - lib/rubocop/cop/style/double_negation.rb | 2 -- lib/rubocop/cop/style/each_for_simple_loop.rb | 2 -- lib/rubocop/cop/style/each_with_object.rb | 2 -- .../cop/style/empty_block_parameter.rb | 2 -- lib/rubocop/cop/style/empty_case_condition.rb | 2 -- lib/rubocop/cop/style/empty_else.rb | 2 -- .../cop/style/empty_lambda_parameter.rb | 2 -- lib/rubocop/cop/style/empty_literal.rb | 2 -- lib/rubocop/cop/style/empty_method.rb | 2 -- lib/rubocop/cop/style/encoding.rb | 2 -- lib/rubocop/cop/style/end_block.rb | 1 - lib/rubocop/cop/style/eval_with_location.rb | 2 -- lib/rubocop/cop/style/even_odd.rb | 2 -- .../cop/style/expand_path_arguments.rb | 1 - .../cop/style/explicit_block_argument.rb | 1 - lib/rubocop/cop/style/exponential_notation.rb | 1 - lib/rubocop/cop/style/float_division.rb | 2 -- lib/rubocop/cop/style/for.rb | 1 - lib/rubocop/cop/style/format_string.rb | 1 - lib/rubocop/cop/style/format_string_token.rb | 2 -- .../style/frozen_string_literal_comment.rb | 2 -- lib/rubocop/cop/style/global_std_stream.rb | 1 - lib/rubocop/cop/style/global_vars.rb | 2 -- lib/rubocop/cop/style/guard_clause.rb | 2 -- .../cop/style/hash_as_last_array_item.rb | 1 - lib/rubocop/cop/style/hash_each_methods.rb | 2 -- lib/rubocop/cop/style/hash_like_case.rb | 1 - lib/rubocop/cop/style/hash_syntax.rb | 2 -- lib/rubocop/cop/style/hash_transform_keys.rb | 2 -- .../cop/style/hash_transform_values.rb | 2 -- .../style/identical_conditional_branches.rb | 2 -- lib/rubocop/cop/style/if_inside_else.rb | 1 - lib/rubocop/cop/style/if_unless_modifier.rb | 2 -- .../style/if_unless_modifier_of_if_unless.rb | 2 -- lib/rubocop/cop/style/if_with_semicolon.rb | 1 - .../cop/style/implicit_runtime_error.rb | 2 -- lib/rubocop/cop/style/infinite_loop.rb | 2 -- lib/rubocop/cop/style/inline_comment.rb | 2 -- lib/rubocop/cop/style/inverse_methods.rb | 2 -- lib/rubocop/cop/style/ip_addresses.rb | 2 -- .../cop/style/keyword_parameters_order.rb | 1 - lib/rubocop/cop/style/lambda.rb | 2 -- lib/rubocop/cop/style/lambda_call.rb | 2 -- .../cop/style/line_end_concatenation.rb | 1 - .../method_call_with_args_parentheses.rb | 2 -- .../method_call_without_args_parentheses.rb | 2 -- .../style/method_called_on_do_end_block.rb | 2 -- .../cop/style/method_def_parentheses.rb | 2 -- lib/rubocop/cop/style/min_max.rb | 2 -- lib/rubocop/cop/style/missing_else.rb | 2 -- .../cop/style/missing_respond_to_missing.rb | 1 - lib/rubocop/cop/style/mixin_grouping.rb | 2 -- lib/rubocop/cop/style/mixin_usage.rb | 2 -- lib/rubocop/cop/style/module_function.rb | 2 -- .../cop/style/multiline_block_chain.rb | 2 -- .../cop/style/multiline_if_modifier.rb | 2 -- lib/rubocop/cop/style/multiline_if_then.rb | 2 -- .../cop/style/multiline_memoization.rb | 2 -- .../cop/style/multiline_method_signature.rb | 1 - .../cop/style/multiline_ternary_operator.rb | 2 -- lib/rubocop/cop/style/multiline_when_then.rb | 1 - lib/rubocop/cop/style/multiple_comparison.rb | 2 -- lib/rubocop/cop/style/mutable_constant.rb | 2 -- lib/rubocop/cop/style/negated_if.rb | 2 -- lib/rubocop/cop/style/negated_unless.rb | 2 -- lib/rubocop/cop/style/negated_while.rb | 2 -- lib/rubocop/cop/style/nested_modifier.rb | 2 -- .../cop/style/nested_parenthesized_calls.rb | 2 -- .../cop/style/nested_ternary_operator.rb | 2 -- lib/rubocop/cop/style/next.rb | 2 -- lib/rubocop/cop/style/nil_comparison.rb | 1 - lib/rubocop/cop/style/non_nil_check.rb | 1 - lib/rubocop/cop/style/not.rb | 1 - .../cop/style/numeric_literal_prefix.rb | 2 -- lib/rubocop/cop/style/numeric_literals.rb | 1 - lib/rubocop/cop/style/numeric_predicate.rb | 2 -- lib/rubocop/cop/style/one_line_conditional.rb | 2 -- lib/rubocop/cop/style/option_hash.rb | 2 -- lib/rubocop/cop/style/optional_arguments.rb | 2 -- .../cop/style/optional_boolean_parameter.rb | 1 - lib/rubocop/cop/style/or_assignment.rb | 2 -- lib/rubocop/cop/style/parallel_assignment.rb | 2 -- .../cop/style/parentheses_around_condition.rb | 1 - .../cop/style/percent_literal_delimiters.rb | 2 -- lib/rubocop/cop/style/percent_q_literals.rb | 2 -- lib/rubocop/cop/style/perl_backrefs.rb | 2 -- .../cop/style/preferred_hash_methods.rb | 2 -- lib/rubocop/cop/style/proc.rb | 1 - lib/rubocop/cop/style/raise_args.rb | 2 -- lib/rubocop/cop/style/random_with_offset.rb | 2 -- lib/rubocop/cop/style/redundant_assignment.rb | 1 - lib/rubocop/cop/style/redundant_begin.rb | 2 -- lib/rubocop/cop/style/redundant_capital_w.rb | 2 -- lib/rubocop/cop/style/redundant_condition.rb | 1 - .../cop/style/redundant_conditional.rb | 2 -- lib/rubocop/cop/style/redundant_exception.rb | 2 -- .../cop/style/redundant_fetch_block.rb | 1 - .../redundant_file_extension_in_require.rb | 1 - lib/rubocop/cop/style/redundant_freeze.rb | 2 -- .../cop/style/redundant_interpolation.rb | 2 -- .../cop/style/redundant_parentheses.rb | 1 - lib/rubocop/cop/style/redundant_percent_q.rb | 1 - .../style/redundant_regexp_character_class.rb | 2 -- .../cop/style/redundant_regexp_escape.rb | 2 -- lib/rubocop/cop/style/redundant_return.rb | 1 - lib/rubocop/cop/style/redundant_self.rb | 2 -- .../cop/style/redundant_self_assignment.rb | 1 - lib/rubocop/cop/style/redundant_sort.rb | 1 - lib/rubocop/cop/style/redundant_sort_by.rb | 2 -- lib/rubocop/cop/style/regexp_literal.rb | 2 -- lib/rubocop/cop/style/rescue_modifier.rb | 2 -- .../cop/style/rescue_standard_error.rb | 2 -- lib/rubocop/cop/style/return_nil.rb | 2 -- lib/rubocop/cop/style/safe_navigation.rb | 2 -- lib/rubocop/cop/style/sample.rb | 2 -- lib/rubocop/cop/style/self_assignment.rb | 2 -- lib/rubocop/cop/style/semicolon.rb | 2 -- lib/rubocop/cop/style/send.rb | 2 -- lib/rubocop/cop/style/signal_exception.rb | 2 -- lib/rubocop/cop/style/single_argument_dig.rb | 1 - .../cop/style/single_line_block_params.rb | 2 -- lib/rubocop/cop/style/single_line_methods.rb | 1 - lib/rubocop/cop/style/slicing_with_range.rb | 2 -- .../cop/style/sole_nested_conditional.rb | 1 - lib/rubocop/cop/style/special_global_vars.rb | 1 - .../cop/style/stabby_lambda_parentheses.rb | 2 -- lib/rubocop/cop/style/stderr_puts.rb | 1 - lib/rubocop/cop/style/string_concatenation.rb | 1 - lib/rubocop/cop/style/string_hash_keys.rb | 2 -- lib/rubocop/cop/style/string_literals.rb | 2 -- .../style/string_literals_in_interpolation.rb | 2 -- lib/rubocop/cop/style/string_methods.rb | 2 -- lib/rubocop/cop/style/strip.rb | 2 -- lib/rubocop/cop/style/struct_inheritance.rb | 2 -- lib/rubocop/cop/style/symbol_array.rb | 2 -- lib/rubocop/cop/style/symbol_literal.rb | 2 -- lib/rubocop/cop/style/symbol_proc.rb | 2 -- lib/rubocop/cop/style/ternary_parentheses.rb | 1 - .../cop/style/trailing_body_on_class.rb | 1 - .../trailing_body_on_method_definition.rb | 1 - .../cop/style/trailing_body_on_module.rb | 1 - .../cop/style/trailing_comma_in_arguments.rb | 2 -- .../style/trailing_comma_in_array_literal.rb | 2 -- .../cop/style/trailing_comma_in_block_args.rb | 2 -- .../style/trailing_comma_in_hash_literal.rb | 2 -- .../style/trailing_method_end_statement.rb | 1 - .../cop/style/trailing_underscore_variable.rb | 1 - lib/rubocop/cop/style/trivial_accessors.rb | 2 -- lib/rubocop/cop/style/unless_else.rb | 2 -- lib/rubocop/cop/style/unpack_first.rb | 1 - .../cop/style/variable_interpolation.rb | 2 -- lib/rubocop/cop/style/when_then.rb | 2 -- lib/rubocop/cop/style/while_until_do.rb | 2 -- lib/rubocop/cop/style/while_until_modifier.rb | 2 -- lib/rubocop/cop/style/word_array.rb | 2 -- lib/rubocop/cop/style/yoda_condition.rb | 2 -- .../cop/style/zero_length_predicate.rb | 2 -- lib/rubocop/cop/variable_force/branch.rb | 22 ------------------- .../formatter/auto_gen_config_formatter.rb | 2 -- .../formatter/clang_style_formatter.rb | 2 -- .../formatter/disabled_config_formatter.rb | 2 -- .../formatter/emacs_style_formatter.rb | 2 -- lib/rubocop/formatter/file_list_formatter.rb | 2 -- .../formatter/fuubar_style_formatter.rb | 2 -- lib/rubocop/formatter/html_formatter.rb | 2 -- lib/rubocop/formatter/json_formatter.rb | 2 -- lib/rubocop/formatter/junit_formatter.rb | 2 -- .../formatter/offense_count_formatter.rb | 2 -- lib/rubocop/formatter/pacman_formatter.rb | 2 -- lib/rubocop/formatter/progress_formatter.rb | 2 -- lib/rubocop/formatter/quiet_formatter.rb | 2 -- .../formatter/simple_text_formatter.rb | 2 -- lib/rubocop/formatter/tap_formatter.rb | 2 -- .../formatter/worst_offenders_formatter.rb | 2 -- 448 files changed, 767 deletions(-) diff --git a/lib/rubocop/cop/bundler/duplicated_gem.rb b/lib/rubocop/cop/bundler/duplicated_gem.rb index ee98275042e..67f69292c87 100644 --- a/lib/rubocop/cop/bundler/duplicated_gem.rb +++ b/lib/rubocop/cop/bundler/duplicated_gem.rb @@ -25,8 +25,6 @@ module Bundler # # # good # gem 'rubocop', groups: [:development, :test] - # - # @api private class DuplicatedGem < Cop include RangeHelp diff --git a/lib/rubocop/cop/bundler/gem_comment.rb b/lib/rubocop/cop/bundler/gem_comment.rb index 7ad96b4eb08..8e85ef71f99 100644 --- a/lib/rubocop/cop/bundler/gem_comment.rb +++ b/lib/rubocop/cop/bundler/gem_comment.rb @@ -58,7 +58,6 @@ module Bundler # # Version 2.1 introduces breaking change baz # gem 'bar', '< 2.1' # - # @api private class GemComment < Cop include DefNode diff --git a/lib/rubocop/cop/bundler/insecure_protocol_source.rb b/lib/rubocop/cop/bundler/insecure_protocol_source.rb index 4da8969dbdf..4eed7ef3a86 100644 --- a/lib/rubocop/cop/bundler/insecure_protocol_source.rb +++ b/lib/rubocop/cop/bundler/insecure_protocol_source.rb @@ -25,8 +25,6 @@ module Bundler # # good # source 'https://rubygems.org' # strongly recommended # source 'http://rubygems.org' - # - # @api private class InsecureProtocolSource < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/bundler/ordered_gems.rb b/lib/rubocop/cop/bundler/ordered_gems.rb index ced12ed4c08..c6d40a60e7f 100644 --- a/lib/rubocop/cop/bundler/ordered_gems.rb +++ b/lib/rubocop/cop/bundler/ordered_gems.rb @@ -24,8 +24,6 @@ module Bundler # gem 'rubocop' # # For tests # gem 'rspec' - # - # @api private class OrderedGems < Cop include ConfigurableEnforcedStyle include OrderedGemNode diff --git a/lib/rubocop/cop/cop.rb b/lib/rubocop/cop/cop.rb index b9fd7202bec..ac1ee8c0aec 100644 --- a/lib/rubocop/cop/cop.rb +++ b/lib/rubocop/cop/cop.rb @@ -8,8 +8,6 @@ module Cop # @deprecated Use Cop::Base instead # Legacy scaffold for Cops. # See https://docs.rubocop.org/rubocop/cop_api_v1_changelog.html - # - # @api private class Cop < Base attr_reader :offenses diff --git a/lib/rubocop/cop/gemspec/duplicated_assignment.rb b/lib/rubocop/cop/gemspec/duplicated_assignment.rb index 5583f30c64a..117e171930c 100644 --- a/lib/rubocop/cop/gemspec/duplicated_assignment.rb +++ b/lib/rubocop/cop/gemspec/duplicated_assignment.rb @@ -34,8 +34,6 @@ module Gemspec # spec.add_runtime_dependency('parallel', '~> 1.10') # spec.add_runtime_dependency('parser', '>= 2.3.3.1', '< 3.0') # end - # - # @api private class DuplicatedAssignment < Cop include RangeHelp diff --git a/lib/rubocop/cop/gemspec/ordered_dependencies.rb b/lib/rubocop/cop/gemspec/ordered_dependencies.rb index 34e071c2831..071e3cc5068 100644 --- a/lib/rubocop/cop/gemspec/ordered_dependencies.rb +++ b/lib/rubocop/cop/gemspec/ordered_dependencies.rb @@ -50,8 +50,6 @@ module Gemspec # spec.add_dependency 'rubocop' # # For tests # spec.add_dependency 'rspec' - # - # @api private class OrderedDependencies < Cop include ConfigurableEnforcedStyle include OrderedGemNode diff --git a/lib/rubocop/cop/gemspec/required_ruby_version.rb b/lib/rubocop/cop/gemspec/required_ruby_version.rb index cef11bf916a..aeed941b855 100644 --- a/lib/rubocop/cop/gemspec/required_ruby_version.rb +++ b/lib/rubocop/cop/gemspec/required_ruby_version.rb @@ -45,8 +45,6 @@ module Gemspec # Gem::Specification.new do |spec| # spec.required_ruby_version = '~> 2.5' # end - # - # @api private class RequiredRubyVersion < Cop include RangeHelp diff --git a/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb b/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb index 922dd36d04d..ad46145c2eb 100644 --- a/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +++ b/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb @@ -25,7 +25,6 @@ module Gemspec # spec.add_runtime_dependency 'gem_a' # end # - # @api private class RubyVersionGlobalsUsage < Cop MSG = 'Do not use `RUBY_VERSION` in gemspec file.' diff --git a/lib/rubocop/cop/internal_affairs/method_name_equal.rb b/lib/rubocop/cop/internal_affairs/method_name_equal.rb index fb349c573fe..db04e0f4a62 100644 --- a/lib/rubocop/cop/internal_affairs/method_name_equal.rb +++ b/lib/rubocop/cop/internal_affairs/method_name_equal.rb @@ -12,7 +12,6 @@ module InternalAffairs # # good # node.method?(:do_something) # - # @api private class MethodNameEqual < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/internal_affairs/node_destructuring.rb b/lib/rubocop/cop/internal_affairs/node_destructuring.rb index d16acc9fa4d..38156260f7c 100644 --- a/lib/rubocop/cop/internal_affairs/node_destructuring.rb +++ b/lib/rubocop/cop/internal_affairs/node_destructuring.rb @@ -15,8 +15,6 @@ module InternalAffairs # # # good # method_name = send_node.method_name - # - # @api private class NodeDestructuring < Base MSG = 'Use the methods provided with the node extensions instead ' \ 'of manually destructuring nodes.' diff --git a/lib/rubocop/cop/internal_affairs/node_type_predicate.rb b/lib/rubocop/cop/internal_affairs/node_type_predicate.rb index 2bb71052941..c73777af031 100644 --- a/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +++ b/lib/rubocop/cop/internal_affairs/node_type_predicate.rb @@ -13,7 +13,6 @@ module InternalAffairs # # good # node.send_type? # - # @api private class NodeTypePredicate < Base extend AutoCorrector diff --git a/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb b/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb index bdead98c8e3..e12f532275c 100644 --- a/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +++ b/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb @@ -13,8 +13,6 @@ module InternalAffairs # # # good # add_offense(node, location: :selector) - # - # @api private class OffenseLocationKeyword < Base extend AutoCorrector diff --git a/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb b/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb index af0c7f91a87..6affefba727 100644 --- a/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +++ b/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb @@ -16,7 +16,6 @@ module InternalAffairs # add_offense(node) # add_offense(node, location: :selector) # - # @api private class RedundantLocationArgument < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb b/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb index b0cd7b74198..79005782e4b 100644 --- a/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +++ b/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb @@ -19,7 +19,6 @@ module InternalAffairs # add_offense(node, message: CUSTOM_MSG) # add_offense(node, message: message(other_node)) # - # @api private class RedundantMessageArgument < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb b/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb index e335121b0a0..ceb07dbcfbb 100644 --- a/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +++ b/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb @@ -13,7 +13,6 @@ module InternalAffairs # # good # expect(cop.messages).to eq(['Do not write bad code like that.']) # - # @api private class UselessMessageAssertion < Base MSG = 'Do not specify cop behavior using `described_class::MSG`.' diff --git a/lib/rubocop/cop/layout/access_modifier_indentation.rb b/lib/rubocop/cop/layout/access_modifier_indentation.rb index 3853035a008..74e638252cc 100644 --- a/lib/rubocop/cop/layout/access_modifier_indentation.rb +++ b/lib/rubocop/cop/layout/access_modifier_indentation.rb @@ -32,8 +32,6 @@ module Layout # private # def smooth; end # end - # - # @api private class AccessModifierIndentation < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/argument_alignment.rb b/lib/rubocop/cop/layout/argument_alignment.rb index eae9e9dad34..121cc4cf9ce 100644 --- a/lib/rubocop/cop/layout/argument_alignment.rb +++ b/lib/rubocop/cop/layout/argument_alignment.rb @@ -37,8 +37,6 @@ module Layout # # foo :bar, # :baz - # - # @api private class ArgumentAlignment < Cop include Alignment diff --git a/lib/rubocop/cop/layout/array_alignment.rb b/lib/rubocop/cop/layout/array_alignment.rb index eda807cc8eb..ea57a425ed6 100644 --- a/lib/rubocop/cop/layout/array_alignment.rb +++ b/lib/rubocop/cop/layout/array_alignment.rb @@ -33,8 +33,6 @@ module Layout # # array = [1, 2, 3, # 4, 5, 6] - # - # @api private class ArrayAlignment < Cop include Alignment diff --git a/lib/rubocop/cop/layout/assignment_indentation.rb b/lib/rubocop/cop/layout/assignment_indentation.rb index d679e61eb11..9cee07af57d 100644 --- a/lib/rubocop/cop/layout/assignment_indentation.rb +++ b/lib/rubocop/cop/layout/assignment_indentation.rb @@ -21,8 +21,6 @@ module Layout # # The indentation of the remaining lines can be corrected with # other cops such as `IndentationConsistency` and `EndAlignment`. - # - # @api private class AssignmentIndentation < Cop include CheckAssignment include Alignment diff --git a/lib/rubocop/cop/layout/block_alignment.rb b/lib/rubocop/cop/layout/block_alignment.rb index 7924f906e51..8d692195017 100644 --- a/lib/rubocop/cop/layout/block_alignment.rb +++ b/lib/rubocop/cop/layout/block_alignment.rb @@ -61,8 +61,6 @@ module Layout # .each do # baz # end - # - # @api private class BlockAlignment < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/block_end_newline.rb b/lib/rubocop/cop/layout/block_end_newline.rb index 4c3a761f145..84f97459cbb 100644 --- a/lib/rubocop/cop/layout/block_end_newline.rb +++ b/lib/rubocop/cop/layout/block_end_newline.rb @@ -24,8 +24,6 @@ module Layout # blah { |i| # foo(i) # } - # - # @api private class BlockEndNewline < Cop include Alignment diff --git a/lib/rubocop/cop/layout/case_indentation.rb b/lib/rubocop/cop/layout/case_indentation.rb index dac32d5629d..2f604d568d2 100644 --- a/lib/rubocop/cop/layout/case_indentation.rb +++ b/lib/rubocop/cop/layout/case_indentation.rb @@ -67,8 +67,6 @@ module Layout # else # y / 3 # end - # - # @api private class CaseIndentation < Base include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/class_structure.rb b/lib/rubocop/cop/layout/class_structure.rb index e298fc4835e..a86c3838a4b 100644 --- a/lib/rubocop/cop/layout/class_structure.rb +++ b/lib/rubocop/cop/layout/class_structure.rb @@ -133,8 +133,6 @@ module Layout # end # # @see https://rubystyle.guide#consistent-classes - # - # @api private class ClassStructure < Base include VisibilityHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/closing_heredoc_indentation.rb b/lib/rubocop/cop/layout/closing_heredoc_indentation.rb index 47c7e5902ea..429cfb6f03b 100644 --- a/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +++ b/lib/rubocop/cop/layout/closing_heredoc_indentation.rb @@ -46,7 +46,6 @@ module Layout # Hi # EOS # - # @api private class ClosingHeredocIndentation < Base include Heredoc extend AutoCorrector diff --git a/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb b/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb index d54a03a11de..bd23177144c 100644 --- a/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +++ b/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb @@ -68,7 +68,6 @@ module Layout # ) # # - # @api private class ClosingParenthesisIndentation < Cop include Alignment diff --git a/lib/rubocop/cop/layout/comment_indentation.rb b/lib/rubocop/cop/layout/comment_indentation.rb index 52719afeaf3..e03987335f6 100644 --- a/lib/rubocop/cop/layout/comment_indentation.rb +++ b/lib/rubocop/cop/layout/comment_indentation.rb @@ -32,7 +32,6 @@ module Layout # true # end # - # @api private class CommentIndentation < Cop include Alignment diff --git a/lib/rubocop/cop/layout/condition_position.rb b/lib/rubocop/cop/layout/condition_position.rb index 2099e767b56..55b25a560ba 100644 --- a/lib/rubocop/cop/layout/condition_position.rb +++ b/lib/rubocop/cop/layout/condition_position.rb @@ -22,8 +22,6 @@ module Layout # if some_condition # do_something # end - # - # @api private class ConditionPosition < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/def_end_alignment.rb b/lib/rubocop/cop/layout/def_end_alignment.rb index 590bbed1596..873f68c319d 100644 --- a/lib/rubocop/cop/layout/def_end_alignment.rb +++ b/lib/rubocop/cop/layout/def_end_alignment.rb @@ -33,8 +33,6 @@ module Layout # # private def foo # end - # - # @api private class DefEndAlignment < Base include EndKeywordAlignment include RangeHelp diff --git a/lib/rubocop/cop/layout/dot_position.rb b/lib/rubocop/cop/layout/dot_position.rb index 363c11a5cfb..58285c2670e 100644 --- a/lib/rubocop/cop/layout/dot_position.rb +++ b/lib/rubocop/cop/layout/dot_position.rb @@ -22,8 +22,6 @@ module Layout # # good # something. # method - # - # @api private class DotPosition < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/layout/else_alignment.rb b/lib/rubocop/cop/layout/else_alignment.rb index a977868f840..af8d5e6f134 100644 --- a/lib/rubocop/cop/layout/else_alignment.rb +++ b/lib/rubocop/cop/layout/else_alignment.rb @@ -29,8 +29,6 @@ module Layout # else # code # end - # - # @api private class ElseAlignment < Cop include EndKeywordAlignment include Alignment diff --git a/lib/rubocop/cop/layout/empty_comment.rb b/lib/rubocop/cop/layout/empty_comment.rb index ba8b890d1ca..7aa1eb17dfb 100644 --- a/lib/rubocop/cop/layout/empty_comment.rb +++ b/lib/rubocop/cop/layout/empty_comment.rb @@ -60,7 +60,6 @@ module Layout # class Foo # end # - # @api private class EmptyComment < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb b/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb index 785bf06370e..aef6a418f18 100644 --- a/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +++ b/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb @@ -35,8 +35,6 @@ module Layout # return if need_return? # end # end - # - # @api private class EmptyLineAfterGuardClause < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb b/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb index b79eedd63c3..d7b828185b5 100644 --- a/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +++ b/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb @@ -20,8 +20,6 @@ module Layout # class Person # # Some code # end - # - # @api private class EmptyLineAfterMagicComment < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_line_between_defs.rb b/lib/rubocop/cop/layout/empty_line_between_defs.rb index b3197f5880f..7e7c2f7c9b1 100644 --- a/lib/rubocop/cop/layout/empty_line_between_defs.rb +++ b/lib/rubocop/cop/layout/empty_line_between_defs.rb @@ -29,8 +29,6 @@ module Layout # # def b # end - # - # @api private class EmptyLineBetweenDefs < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines.rb b/lib/rubocop/cop/layout/empty_lines.rb index 712cf15e4bc..83e45725000 100644 --- a/lib/rubocop/cop/layout/empty_lines.rb +++ b/lib/rubocop/cop/layout/empty_lines.rb @@ -18,7 +18,6 @@ module Layout # # one empty line # some_method # - # @api private class EmptyLines < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb b/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb index 95dbad683f3..90f9e743220 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb @@ -40,7 +40,6 @@ module Layout # def baz; end # end # - # @api private class EmptyLinesAroundAccessModifier < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/empty_lines_around_arguments.rb b/lib/rubocop/cop/layout/empty_lines_around_arguments.rb index 605d97445e2..e174859b41c 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_arguments.rb @@ -38,7 +38,6 @@ module Layout # x: y # ) # - # @api private class EmptyLinesAroundArguments < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb b/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb index 08c79a283e4..77dbafbca0d 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb @@ -60,7 +60,6 @@ module Layout # def do_something # end # - # @api private class EmptyLinesAroundAttributeAccessor < Base include RangeHelp include AllowedMethods diff --git a/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb b/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb index b3a7b73ebcf..fccb33d7dc6 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb @@ -21,8 +21,6 @@ module Layout # # ... # # end - # - # @api private class EmptyLinesAroundBeginBody < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_block_body.rb b/lib/rubocop/cop/layout/empty_lines_around_block_body.rb index 06a0022f744..202058257c7 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_block_body.rb @@ -21,8 +21,6 @@ module Layout # foo do |bar| # # ... # end - # - # @api private class EmptyLinesAroundBlockBody < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_class_body.rb b/lib/rubocop/cop/layout/empty_lines_around_class_body.rb index 080b14df0bb..2b5945238f9 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_class_body.rb @@ -64,8 +64,6 @@ module Layout # # ... # end # end - # - # @api private class EmptyLinesAroundClassBody < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb b/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb index 5b3db8a80bf..883c5cede05 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb @@ -58,8 +58,6 @@ module Layout # # do_something2 # end - # - # @api private class EmptyLinesAroundExceptionHandlingKeywords < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_method_body.rb b/lib/rubocop/cop/layout/empty_lines_around_method_body.rb index 5cd4b74ec98..39642946803 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_method_body.rb @@ -20,8 +20,6 @@ module Layout # # ... # # end - # - # @api private class EmptyLinesAroundMethodBody < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/empty_lines_around_module_body.rb b/lib/rubocop/cop/layout/empty_lines_around_module_body.rb index 181513b32df..ce67e6d3836 100644 --- a/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +++ b/lib/rubocop/cop/layout/empty_lines_around_module_body.rb @@ -44,8 +44,6 @@ module Layout # # ... # end # end - # - # @api private class EmptyLinesAroundModuleBody < Base include EmptyLinesAroundBody extend AutoCorrector diff --git a/lib/rubocop/cop/layout/end_alignment.rb b/lib/rubocop/cop/layout/end_alignment.rb index 5f0d5b428f5..2c073c77c6e 100644 --- a/lib/rubocop/cop/layout/end_alignment.rb +++ b/lib/rubocop/cop/layout/end_alignment.rb @@ -67,8 +67,6 @@ module Layout # variable = # if true # end - # - # @api private class EndAlignment < Base include CheckAssignment include EndKeywordAlignment diff --git a/lib/rubocop/cop/layout/end_of_line.rb b/lib/rubocop/cop/layout/end_of_line.rb index c1e19c7d7a6..1194fc23468 100644 --- a/lib/rubocop/cop/layout/end_of_line.rb +++ b/lib/rubocop/cop/layout/end_of_line.rb @@ -37,7 +37,6 @@ module Layout # # good # puts 'Hello' # Return character is CR+LF on all platfoms. # - # @api private class EndOfLine < Cop include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/extra_spacing.rb b/lib/rubocop/cop/layout/extra_spacing.rb index d1370a1b3cb..b6d0a0fc16a 100644 --- a/lib/rubocop/cop/layout/extra_spacing.rb +++ b/lib/rubocop/cop/layout/extra_spacing.rb @@ -28,8 +28,6 @@ module Layout # object.method(arg) # this is a comment # another_object.method(arg) # this is another comment # some_object.method(arg) # this is some comment - # - # @api private class ExtraSpacing < Base extend AutoCorrector include PrecedingFollowingAlignment diff --git a/lib/rubocop/cop/layout/first_argument_indentation.rb b/lib/rubocop/cop/layout/first_argument_indentation.rb index e1fa5101c3f..918025eac11 100644 --- a/lib/rubocop/cop/layout/first_argument_indentation.rb +++ b/lib/rubocop/cop/layout/first_argument_indentation.rb @@ -141,7 +141,6 @@ module Layout # nested_first_param), # second_param # - # @api private class FirstArgumentIndentation < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/first_array_element_indentation.rb b/lib/rubocop/cop/layout/first_array_element_indentation.rb index 19ac53ccd5d..76b4aa62b0a 100644 --- a/lib/rubocop/cop/layout/first_array_element_indentation.rb +++ b/lib/rubocop/cop/layout/first_array_element_indentation.rb @@ -79,8 +79,6 @@ module Layout # and_now_for_something = [ # :completely_different # ] - # - # @api private class FirstArrayElementIndentation < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/first_array_element_line_break.rb b/lib/rubocop/cop/layout/first_array_element_line_break.rb index 8d911f1266c..7d0004431c1 100644 --- a/lib/rubocop/cop/layout/first_array_element_line_break.rb +++ b/lib/rubocop/cop/layout/first_array_element_line_break.rb @@ -17,7 +17,6 @@ module Layout # :a, # :b] # - # @api private class FirstArrayElementLineBreak < Base include FirstElementLineBreak extend AutoCorrector diff --git a/lib/rubocop/cop/layout/first_hash_element_indentation.rb b/lib/rubocop/cop/layout/first_hash_element_indentation.rb index 8396f3b3748..bc91a85e1f3 100644 --- a/lib/rubocop/cop/layout/first_hash_element_indentation.rb +++ b/lib/rubocop/cop/layout/first_hash_element_indentation.rb @@ -77,8 +77,6 @@ module Layout # and_now_for_something = { # completely: :different # } - # - # @api private class FirstHashElementIndentation < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/first_hash_element_line_break.rb b/lib/rubocop/cop/layout/first_hash_element_line_break.rb index 32f3667c192..1c63f2ca29a 100644 --- a/lib/rubocop/cop/layout/first_hash_element_line_break.rb +++ b/lib/rubocop/cop/layout/first_hash_element_line_break.rb @@ -16,8 +16,6 @@ module Layout # { # a: 1, # b: 2 } - # - # @api private class FirstHashElementLineBreak < Base include FirstElementLineBreak extend AutoCorrector diff --git a/lib/rubocop/cop/layout/first_method_argument_line_break.rb b/lib/rubocop/cop/layout/first_method_argument_line_break.rb index 4789d2af208..3f7a25668e3 100644 --- a/lib/rubocop/cop/layout/first_method_argument_line_break.rb +++ b/lib/rubocop/cop/layout/first_method_argument_line_break.rb @@ -20,8 +20,6 @@ module Layout # # ignored # method foo, bar, # baz - # - # @api private class FirstMethodArgumentLineBreak < Base include FirstElementLineBreak extend AutoCorrector diff --git a/lib/rubocop/cop/layout/first_method_parameter_line_break.rb b/lib/rubocop/cop/layout/first_method_parameter_line_break.rb index bf341394f98..67c0d0227cf 100644 --- a/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +++ b/lib/rubocop/cop/layout/first_method_parameter_line_break.rb @@ -26,8 +26,6 @@ module Layout # bar # do_something # end - # - # @api private class FirstMethodParameterLineBreak < Base include FirstElementLineBreak extend AutoCorrector diff --git a/lib/rubocop/cop/layout/first_parameter_indentation.rb b/lib/rubocop/cop/layout/first_parameter_indentation.rb index 4c0ab51464f..c583f84dac1 100644 --- a/lib/rubocop/cop/layout/first_parameter_indentation.rb +++ b/lib/rubocop/cop/layout/first_parameter_indentation.rb @@ -41,8 +41,6 @@ module Layout # second_param) # 123 # end - # - # @api private class FirstParameterIndentation < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/hash_alignment.rb b/lib/rubocop/cop/layout/hash_alignment.rb index e2ce6cf9963..6d343725fe9 100644 --- a/lib/rubocop/cop/layout/hash_alignment.rb +++ b/lib/rubocop/cop/layout/hash_alignment.rb @@ -175,7 +175,6 @@ module Layout # do_something({foo: 1, # bar: 2}) # - # @api private class HashAlignment < Base include HashAlignmentStyles include RangeHelp diff --git a/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb b/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb index c36564e6afd..c4e27b64339 100644 --- a/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +++ b/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb @@ -50,7 +50,6 @@ module Layout # 123, # ) # - # @api private class HeredocArgumentClosingParenthesis < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/heredoc_indentation.rb b/lib/rubocop/cop/layout/heredoc_indentation.rb index bfb3b493f76..37b9aa5dd81 100644 --- a/lib/rubocop/cop/layout/heredoc_indentation.rb +++ b/lib/rubocop/cop/layout/heredoc_indentation.rb @@ -21,8 +21,6 @@ module Layout # something # RUBY # - # - # @api private class HeredocIndentation < Base include Heredoc extend AutoCorrector diff --git a/lib/rubocop/cop/layout/indentation_consistency.rb b/lib/rubocop/cop/layout/indentation_consistency.rb index 09349a7a479..83c18c1c951 100644 --- a/lib/rubocop/cop/layout/indentation_consistency.rb +++ b/lib/rubocop/cop/layout/indentation_consistency.rb @@ -118,8 +118,6 @@ module Layout # def bar # end # end - # - # @api private class IndentationConsistency < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/indentation_style.rb b/lib/rubocop/cop/layout/indentation_style.rb index 5fded1e6972..356f3c4eb77 100644 --- a/lib/rubocop/cop/layout/indentation_style.rb +++ b/lib/rubocop/cop/layout/indentation_style.rb @@ -31,8 +31,6 @@ module Layout # def foo # bar # end - # - # @api private class IndentationStyle < Cop include Alignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/indentation_width.rb b/lib/rubocop/cop/layout/indentation_width.rb index 737ee481b19..1ef7d1b055d 100644 --- a/lib/rubocop/cop/layout/indentation_width.rb +++ b/lib/rubocop/cop/layout/indentation_width.rb @@ -42,8 +42,6 @@ module Layout # end # end # end - # - # @api private class IndentationWidth < Cop # rubocop:disable Metrics/ClassLength include EndKeywordAlignment include Alignment diff --git a/lib/rubocop/cop/layout/initial_indentation.rb b/lib/rubocop/cop/layout/initial_indentation.rb index edc3e1a1e97..5d5bc83a427 100644 --- a/lib/rubocop/cop/layout/initial_indentation.rb +++ b/lib/rubocop/cop/layout/initial_indentation.rb @@ -17,7 +17,6 @@ module Layout # def foo; end # end # - # @api private class InitialIndentation < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/leading_comment_space.rb b/lib/rubocop/cop/layout/leading_comment_space.rb index 3a239e8c08c..ae822360909 100644 --- a/lib/rubocop/cop/layout/leading_comment_space.rb +++ b/lib/rubocop/cop/layout/leading_comment_space.rb @@ -49,7 +49,6 @@ module Layout # #ruby=2.7.0 # #ruby-gemset=myproject # - # @api private class LeadingCommentSpace < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/leading_empty_lines.rb b/lib/rubocop/cop/layout/leading_empty_lines.rb index 40e0ec316af..c1b72c7d1e2 100644 --- a/lib/rubocop/cop/layout/leading_empty_lines.rb +++ b/lib/rubocop/cop/layout/leading_empty_lines.rb @@ -27,8 +27,6 @@ module Layout # # good # # (start of file) # # a comment - # - # @api private class LeadingEmptyLines < Base extend AutoCorrector diff --git a/lib/rubocop/cop/layout/line_length.rb b/lib/rubocop/cop/layout/line_length.rb index 40373d7f244..d451b285789 100644 --- a/lib/rubocop/cop/layout/line_length.rb +++ b/lib/rubocop/cop/layout/line_length.rb @@ -58,8 +58,6 @@ module Layout # bar: "0000000000", # baz: "0000000000", # } - # - # @api private class LineLength < Cop include CheckLineBreakable include ConfigurableMax diff --git a/lib/rubocop/cop/layout/multiline_array_brace_layout.rb b/lib/rubocop/cop/layout/multiline_array_brace_layout.rb index 80393951985..122a4d1d55e 100644 --- a/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +++ b/lib/rubocop/cop/layout/multiline_array_brace_layout.rb @@ -88,8 +88,6 @@ module Layout # # good # [ :a, # :b ] - # - # @api private class MultilineArrayBraceLayout < Base include MultilineLiteralBraceLayout extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_array_line_breaks.rb b/lib/rubocop/cop/layout/multiline_array_line_breaks.rb index 4b94ea95c6b..3d1f4e4da04 100644 --- a/lib/rubocop/cop/layout/multiline_array_line_breaks.rb +++ b/lib/rubocop/cop/layout/multiline_array_line_breaks.rb @@ -20,8 +20,6 @@ module Layout # b, # c # ] - # - # @api private class MultilineArrayLineBreaks < Base include MultilineElementLineBreaks extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_assignment_layout.rb b/lib/rubocop/cop/layout/multiline_assignment_layout.rb index 2c5a71787df..64863887f04 100644 --- a/lib/rubocop/cop/layout/multiline_assignment_layout.rb +++ b/lib/rubocop/cop/layout/multiline_assignment_layout.rb @@ -31,8 +31,6 @@ module Layout # foo = if expression # 'bar' # end - # - # @api private class MultilineAssignmentLayout < Base include CheckAssignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/multiline_block_layout.rb b/lib/rubocop/cop/layout/multiline_block_layout.rb index 0be03011e8a..3050f4795a4 100644 --- a/lib/rubocop/cop/layout/multiline_block_layout.rb +++ b/lib/rubocop/cop/layout/multiline_block_layout.rb @@ -48,8 +48,6 @@ module Layout # foo(i) # bar(i) # } - # - # @api private class MultilineBlockLayout < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb b/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb index 434d7431bfd..b86ff804856 100644 --- a/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +++ b/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb @@ -88,8 +88,6 @@ module Layout # # good # { a: 1, # b: 2 } - # - # @api private class MultilineHashBraceLayout < Base include MultilineLiteralBraceLayout extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb b/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb index d3e777af429..f3436804004 100644 --- a/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb +++ b/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb @@ -20,8 +20,6 @@ module Layout # b: 2, # c: 3 # } - # - # @api private class MultilineHashKeyLineBreaks < Base include MultilineElementLineBreaks extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb b/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb index 074846df97a..0bcc72e521a 100644 --- a/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb +++ b/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb @@ -19,8 +19,6 @@ module Layout # b, # c # ) - # - # @api private class MultilineMethodArgumentLineBreaks < Base include MultilineElementLineBreaks extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb b/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb index dc5bafcab32..3f6821143c1 100644 --- a/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb +++ b/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb @@ -88,8 +88,6 @@ module Layout # # good # foo(a, # b) - # - # @api private class MultilineMethodCallBraceLayout < Base include MultilineLiteralBraceLayout extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_method_call_indentation.rb b/lib/rubocop/cop/layout/multiline_method_call_indentation.rb index 8f7d343f608..d22bae7347e 100644 --- a/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +++ b/lib/rubocop/cop/layout/multiline_method_call_indentation.rb @@ -46,8 +46,6 @@ module Layout # .a # .b # .c - # - # @api private class MultilineMethodCallIndentation < Cop include ConfigurableEnforcedStyle include Alignment diff --git a/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb b/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb index d48eb3f36bf..d8f6b7c3629 100644 --- a/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +++ b/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb @@ -100,8 +100,6 @@ module Layout # def foo(a, # b) # end - # - # @api private class MultilineMethodDefinitionBraceLayout < Base include MultilineLiteralBraceLayout extend AutoCorrector diff --git a/lib/rubocop/cop/layout/multiline_operation_indentation.rb b/lib/rubocop/cop/layout/multiline_operation_indentation.rb index 0a7e3c7cb23..18f2a85b2ce 100644 --- a/lib/rubocop/cop/layout/multiline_operation_indentation.rb +++ b/lib/rubocop/cop/layout/multiline_operation_indentation.rb @@ -41,7 +41,6 @@ module Layout # something_else # end # - # @api private class MultilineOperationIndentation < Cop include ConfigurableEnforcedStyle include Alignment diff --git a/lib/rubocop/cop/layout/parameter_alignment.rb b/lib/rubocop/cop/layout/parameter_alignment.rb index f9a9c99ac04..85bedeb0c3d 100644 --- a/lib/rubocop/cop/layout/parameter_alignment.rb +++ b/lib/rubocop/cop/layout/parameter_alignment.rb @@ -68,8 +68,6 @@ module Layout # baz) # 123 # end - # - # @api private class ParameterAlignment < Cop include Alignment diff --git a/lib/rubocop/cop/layout/rescue_ensure_alignment.rb b/lib/rubocop/cop/layout/rescue_ensure_alignment.rb index f3f51582835..ad0889bbc20 100644 --- a/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +++ b/lib/rubocop/cop/layout/rescue_ensure_alignment.rb @@ -21,8 +21,6 @@ module Layout # rescue # puts 'error' # end - # - # @api private class RescueEnsureAlignment < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_after_colon.rb b/lib/rubocop/cop/layout/space_after_colon.rb index 7b1acef5468..62d49b6fc8a 100644 --- a/lib/rubocop/cop/layout/space_after_colon.rb +++ b/lib/rubocop/cop/layout/space_after_colon.rb @@ -13,8 +13,6 @@ module Layout # # # good # def f(a:, b: 2); {a: 3}; end - # - # @api private class SpaceAfterColon < Base extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_after_comma.rb b/lib/rubocop/cop/layout/space_after_comma.rb index 51d616f44bc..773ac114715 100644 --- a/lib/rubocop/cop/layout/space_after_comma.rb +++ b/lib/rubocop/cop/layout/space_after_comma.rb @@ -14,8 +14,6 @@ module Layout # # good # [1, 2] # { foo:bar, } - # - # @api private class SpaceAfterComma < Base include SpaceAfterPunctuation extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_after_method_name.rb b/lib/rubocop/cop/layout/space_after_method_name.rb index 8ac84c71bf2..b801b87fd18 100644 --- a/lib/rubocop/cop/layout/space_after_method_name.rb +++ b/lib/rubocop/cop/layout/space_after_method_name.rb @@ -14,8 +14,6 @@ module Layout # # good # def func(x) end # def method=(y) end - # - # @api private class SpaceAfterMethodName < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_after_not.rb b/lib/rubocop/cop/layout/space_after_not.rb index 18a755f1ae5..1f49efa13b1 100644 --- a/lib/rubocop/cop/layout/space_after_not.rb +++ b/lib/rubocop/cop/layout/space_after_not.rb @@ -11,8 +11,6 @@ module Layout # # # good # !something - # - # @api private class SpaceAfterNot < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_after_semicolon.rb b/lib/rubocop/cop/layout/space_after_semicolon.rb index a205a370da1..acd067d5036 100644 --- a/lib/rubocop/cop/layout/space_after_semicolon.rb +++ b/lib/rubocop/cop/layout/space_after_semicolon.rb @@ -11,8 +11,6 @@ module Layout # # # good # x = 1; y = 2 - # - # @api private class SpaceAfterSemicolon < Base include SpaceAfterPunctuation extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_around_block_parameters.rb b/lib/rubocop/cop/layout/space_around_block_parameters.rb index 94477e511c9..02c13d08eb1 100644 --- a/lib/rubocop/cop/layout/space_around_block_parameters.rb +++ b/lib/rubocop/cop/layout/space_around_block_parameters.rb @@ -24,8 +24,6 @@ module Layout # # good # {}.each { | x, y | puts x } # ->( x, y ) { puts x } - # - # @api private class SpaceAroundBlockParameters < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb b/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb index 9388f633d10..2cf1d752d81 100644 --- a/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +++ b/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb @@ -27,8 +27,6 @@ module Layout # def some_method(arg1=:default, arg2=nil, arg3=[]) # # do something... # end - # - # @api private class SpaceAroundEqualsInParameterDefault < Base include SurroundingSpace include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/space_around_keyword.rb b/lib/rubocop/cop/layout/space_around_keyword.rb index a53c521acd2..344a9b57ace 100644 --- a/lib/rubocop/cop/layout/space_around_keyword.rb +++ b/lib/rubocop/cop/layout/space_around_keyword.rb @@ -24,8 +24,6 @@ module Layout # end # # something = 123 if test - # - # @api private class SpaceAroundKeyword < Base extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_around_method_call_operator.rb b/lib/rubocop/cop/layout/space_around_method_call_operator.rb index 49b84e8496a..d429cdb1ab4 100644 --- a/lib/rubocop/cop/layout/space_around_method_call_operator.rb +++ b/lib/rubocop/cop/layout/space_around_method_call_operator.rb @@ -34,7 +34,6 @@ module Layout # RuboCop::Cop::Cop # ::RuboCop::Cop # - # @api private class SpaceAroundMethodCallOperator < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_around_operators.rb b/lib/rubocop/cop/layout/space_around_operators.rb index d3649f1f3c8..0273120ca62 100644 --- a/lib/rubocop/cop/layout/space_around_operators.rb +++ b/lib/rubocop/cop/layout/space_around_operators.rb @@ -48,8 +48,6 @@ module Layout # # # good # a ** b - # - # @api private class SpaceAroundOperators < Base include PrecedingFollowingAlignment include RangeHelp diff --git a/lib/rubocop/cop/layout/space_before_block_braces.rb b/lib/rubocop/cop/layout/space_before_block_braces.rb index db44e8724ed..ccc2b32eab6 100644 --- a/lib/rubocop/cop/layout/space_before_block_braces.rb +++ b/lib/rubocop/cop/layout/space_before_block_braces.rb @@ -41,8 +41,6 @@ module Layout # # # good # 7.times{} - # - # @api private class SpaceBeforeBlockBraces < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/space_before_comma.rb b/lib/rubocop/cop/layout/space_before_comma.rb index 2124abaf64b..8d31ae37d0b 100644 --- a/lib/rubocop/cop/layout/space_before_comma.rb +++ b/lib/rubocop/cop/layout/space_before_comma.rb @@ -16,7 +16,6 @@ module Layout # a(1, 2) # each { |a, b| } # - # @api private class SpaceBeforeComma < Base include SpaceBeforePunctuation extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_before_comment.rb b/lib/rubocop/cop/layout/space_before_comment.rb index a308f8ded65..3623c4ec45b 100644 --- a/lib/rubocop/cop/layout/space_before_comment.rb +++ b/lib/rubocop/cop/layout/space_before_comment.rb @@ -12,8 +12,6 @@ module Layout # # # good # 1 + 1 # this operation does ... - # - # @api private class SpaceBeforeComment < Base extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_before_first_arg.rb b/lib/rubocop/cop/layout/space_before_first_arg.rb index cd0b1b5e4a3..55e311f6ed6 100644 --- a/lib/rubocop/cop/layout/space_before_first_arg.rb +++ b/lib/rubocop/cop/layout/space_before_first_arg.rb @@ -21,7 +21,6 @@ module Layout # something y, z # something 'hello' # - # @api private class SpaceBeforeFirstArg < Base include PrecedingFollowingAlignment include RangeHelp diff --git a/lib/rubocop/cop/layout/space_before_semicolon.rb b/lib/rubocop/cop/layout/space_before_semicolon.rb index b6ef494563f..a793b907806 100644 --- a/lib/rubocop/cop/layout/space_before_semicolon.rb +++ b/lib/rubocop/cop/layout/space_before_semicolon.rb @@ -11,8 +11,6 @@ module Layout # # # good # x = 1; y = 2 - # - # @api private class SpaceBeforeSemicolon < Base include SpaceBeforePunctuation extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_in_lambda_literal.rb b/lib/rubocop/cop/layout/space_in_lambda_literal.rb index d80732c7322..528c7da9cac 100644 --- a/lib/rubocop/cop/layout/space_in_lambda_literal.rb +++ b/lib/rubocop/cop/layout/space_in_lambda_literal.rb @@ -19,8 +19,6 @@ module Layout # # # good # a = -> (x, y) { x + y } - # - # @api private class SpaceInLambdaLiteral < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb b/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb index 8a7aaf97499..c93c064fd2a 100644 --- a/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +++ b/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb @@ -67,7 +67,6 @@ module Layout # foo = [ ] # bar = [ ] # - # @api private class SpaceInsideArrayLiteralBrackets < Base include SurroundingSpace include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb b/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb index 558fc78ef10..68c76e78141 100644 --- a/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +++ b/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb @@ -12,8 +12,6 @@ module Layout # %w(foo bar baz) # # good # %i(foo bar baz) - # - # @api private class SpaceInsideArrayPercentLiteral < Base include MatchRange include PercentLiteral diff --git a/lib/rubocop/cop/layout/space_inside_block_braces.rb b/lib/rubocop/cop/layout/space_inside_block_braces.rb index f8e93d4dc79..a443d90a5b1 100644 --- a/lib/rubocop/cop/layout/space_inside_block_braces.rb +++ b/lib/rubocop/cop/layout/space_inside_block_braces.rb @@ -76,7 +76,6 @@ module Layout # # good # [1, 2, 3].each {|n| n * 2 } # - # @api private class SpaceInsideBlockBraces < Base include ConfigurableEnforcedStyle include SurroundingSpace diff --git a/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb b/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb index 65d59ff49d5..93d309037ae 100644 --- a/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +++ b/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb @@ -63,7 +63,6 @@ module Layout # foo = { } # foo = { } # - # @api private class SpaceInsideHashLiteralBraces < Base include SurroundingSpace include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/space_inside_parens.rb b/lib/rubocop/cop/layout/space_inside_parens.rb index 337725bcefe..faa20773cc2 100644 --- a/lib/rubocop/cop/layout/space_inside_parens.rb +++ b/lib/rubocop/cop/layout/space_inside_parens.rb @@ -31,7 +31,6 @@ module Layout # g = ( a + 3 ) # y() # - # @api private class SpaceInsideParens < Base include SurroundingSpace include RangeHelp diff --git a/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb b/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb index dc6131aba4c..63c67586b80 100644 --- a/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +++ b/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb @@ -16,8 +16,6 @@ module Layout # # # bad # %x( ls -l ) - # - # @api private class SpaceInsidePercentLiteralDelimiters < Base include MatchRange include PercentLiteral diff --git a/lib/rubocop/cop/layout/space_inside_range_literal.rb b/lib/rubocop/cop/layout/space_inside_range_literal.rb index 24d26613c11..4419dba0fd7 100644 --- a/lib/rubocop/cop/layout/space_inside_range_literal.rb +++ b/lib/rubocop/cop/layout/space_inside_range_literal.rb @@ -17,8 +17,6 @@ module Layout # # # good # 'a'..'z' - # - # @api private class SpaceInsideRangeLiteral < Base extend AutoCorrector diff --git a/lib/rubocop/cop/layout/space_inside_reference_brackets.rb b/lib/rubocop/cop/layout/space_inside_reference_brackets.rb index ff9f6a84db0..e1240c96657 100644 --- a/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +++ b/lib/rubocop/cop/layout/space_inside_reference_brackets.rb @@ -53,7 +53,6 @@ module Layout # # good # foo[ ] # - # @api private class SpaceInsideReferenceBrackets < Base include SurroundingSpace include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/layout/space_inside_string_interpolation.rb b/lib/rubocop/cop/layout/space_inside_string_interpolation.rb index a4f8759943a..44e09d2dde6 100644 --- a/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +++ b/lib/rubocop/cop/layout/space_inside_string_interpolation.rb @@ -18,8 +18,6 @@ module Layout # # # good # var = "This is the #{ space } example" - # - # @api private class SpaceInsideStringInterpolation < Base include Interpolation include SurroundingSpace diff --git a/lib/rubocop/cop/layout/trailing_empty_lines.rb b/lib/rubocop/cop/layout/trailing_empty_lines.rb index 3d394a586e6..d102cf87694 100644 --- a/lib/rubocop/cop/layout/trailing_empty_lines.rb +++ b/lib/rubocop/cop/layout/trailing_empty_lines.rb @@ -37,7 +37,6 @@ module Layout # class Foo; end # # EOF # - # @api private class TrailingEmptyLines < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/layout/trailing_whitespace.rb b/lib/rubocop/cop/layout/trailing_whitespace.rb index f2bd23731b1..143492fa976 100644 --- a/lib/rubocop/cop/layout/trailing_whitespace.rb +++ b/lib/rubocop/cop/layout/trailing_whitespace.rb @@ -28,7 +28,6 @@ module Layout # x = 0 # RUBY # - # @api private class TrailingWhitespace < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/ambiguous_block_association.rb b/lib/rubocop/cop/lint/ambiguous_block_association.rb index 0d6bbba751d..94ffc47401c 100644 --- a/lib/rubocop/cop/lint/ambiguous_block_association.rb +++ b/lib/rubocop/cop/lint/ambiguous_block_association.rb @@ -24,8 +24,6 @@ module Lint # # good # # Lambda arguments require no disambiguation # foo = ->(bar) { bar.baz } - # - # @api private class AmbiguousBlockAssociation < Base MSG = 'Parenthesize the param `%s` to make sure that the ' \ 'block will be associated with the `%s` method ' \ diff --git a/lib/rubocop/cop/lint/ambiguous_operator.rb b/lib/rubocop/cop/lint/ambiguous_operator.rb index 020806bb9d5..2df1285a861 100644 --- a/lib/rubocop/cop/lint/ambiguous_operator.rb +++ b/lib/rubocop/cop/lint/ambiguous_operator.rb @@ -20,8 +20,6 @@ module Lint # # # With parentheses, there's no ambiguity. # do_something(*some_array) - # - # @api private class AmbiguousOperator < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb b/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb index a86a779dfb7..87a70ff284a 100644 --- a/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +++ b/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb @@ -21,8 +21,6 @@ module Lint # # # With parentheses, there's no ambiguity. # do_something(/pattern/i) - # - # @api private class AmbiguousRegexpLiteral < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/assignment_in_condition.rb b/lib/rubocop/cop/lint/assignment_in_condition.rb index bee94585247..cc058ad23b0 100644 --- a/lib/rubocop/cop/lint/assignment_in_condition.rb +++ b/lib/rubocop/cop/lint/assignment_in_condition.rb @@ -34,7 +34,6 @@ module Lint # do_something # end # - # @api private class AssignmentInCondition < Base include SafeAssignment diff --git a/lib/rubocop/cop/lint/big_decimal_new.rb b/lib/rubocop/cop/lint/big_decimal_new.rb index 1f52f4e9af7..87c54bc0765 100644 --- a/lib/rubocop/cop/lint/big_decimal_new.rb +++ b/lib/rubocop/cop/lint/big_decimal_new.rb @@ -14,7 +14,6 @@ module Lint # # good # BigDecimal(123.456, 3) # - # @api private class BigDecimalNew < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb b/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb index ce2db655b79..b25d2a71337 100644 --- a/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb +++ b/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb @@ -27,7 +27,6 @@ module Lint # left_child || left_child # end # - # @api private class BinaryOperatorWithIdenticalOperands < Base MSG = 'Binary operator `%s` has identical operands.' MATH_OPERATORS = %i[+ - * / % ** << >> | ^].to_set.freeze diff --git a/lib/rubocop/cop/lint/boolean_symbol.rb b/lib/rubocop/cop/lint/boolean_symbol.rb index 11f5f41b6d4..bef4a44b14d 100644 --- a/lib/rubocop/cop/lint/boolean_symbol.rb +++ b/lib/rubocop/cop/lint/boolean_symbol.rb @@ -21,8 +21,6 @@ module Lint # # # good # false - # - # @api private class BooleanSymbol < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/circular_argument_reference.rb b/lib/rubocop/cop/lint/circular_argument_reference.rb index 9ede7864dd8..ae9bb09d1f9 100644 --- a/lib/rubocop/cop/lint/circular_argument_reference.rb +++ b/lib/rubocop/cop/lint/circular_argument_reference.rb @@ -47,8 +47,6 @@ module Lint # def cook(dry_ingredients = self.dry_ingredients) # dry_ingredients.combine # end - # - # @api private class CircularArgumentReference < Base MSG = 'Circular argument reference - `%s`.' diff --git a/lib/rubocop/cop/lint/constant_resolution.rb b/lib/rubocop/cop/lint/constant_resolution.rb index 65eb352cb55..df1de0f1627 100644 --- a/lib/rubocop/cop/lint/constant_resolution.rb +++ b/lib/rubocop/cop/lint/constant_resolution.rb @@ -55,7 +55,6 @@ module Lint # # good # Login # - # @api private class ConstantResolution < Base MSG = 'Fully qualify this constant to avoid possibly ambiguous resolution.' diff --git a/lib/rubocop/cop/lint/debugger.rb b/lib/rubocop/cop/lint/debugger.rb index 5f3d027e38b..5e7e148c672 100644 --- a/lib/rubocop/cop/lint/debugger.rb +++ b/lib/rubocop/cop/lint/debugger.rb @@ -32,8 +32,6 @@ module Lint # def some_method # do_something # end - # - # @api private class Debugger < Base MSG = 'Remove debugger entry point `%s`.' diff --git a/lib/rubocop/cop/lint/deprecated_class_methods.rb b/lib/rubocop/cop/lint/deprecated_class_methods.rb index 0ebb163f55b..6d2b41968bd 100644 --- a/lib/rubocop/cop/lint/deprecated_class_methods.rb +++ b/lib/rubocop/cop/lint/deprecated_class_methods.rb @@ -20,8 +20,6 @@ module Lint # File.exist?(some_path) # Dir.exist?(some_path) # block_given? - # - # @api private class DeprecatedClassMethods < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb b/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb index b8ba6cc7c27..16b7c4430a3 100644 --- a/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb +++ b/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb @@ -37,7 +37,6 @@ module Lint # # good # OpenSSL::Digest.digest('SHA256', 'foo') # - # @api private class DeprecatedOpenSSLConstant < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb b/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb index d448bebf1bf..f74c0799ecf 100644 --- a/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +++ b/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb @@ -22,8 +22,6 @@ module Lint # def initialize # @x = 1 # end - # - # @api private class DisjunctiveAssignmentInConstructor < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/duplicate_case_condition.rb b/lib/rubocop/cop/lint/duplicate_case_condition.rb index 2832eaca3b7..af5dd183e7f 100644 --- a/lib/rubocop/cop/lint/duplicate_case_condition.rb +++ b/lib/rubocop/cop/lint/duplicate_case_condition.rb @@ -27,8 +27,6 @@ module Lint # when 'second' # do_something_else # end - # - # @api private class DuplicateCaseCondition < Base MSG = 'Duplicate `when` condition detected.' diff --git a/lib/rubocop/cop/lint/duplicate_elsif_condition.rb b/lib/rubocop/cop/lint/duplicate_elsif_condition.rb index cdeda654564..0dfb9ad0f8b 100644 --- a/lib/rubocop/cop/lint/duplicate_elsif_condition.rb +++ b/lib/rubocop/cop/lint/duplicate_elsif_condition.rb @@ -20,7 +20,6 @@ module Lint # do_something_else # end # - # @api private class DuplicateElsifCondition < Base MSG = 'Duplicate `elsif` condition detected.' diff --git a/lib/rubocop/cop/lint/duplicate_hash_key.rb b/lib/rubocop/cop/lint/duplicate_hash_key.rb index e5a24b55659..5fc80bbe55b 100644 --- a/lib/rubocop/cop/lint/duplicate_hash_key.rb +++ b/lib/rubocop/cop/lint/duplicate_hash_key.rb @@ -18,8 +18,6 @@ module Lint # # good # # hash = { food: 'apple', other_food: 'orange' } - # - # @api private class DuplicateHashKey < Base include Duplication diff --git a/lib/rubocop/cop/lint/duplicate_methods.rb b/lib/rubocop/cop/lint/duplicate_methods.rb index fd368a2f460..94a90f3cc93 100644 --- a/lib/rubocop/cop/lint/duplicate_methods.rb +++ b/lib/rubocop/cop/lint/duplicate_methods.rb @@ -49,8 +49,6 @@ module Lint # end # # alias bar foo - # - # @api private class DuplicateMethods < Base MSG = 'Method `%s` is defined at both %s and ' \ '%s.' diff --git a/lib/rubocop/cop/lint/duplicate_require.rb b/lib/rubocop/cop/lint/duplicate_require.rb index d50ebe71f99..81f13998a2e 100644 --- a/lib/rubocop/cop/lint/duplicate_require.rb +++ b/lib/rubocop/cop/lint/duplicate_require.rb @@ -15,7 +15,6 @@ module Lint # require 'foo' # require 'bar' # - # @api private class DuplicateRequire < Base MSG = 'Duplicate `%s` detected.' REQUIRE_METHODS = %i[require require_relative].freeze diff --git a/lib/rubocop/cop/lint/duplicate_rescue_exception.rb b/lib/rubocop/cop/lint/duplicate_rescue_exception.rb index f2948445587..e06b9eb61fc 100644 --- a/lib/rubocop/cop/lint/duplicate_rescue_exception.rb +++ b/lib/rubocop/cop/lint/duplicate_rescue_exception.rb @@ -25,7 +25,6 @@ module Lint # handle_other_exception # end # - # @api private class DuplicateRescueException < Base include RescueNode diff --git a/lib/rubocop/cop/lint/each_with_object_argument.rb b/lib/rubocop/cop/lint/each_with_object_argument.rb index c42c8ec24f1..4e24038aa37 100644 --- a/lib/rubocop/cop/lint/each_with_object_argument.rb +++ b/lib/rubocop/cop/lint/each_with_object_argument.rb @@ -21,8 +21,6 @@ module Lint # # num = 0 # sum = numbers.each_with_object(num) { |e, a| a += e } - # - # @api private class EachWithObjectArgument < Base MSG = 'The argument to each_with_object cannot be immutable.' diff --git a/lib/rubocop/cop/lint/else_layout.rb b/lib/rubocop/cop/lint/else_layout.rb index bb957066dc9..4b4c131d032 100644 --- a/lib/rubocop/cop/lint/else_layout.rb +++ b/lib/rubocop/cop/lint/else_layout.rb @@ -27,8 +27,6 @@ module Lint # do_this # do_that # end - # - # @api private class ElseLayout < Base MSG = 'Odd `else` layout detected. Did you mean to use `elsif`?' diff --git a/lib/rubocop/cop/lint/empty_conditional_body.rb b/lib/rubocop/cop/lint/empty_conditional_body.rb index 77e4f1dfddf..2938bbc46b0 100644 --- a/lib/rubocop/cop/lint/empty_conditional_body.rb +++ b/lib/rubocop/cop/lint/empty_conditional_body.rb @@ -52,7 +52,6 @@ module Lint # # noop # end # - # @api private class EmptyConditionalBody < Base MSG = 'Avoid `%s` branches without a body.' diff --git a/lib/rubocop/cop/lint/empty_ensure.rb b/lib/rubocop/cop/lint/empty_ensure.rb index b5664a2d6fa..eff6b9b8aca 100644 --- a/lib/rubocop/cop/lint/empty_ensure.rb +++ b/lib/rubocop/cop/lint/empty_ensure.rb @@ -42,8 +42,6 @@ module Lint # ensure # do_something_else # end - # - # @api private class EmptyEnsure < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/empty_expression.rb b/lib/rubocop/cop/lint/empty_expression.rb index 7259d043dd9..8831f734d7c 100644 --- a/lib/rubocop/cop/lint/empty_expression.rb +++ b/lib/rubocop/cop/lint/empty_expression.rb @@ -22,8 +22,6 @@ module Lint # if (some_expression) # bar # end - # - # @api private class EmptyExpression < Base MSG = 'Avoid empty expressions.' diff --git a/lib/rubocop/cop/lint/empty_file.rb b/lib/rubocop/cop/lint/empty_file.rb index 7302b4f9e59..1825be082e2 100644 --- a/lib/rubocop/cop/lint/empty_file.rb +++ b/lib/rubocop/cop/lint/empty_file.rb @@ -20,7 +20,6 @@ module Lint # # bad # # File consisting only of comments # - # @api private class EmptyFile < Base include RangeHelp diff --git a/lib/rubocop/cop/lint/empty_interpolation.rb b/lib/rubocop/cop/lint/empty_interpolation.rb index ebb4194ced6..f28bc4013d0 100644 --- a/lib/rubocop/cop/lint/empty_interpolation.rb +++ b/lib/rubocop/cop/lint/empty_interpolation.rb @@ -16,8 +16,6 @@ module Lint # # good # # "result is #{some_result}" - # - # @api private class EmptyInterpolation < Base include Interpolation extend AutoCorrector diff --git a/lib/rubocop/cop/lint/empty_when.rb b/lib/rubocop/cop/lint/empty_when.rb index 46808d109d5..e704f2794b1 100644 --- a/lib/rubocop/cop/lint/empty_when.rb +++ b/lib/rubocop/cop/lint/empty_when.rb @@ -44,7 +44,6 @@ module Lint # # do nothing # end # - # @api private class EmptyWhen < Base MSG = 'Avoid `when` branches without a body.' diff --git a/lib/rubocop/cop/lint/ensure_return.rb b/lib/rubocop/cop/lint/ensure_return.rb index 9c74a2888b5..1bc6d60e0d8 100644 --- a/lib/rubocop/cop/lint/ensure_return.rb +++ b/lib/rubocop/cop/lint/ensure_return.rb @@ -44,8 +44,6 @@ module Lint # ensure # cleanup # end - # - # @api private class EnsureReturn < Base extend AutoCorrector include RangeHelp diff --git a/lib/rubocop/cop/lint/erb_new_arguments.rb b/lib/rubocop/cop/lint/erb_new_arguments.rb index ec3d7643768..ca7bb752233 100644 --- a/lib/rubocop/cop/lint/erb_new_arguments.rb +++ b/lib/rubocop/cop/lint/erb_new_arguments.rb @@ -59,7 +59,6 @@ module Lint # ERB.new(str, nil, '-', '@output_buffer') # end # - # @api private class ErbNewArguments < Base include RangeHelp extend TargetRubyVersion diff --git a/lib/rubocop/cop/lint/flip_flop.rb b/lib/rubocop/cop/lint/flip_flop.rb index c825488d6ad..b928ca02968 100644 --- a/lib/rubocop/cop/lint/flip_flop.rb +++ b/lib/rubocop/cop/lint/flip_flop.rb @@ -16,8 +16,6 @@ module Lint # (1..20).each do |x| # puts x if (x >= 5) && (x <= 10) # end - # - # @api private class FlipFlop < Base MSG = 'Avoid the use of flip-flop operators.' diff --git a/lib/rubocop/cop/lint/float_comparison.rb b/lib/rubocop/cop/lint/float_comparison.rb index 0db34687d93..eabb1dcada2 100644 --- a/lib/rubocop/cop/lint/float_comparison.rb +++ b/lib/rubocop/cop/lint/float_comparison.rb @@ -28,7 +28,6 @@ module Lint # # Or some other epsilon based type of comparison: # # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/ # - # @api private class FloatComparison < Base MSG = 'Avoid (in)equality comparisons of floats as they are unreliable.' diff --git a/lib/rubocop/cop/lint/float_out_of_range.rb b/lib/rubocop/cop/lint/float_out_of_range.rb index 18d219a3d40..513de8fcb8d 100644 --- a/lib/rubocop/cop/lint/float_out_of_range.rb +++ b/lib/rubocop/cop/lint/float_out_of_range.rb @@ -18,8 +18,6 @@ module Lint # # good # # float = 42.9 - # - # @api private class FloatOutOfRange < Base MSG = 'Float out of range.' diff --git a/lib/rubocop/cop/lint/format_parameter_mismatch.rb b/lib/rubocop/cop/lint/format_parameter_mismatch.rb index 4458a2a195b..19a43351a84 100644 --- a/lib/rubocop/cop/lint/format_parameter_mismatch.rb +++ b/lib/rubocop/cop/lint/format_parameter_mismatch.rb @@ -34,8 +34,6 @@ module Lint # # good # # format('Numbered format: %1$s and numbered %2$s', a_value, another) - # - # @api private class FormatParameterMismatch < Base # http://rubular.com/r/CvpbxkcTzy MSG = "Number of arguments (%i) to `%s` doesn't " \ diff --git a/lib/rubocop/cop/lint/heredoc_method_call_position.rb b/lib/rubocop/cop/lint/heredoc_method_call_position.rb index 71d42ea3f12..fd01630d7fc 100644 --- a/lib/rubocop/cop/lint/heredoc_method_call_position.rb +++ b/lib/rubocop/cop/lint/heredoc_method_call_position.rb @@ -30,7 +30,6 @@ module Lint # bar # SQL # - # @api private class HeredocMethodCallPosition < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/implicit_string_concatenation.rb b/lib/rubocop/cop/lint/implicit_string_concatenation.rb index d285c1171ef..51f8de7444b 100644 --- a/lib/rubocop/cop/lint/implicit_string_concatenation.rb +++ b/lib/rubocop/cop/lint/implicit_string_concatenation.rb @@ -22,8 +22,6 @@ module Lint # 'Item 1' \ # 'Item 2' # ] - # - # @api private class ImplicitStringConcatenation < Base MSG = 'Combine %s and %s into a single string ' \ 'literal, rather than using implicit string concatenation.' diff --git a/lib/rubocop/cop/lint/ineffective_access_modifier.rb b/lib/rubocop/cop/lint/ineffective_access_modifier.rb index b3c6549c009..4cf796bdb44 100644 --- a/lib/rubocop/cop/lint/ineffective_access_modifier.rb +++ b/lib/rubocop/cop/lint/ineffective_access_modifier.rb @@ -45,8 +45,6 @@ module Lint # end # end # end - # - # @api private class IneffectiveAccessModifier < Base MSG = '`%s` (on line %d) does not make singleton ' \ 'methods %s. Use %s instead.' diff --git a/lib/rubocop/cop/lint/inherit_exception.rb b/lib/rubocop/cop/lint/inherit_exception.rb index dabab1af241..e9c8512521e 100644 --- a/lib/rubocop/cop/lint/inherit_exception.rb +++ b/lib/rubocop/cop/lint/inherit_exception.rb @@ -33,8 +33,6 @@ module Lint # class C < StandardError; end # # C = Class.new(StandardError) - # - # @api private class InheritException < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/lint/interpolation_check.rb b/lib/rubocop/cop/lint/interpolation_check.rb index 88562798a04..70d3fa9e02a 100644 --- a/lib/rubocop/cop/lint/interpolation_check.rb +++ b/lib/rubocop/cop/lint/interpolation_check.rb @@ -16,8 +16,6 @@ module Lint # # good # # foo = "something with #{interpolation} inside" - # - # @api private class InterpolationCheck < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/literal_as_condition.rb b/lib/rubocop/cop/lint/literal_as_condition.rb index 34a663112d9..1af3e506e71 100644 --- a/lib/rubocop/cop/lint/literal_as_condition.rb +++ b/lib/rubocop/cop/lint/literal_as_condition.rb @@ -29,8 +29,6 @@ module Lint # while true # break if condition # end - # - # @api private class LiteralAsCondition < Base include RangeHelp diff --git a/lib/rubocop/cop/lint/literal_in_interpolation.rb b/lib/rubocop/cop/lint/literal_in_interpolation.rb index 42a7399ead1..6fad736bbf0 100644 --- a/lib/rubocop/cop/lint/literal_in_interpolation.rb +++ b/lib/rubocop/cop/lint/literal_in_interpolation.rb @@ -16,8 +16,6 @@ module Lint # # good # # "result is 10" - # - # @api private class LiteralInInterpolation < Base include Interpolation include RangeHelp diff --git a/lib/rubocop/cop/lint/loop.rb b/lib/rubocop/cop/lint/loop.rb index 6eff0f1d7b3..b0cb38278a3 100644 --- a/lib/rubocop/cop/lint/loop.rb +++ b/lib/rubocop/cop/lint/loop.rb @@ -42,8 +42,6 @@ module Lint # do_something # break if some_condition # end - # - # @api private class Loop < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/missing_cop_enable_directive.rb b/lib/rubocop/cop/lint/missing_cop_enable_directive.rb index de5edf310e5..bc025cc6aa8 100644 --- a/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +++ b/lib/rubocop/cop/lint/missing_cop_enable_directive.rb @@ -42,7 +42,6 @@ module Lint # # Including this, that's 3 lines on which the cop is disabled. # # rubocop:enable Layout/SpaceAroundOperators # - # @api private class MissingCopEnableDirective < Base include RangeHelp diff --git a/lib/rubocop/cop/lint/missing_super.rb b/lib/rubocop/cop/lint/missing_super.rb index 2290745ecdc..8afc00acfd0 100644 --- a/lib/rubocop/cop/lint/missing_super.rb +++ b/lib/rubocop/cop/lint/missing_super.rb @@ -37,7 +37,6 @@ module Lint # end # end # - # @api private class MissingSuper < Base CONSTRUCTOR_MSG = 'Call `super` to initialize state of the parent class.' CALLBACK_MSG = 'Call `super` to invoke callback defined in the parent class.' diff --git a/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb b/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb index f81fb7049e6..d645b1a7c65 100644 --- a/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb +++ b/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb @@ -20,7 +20,6 @@ module Lint # # good # /(FOO)(BAR)/ # - # @api private class MixedRegexpCaptureTypes < Base MSG = 'Do not mix named captures and numbered captures ' \ 'in a Regexp literal.' diff --git a/lib/rubocop/cop/lint/multiple_comparison.rb b/lib/rubocop/cop/lint/multiple_comparison.rb index 57acd8f53b4..e70d243dd0a 100644 --- a/lib/rubocop/cop/lint/multiple_comparison.rb +++ b/lib/rubocop/cop/lint/multiple_comparison.rb @@ -21,8 +21,6 @@ module Lint # # x < y && y < z # 10 <= x && x <= 20 - # - # @api private class MultipleComparison < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/nested_method_definition.rb b/lib/rubocop/cop/lint/nested_method_definition.rb index 58586552592..4f5fc5f5854 100644 --- a/lib/rubocop/cop/lint/nested_method_definition.rb +++ b/lib/rubocop/cop/lint/nested_method_definition.rb @@ -54,8 +54,6 @@ module Lint # end # end # end - # - # @api private class NestedMethodDefinition < Base MSG = 'Method definitions must not be nested. ' \ 'Use `lambda` instead.' diff --git a/lib/rubocop/cop/lint/nested_percent_literal.rb b/lib/rubocop/cop/lint/nested_percent_literal.rb index 7cb7501aa8f..5fc5b3e1e7e 100644 --- a/lib/rubocop/cop/lint/nested_percent_literal.rb +++ b/lib/rubocop/cop/lint/nested_percent_literal.rb @@ -15,8 +15,6 @@ module Lint # valid_attributes: %i[name content], # nested_attributes: %i[name content %i[incorrectly nested]] # } - # - # @api private class NestedPercentLiteral < Base include PercentLiteral diff --git a/lib/rubocop/cop/lint/next_without_accumulator.rb b/lib/rubocop/cop/lint/next_without_accumulator.rb index abf9233696b..1632ae7befa 100644 --- a/lib/rubocop/cop/lint/next_without_accumulator.rb +++ b/lib/rubocop/cop/lint/next_without_accumulator.rb @@ -22,8 +22,6 @@ module Lint # next acc if i.odd? # acc + i # end - # - # @api private class NextWithoutAccumulator < Base MSG = 'Use `next` with an accumulator argument in a `reduce`.' diff --git a/lib/rubocop/cop/lint/non_deterministic_require_order.rb b/lib/rubocop/cop/lint/non_deterministic_require_order.rb index 871ee775a98..6957a727ab1 100644 --- a/lib/rubocop/cop/lint/non_deterministic_require_order.rb +++ b/lib/rubocop/cop/lint/non_deterministic_require_order.rb @@ -51,7 +51,6 @@ module Lint # # good # Dir.glob(Rails.root.join('test', '*.rb')).sort.each(&method(:require)) # - # @api private class NonDeterministicRequireOrder < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb b/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb index 255078ea093..04dfea26dbc 100644 --- a/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +++ b/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb @@ -38,7 +38,6 @@ module Lint # end # end # - # @api private class NonLocalExitFromIterator < Base MSG = 'Non-local exit from iterator, without return value. ' \ '`next`, `break`, `Array#find`, `Array#any?`, etc. ' \ diff --git a/lib/rubocop/cop/lint/number_conversion.rb b/lib/rubocop/cop/lint/number_conversion.rb index b78f0b7265c..e04a852b760 100644 --- a/lib/rubocop/cop/lint/number_conversion.rb +++ b/lib/rubocop/cop/lint/number_conversion.rb @@ -20,8 +20,6 @@ module Lint # Integer('10', 10) # Float('10.2') # Complex('10') - # - # @api private class NumberConversion < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/ordered_magic_comments.rb b/lib/rubocop/cop/lint/ordered_magic_comments.rb index b0bb8622f8e..97da7b98bb5 100644 --- a/lib/rubocop/cop/lint/ordered_magic_comments.rb +++ b/lib/rubocop/cop/lint/ordered_magic_comments.rb @@ -27,7 +27,6 @@ module Lint # # frozen_string_literal: true # p [''.frozen?, ''.encoding] #=> [true, #] # - # @api private class OrderedMagicComments < Base include FrozenStringLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb b/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb index 2807f60ad7c..3843da78f2b 100644 --- a/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +++ b/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb @@ -18,7 +18,6 @@ module Lint # # puts $1 # => foo # - # @api private class OutOfRangeRegexpRef < Base MSG = 'Do not use out of range reference for the Regexp.' diff --git a/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb b/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb index 31574b8cf60..c70e734846c 100644 --- a/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +++ b/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb @@ -15,8 +15,6 @@ module Lint # do_something(foo) # do_something (2 + 3) * 4 # do_something (foo * bar).baz - # - # @api private class ParenthesesAsGroupedExpression < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/percent_string_array.rb b/lib/rubocop/cop/lint/percent_string_array.rb index febf2246ab2..f4ff49d9bb2 100644 --- a/lib/rubocop/cop/lint/percent_string_array.rb +++ b/lib/rubocop/cop/lint/percent_string_array.rb @@ -20,8 +20,6 @@ module Lint # # good # # %w(foo bar) - # - # @api private class PercentStringArray < Base include PercentLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/lint/percent_symbol_array.rb b/lib/rubocop/cop/lint/percent_symbol_array.rb index 7ae6199aa97..8591b5c1e9b 100644 --- a/lib/rubocop/cop/lint/percent_symbol_array.rb +++ b/lib/rubocop/cop/lint/percent_symbol_array.rb @@ -20,8 +20,6 @@ module Lint # # good # # %i(foo bar) - # - # @api private class PercentSymbolArray < Base include PercentLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/lint/raise_exception.rb b/lib/rubocop/cop/lint/raise_exception.rb index 77ed5fbc3f7..f8422820148 100644 --- a/lib/rubocop/cop/lint/raise_exception.rb +++ b/lib/rubocop/cop/lint/raise_exception.rb @@ -27,8 +27,6 @@ module Lint # raise Exception # This exception means `Gem::Exception`. # end # end - # - # @api private class RaiseException < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/rand_one.rb b/lib/rubocop/cop/lint/rand_one.rb index 5fede8ef5b4..cd7625e071c 100644 --- a/lib/rubocop/cop/lint/rand_one.rb +++ b/lib/rubocop/cop/lint/rand_one.rb @@ -20,8 +20,6 @@ module Lint # # good # # 0 # just use 0 instead - # - # @api private class RandOne < Base MSG = '`%s` always returns `0`. ' \ 'Perhaps you meant `rand(2)` or `rand`?' diff --git a/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb b/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb index 18dde4db11e..eaa845713a6 100644 --- a/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb +++ b/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb @@ -25,8 +25,6 @@ module Lint # # # good # x += 1 - # - # @api private class RedundantCopDisableDirective < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb b/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb index 16308ff9e5a..41ba0a951fe 100644 --- a/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +++ b/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb @@ -34,8 +34,6 @@ module Lint # foo = "1" # # rubocop:enable all # baz - # - # @api private class RedundantCopEnableDirective < Base include RangeHelp include SurroundingSpace diff --git a/lib/rubocop/cop/lint/redundant_require_statement.rb b/lib/rubocop/cop/lint/redundant_require_statement.rb index 8e8dbf5bfc7..025c97d569e 100644 --- a/lib/rubocop/cop/lint/redundant_require_statement.rb +++ b/lib/rubocop/cop/lint/redundant_require_statement.rb @@ -21,8 +21,6 @@ module Lint # # # good # require 'unloaded_feature' - # - # @api private class RedundantRequireStatement < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/redundant_splat_expansion.rb b/lib/rubocop/cop/lint/redundant_splat_expansion.rb index 0d0ea20febe..e05f0bbb411 100644 --- a/lib/rubocop/cop/lint/redundant_splat_expansion.rb +++ b/lib/rubocop/cop/lint/redundant_splat_expansion.rb @@ -49,8 +49,6 @@ module Lint # else # baz # end - # - # @api private class RedundantSplatExpansion < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/redundant_string_coercion.rb b/lib/rubocop/cop/lint/redundant_string_coercion.rb index 3a0f5aa2083..a8e3a32acfb 100644 --- a/lib/rubocop/cop/lint/redundant_string_coercion.rb +++ b/lib/rubocop/cop/lint/redundant_string_coercion.rb @@ -17,8 +17,6 @@ module Lint # # good # # "result is #{something}" - # - # @api private class RedundantStringCoercion < Base include Interpolation extend AutoCorrector diff --git a/lib/rubocop/cop/lint/redundant_with_index.rb b/lib/rubocop/cop/lint/redundant_with_index.rb index efae4020c07..9509b2a508d 100644 --- a/lib/rubocop/cop/lint/redundant_with_index.rb +++ b/lib/rubocop/cop/lint/redundant_with_index.rb @@ -26,7 +26,6 @@ module Lint # v # end # - # @api private class RedundantWithIndex < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/redundant_with_object.rb b/lib/rubocop/cop/lint/redundant_with_object.rb index c8ee621cbee..bbbf1dfa2a8 100644 --- a/lib/rubocop/cop/lint/redundant_with_object.rb +++ b/lib/rubocop/cop/lint/redundant_with_object.rb @@ -26,7 +26,6 @@ module Lint # v # end # - # @api private class RedundantWithObject < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/regexp_as_condition.rb b/lib/rubocop/cop/lint/regexp_as_condition.rb index d2d9d2f1b2b..e0d3465af85 100644 --- a/lib/rubocop/cop/lint/regexp_as_condition.rb +++ b/lib/rubocop/cop/lint/regexp_as_condition.rb @@ -16,8 +16,6 @@ module Lint # if /foo/ =~ $_ # do_something # end - # - # @api private class RegexpAsCondition < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/require_parentheses.rb b/lib/rubocop/cop/lint/require_parentheses.rb index 6611e72b967..be938aa4d7f 100644 --- a/lib/rubocop/cop/lint/require_parentheses.rb +++ b/lib/rubocop/cop/lint/require_parentheses.rb @@ -27,8 +27,6 @@ module Lint # if day.is?(:tuesday) && month == :jan # # ... # end - # - # @api private class RequireParentheses < Base include RangeHelp diff --git a/lib/rubocop/cop/lint/rescue_exception.rb b/lib/rubocop/cop/lint/rescue_exception.rb index d4ae85c8722..88d80a89089 100644 --- a/lib/rubocop/cop/lint/rescue_exception.rb +++ b/lib/rubocop/cop/lint/rescue_exception.rb @@ -24,8 +24,6 @@ module Lint # rescue ArgumentError # handle_exception # end - # - # @api private class RescueException < Base MSG = 'Avoid rescuing the `Exception` class. ' \ 'Perhaps you meant to rescue `StandardError`?' diff --git a/lib/rubocop/cop/lint/rescue_type.rb b/lib/rubocop/cop/lint/rescue_type.rb index aa5e8c20766..160cde38f52 100644 --- a/lib/rubocop/cop/lint/rescue_type.rb +++ b/lib/rubocop/cop/lint/rescue_type.rb @@ -34,8 +34,6 @@ module Lint # rescue NameError # baz # end - # - # @api private class RescueType < Base include RescueNode extend AutoCorrector diff --git a/lib/rubocop/cop/lint/return_in_void_context.rb b/lib/rubocop/cop/lint/return_in_void_context.rb index b1567834a5b..95e6c471a55 100644 --- a/lib/rubocop/cop/lint/return_in_void_context.rb +++ b/lib/rubocop/cop/lint/return_in_void_context.rb @@ -31,8 +31,6 @@ module Lint # def foo=(bar) # return # end - # - # @api private class ReturnInVoidContext < Base MSG = 'Do not return a value in `%s`.' diff --git a/lib/rubocop/cop/lint/safe_navigation_chain.rb b/lib/rubocop/cop/lint/safe_navigation_chain.rb index 4550b4c5262..ef5e69af5be 100644 --- a/lib/rubocop/cop/lint/safe_navigation_chain.rb +++ b/lib/rubocop/cop/lint/safe_navigation_chain.rb @@ -23,8 +23,6 @@ module Lint # # x&.foo&.bar # x&.foo || bar - # - # @api private class SafeNavigationChain < Base include NilMethods diff --git a/lib/rubocop/cop/lint/safe_navigation_consistency.rb b/lib/rubocop/cop/lint/safe_navigation_consistency.rb index 3287511dfd5..0f686e0c662 100644 --- a/lib/rubocop/cop/lint/safe_navigation_consistency.rb +++ b/lib/rubocop/cop/lint/safe_navigation_consistency.rb @@ -26,7 +26,6 @@ module Lint # # good # foo&.bar && (foobar.baz || foo&.baz) # - # @api private class SafeNavigationConsistency < Base include IgnoredNode include NilMethods diff --git a/lib/rubocop/cop/lint/safe_navigation_with_empty.rb b/lib/rubocop/cop/lint/safe_navigation_with_empty.rb index f967517d9cb..57a3ee501eb 100644 --- a/lib/rubocop/cop/lint/safe_navigation_with_empty.rb +++ b/lib/rubocop/cop/lint/safe_navigation_with_empty.rb @@ -19,7 +19,6 @@ module Lint # return if foo && foo.empty? # return unless foo && foo.empty? # - # @api private class SafeNavigationWithEmpty < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/script_permission.rb b/lib/rubocop/cop/lint/script_permission.rb index 57ed24f1312..85861837b9f 100644 --- a/lib/rubocop/cop/lint/script_permission.rb +++ b/lib/rubocop/cop/lint/script_permission.rb @@ -30,7 +30,6 @@ module Lint # # puts 'hello, world' # - # @api private class ScriptPermission < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/self_assignment.rb b/lib/rubocop/cop/lint/self_assignment.rb index ccc36b17061..9d453f09a0e 100644 --- a/lib/rubocop/cop/lint/self_assignment.rb +++ b/lib/rubocop/cop/lint/self_assignment.rb @@ -16,7 +16,6 @@ module Lint # foo, bar = bar, foo # Foo = Bar # - # @api private class SelfAssignment < Base MSG = 'Self-assignment detected.' diff --git a/lib/rubocop/cop/lint/send_with_mixin_argument.rb b/lib/rubocop/cop/lint/send_with_mixin_argument.rb index 8bcdaac7cc5..e5f7ee290df 100644 --- a/lib/rubocop/cop/lint/send_with_mixin_argument.rb +++ b/lib/rubocop/cop/lint/send_with_mixin_argument.rb @@ -34,7 +34,6 @@ module Lint # Foo.prepend Bar # Foo.extend Bar # - # @api private class SendWithMixinArgument < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/shadowed_argument.rb b/lib/rubocop/cop/lint/shadowed_argument.rb index 14f1d0d4704..6548fcac0ec 100644 --- a/lib/rubocop/cop/lint/shadowed_argument.rb +++ b/lib/rubocop/cop/lint/shadowed_argument.rb @@ -63,7 +63,6 @@ module Lint # bar # end # - # @api private class ShadowedArgument < Base MSG = 'Argument `%s` was shadowed by a local variable ' \ 'before it was used.' diff --git a/lib/rubocop/cop/lint/shadowed_exception.rb b/lib/rubocop/cop/lint/shadowed_exception.rb index de83b7880c1..dd18c34b527 100644 --- a/lib/rubocop/cop/lint/shadowed_exception.rb +++ b/lib/rubocop/cop/lint/shadowed_exception.rb @@ -43,7 +43,6 @@ module Lint # handle_standard_error # end # - # @api private class ShadowedException < Base include RescueNode include RangeHelp diff --git a/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb b/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb index 368420aa3d9..7fcd3cc7856 100644 --- a/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +++ b/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb @@ -31,8 +31,6 @@ module Lint # do_something(bar) # end # end - # - # @api private class ShadowingOuterLocalVariable < Base MSG = 'Shadowing outer local variable - `%s`.' diff --git a/lib/rubocop/cop/lint/struct_new_override.rb b/lib/rubocop/cop/lint/struct_new_override.rb index 2e6573c24a7..dba6adae11f 100644 --- a/lib/rubocop/cop/lint/struct_new_override.rb +++ b/lib/rubocop/cop/lint/struct_new_override.rb @@ -21,7 +21,6 @@ module Lint # g.clone #=> # # g.count #=> 2 # - # @api private class StructNewOverride < Base MSG = '`%s` member overrides `Struct#%s`' \ ' and it may be unexpected.' diff --git a/lib/rubocop/cop/lint/suppressed_exception.rb b/lib/rubocop/cop/lint/suppressed_exception.rb index 58529ee8da1..c3c540926d9 100644 --- a/lib/rubocop/cop/lint/suppressed_exception.rb +++ b/lib/rubocop/cop/lint/suppressed_exception.rb @@ -64,8 +64,6 @@ module Lint # rescue # # do nothing # end - # - # @api private class SuppressedException < Base MSG = 'Do not suppress exceptions.' diff --git a/lib/rubocop/cop/lint/syntax.rb b/lib/rubocop/cop/lint/syntax.rb index 044c57e07ad..77393bc8ce9 100644 --- a/lib/rubocop/cop/lint/syntax.rb +++ b/lib/rubocop/cop/lint/syntax.rb @@ -5,8 +5,6 @@ module Cop module Lint # This cop repacks Parser's diagnostics/errors # into RuboCop's offenses. - # - # @api private class Syntax < Base def on_other_file add_offense_from_error(processed_source.parser_error) if processed_source.parser_error diff --git a/lib/rubocop/cop/lint/to_json.rb b/lib/rubocop/cop/lint/to_json.rb index 7a8e5c35e28..30b7fc6aeb5 100644 --- a/lib/rubocop/cop/lint/to_json.rb +++ b/lib/rubocop/cop/lint/to_json.rb @@ -17,7 +17,6 @@ module Lint # def to_json(*_args) # end # - # @api private class ToJSON < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/top_level_return_with_argument.rb b/lib/rubocop/cop/lint/top_level_return_with_argument.rb index 1c710b60f70..48c3dffa914 100644 --- a/lib/rubocop/cop/lint/top_level_return_with_argument.rb +++ b/lib/rubocop/cop/lint/top_level_return_with_argument.rb @@ -11,8 +11,6 @@ module Lint # # # Detected since Ruby 2.7 # return 1 # 1 is always ignored. - # - # @api private class TopLevelReturnWithArgument < Base # This cop works by validating the ancestors of the return node. A # top-level return node's ancestors should not be of block, def, or diff --git a/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb b/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb index 93e9c44de7e..8529d563b0b 100644 --- a/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb +++ b/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb @@ -27,7 +27,6 @@ module Lint # end # end # - # @api private class TrailingCommaInAttributeDeclaration < Base extend AutoCorrector include RangeHelp diff --git a/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb b/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb index 2412a351f7c..8fcdc1b8b0f 100644 --- a/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +++ b/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb @@ -40,7 +40,6 @@ module Lint # {_id: _id, profit: revenue - cost} # end # - # @api private class UnderscorePrefixedVariableName < Base MSG = 'Do not use prefix `_` for a variable that is used.' diff --git a/lib/rubocop/cop/lint/unified_integer.rb b/lib/rubocop/cop/lint/unified_integer.rb index 9e98133c125..fa585ab3f59 100644 --- a/lib/rubocop/cop/lint/unified_integer.rb +++ b/lib/rubocop/cop/lint/unified_integer.rb @@ -17,8 +17,6 @@ module Lint # # good # # 1.is_a?(Integer) - # - # @api private class UnifiedInteger < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/unreachable_code.rb b/lib/rubocop/cop/lint/unreachable_code.rb index fe7ab89da2b..10b957e8f28 100644 --- a/lib/rubocop/cop/lint/unreachable_code.rb +++ b/lib/rubocop/cop/lint/unreachable_code.rb @@ -34,8 +34,6 @@ module Lint # def some_method # do_something # end - # - # @api private class UnreachableCode < Base MSG = 'Unreachable code detected.' diff --git a/lib/rubocop/cop/lint/unreachable_loop.rb b/lib/rubocop/cop/lint/unreachable_loop.rb index c0f89480f8d..ecf863cbee7 100644 --- a/lib/rubocop/cop/lint/unreachable_loop.rb +++ b/lib/rubocop/cop/lint/unreachable_loop.rb @@ -70,7 +70,6 @@ module Lint # raise NotFoundError # end # - # @api private class UnreachableLoop < Base MSG = 'This loop will have at most one iteration.' diff --git a/lib/rubocop/cop/lint/unused_block_argument.rb b/lib/rubocop/cop/lint/unused_block_argument.rb index 1dfdc70183a..260a6771793 100644 --- a/lib/rubocop/cop/lint/unused_block_argument.rb +++ b/lib/rubocop/cop/lint/unused_block_argument.rb @@ -52,7 +52,6 @@ module Lint # foo # end # - # @api private class UnusedBlockArgument < Base include UnusedArgument extend AutoCorrector diff --git a/lib/rubocop/cop/lint/unused_method_argument.rb b/lib/rubocop/cop/lint/unused_method_argument.rb index 15755d68c4f..2a49c478e01 100644 --- a/lib/rubocop/cop/lint/unused_method_argument.rb +++ b/lib/rubocop/cop/lint/unused_method_argument.rb @@ -58,7 +58,6 @@ module Lint # fail "TODO" # end # - # @api private class UnusedMethodArgument < Base include UnusedArgument extend AutoCorrector diff --git a/lib/rubocop/cop/lint/uri_escape_unescape.rb b/lib/rubocop/cop/lint/uri_escape_unescape.rb index 1f34114f0c6..883395aa0c9 100644 --- a/lib/rubocop/cop/lint/uri_escape_unescape.rb +++ b/lib/rubocop/cop/lint/uri_escape_unescape.rb @@ -29,8 +29,6 @@ module Lint # CGI.unescape(enc_uri) # URI.decode_www_form(enc_uri) # URI.decode_www_form_component(enc_uri) - # - # @api private class UriEscapeUnescape < Base ALTERNATE_METHODS_OF_URI_ESCAPE = %w[ CGI.escape diff --git a/lib/rubocop/cop/lint/uri_regexp.rb b/lib/rubocop/cop/lint/uri_regexp.rb index 2b634194951..4340f34b9a9 100644 --- a/lib/rubocop/cop/lint/uri_regexp.rb +++ b/lib/rubocop/cop/lint/uri_regexp.rb @@ -13,7 +13,6 @@ module Lint # # good # URI::DEFAULT_PARSER.make_regexp('http://example.com') # - # @api private class UriRegexp < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/useless_access_modifier.rb b/lib/rubocop/cop/lint/useless_access_modifier.rb index 9485fcfcda5..2b2edf60805 100644 --- a/lib/rubocop/cop/lint/useless_access_modifier.rb +++ b/lib/rubocop/cop/lint/useless_access_modifier.rb @@ -124,8 +124,6 @@ module Lint # # delegate :method_a, to: :method_b # end - # - # @api private class UselessAccessModifier < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/lint/useless_assignment.rb b/lib/rubocop/cop/lint/useless_assignment.rb index 55d07e8881e..ec60c404427 100644 --- a/lib/rubocop/cop/lint/useless_assignment.rb +++ b/lib/rubocop/cop/lint/useless_assignment.rb @@ -30,8 +30,6 @@ module Lint # some_var = 1 # do_something(some_var) # end - # - # @api private class UselessAssignment < Base MSG = 'Useless assignment to variable - `%s`.' diff --git a/lib/rubocop/cop/lint/useless_else_without_rescue.rb b/lib/rubocop/cop/lint/useless_else_without_rescue.rb index 48e5c23f440..222b351ede9 100644 --- a/lib/rubocop/cop/lint/useless_else_without_rescue.rb +++ b/lib/rubocop/cop/lint/useless_else_without_rescue.rb @@ -29,8 +29,6 @@ module Lint # else # do_something_else # end - # - # @api private class UselessElseWithoutRescue < Base MSG = '`else` without `rescue` is useless.' diff --git a/lib/rubocop/cop/lint/useless_method_definition.rb b/lib/rubocop/cop/lint/useless_method_definition.rb index 17a023da016..e38b06e7532 100644 --- a/lib/rubocop/cop/lint/useless_method_definition.rb +++ b/lib/rubocop/cop/lint/useless_method_definition.rb @@ -40,7 +40,6 @@ module Lint # # Comment. # end # - # @api private class UselessMethodDefinition < Base extend AutoCorrector diff --git a/lib/rubocop/cop/lint/useless_setter_call.rb b/lib/rubocop/cop/lint/useless_setter_call.rb index 2454fcef76f..1e81d58e404 100644 --- a/lib/rubocop/cop/lint/useless_setter_call.rb +++ b/lib/rubocop/cop/lint/useless_setter_call.rb @@ -28,8 +28,6 @@ module Lint # x.attr = 5 # x # end - # - # @api private class UselessSetterCall < Base MSG = 'Useless setter call to local variable `%s`.' ASSIGNMENT_TYPES = %i[lvasgn ivasgn cvasgn gvasgn].freeze diff --git a/lib/rubocop/cop/lint/void.rb b/lib/rubocop/cop/lint/void.rb index 68c7958874f..cb49a0ee595 100644 --- a/lib/rubocop/cop/lint/void.rb +++ b/lib/rubocop/cop/lint/void.rb @@ -40,8 +40,6 @@ module Lint # some_array.sort! # do_something(some_array) # end - # - # @api private class Void < Base OP_MSG = 'Operator `%s` used in void context.' VAR_MSG = 'Variable `%s` used in void context.' diff --git a/lib/rubocop/cop/metrics/abc_size.rb b/lib/rubocop/cop/metrics/abc_size.rb index 9f3ca45dc6a..d3d6901e81d 100644 --- a/lib/rubocop/cop/metrics/abc_size.rb +++ b/lib/rubocop/cop/metrics/abc_size.rb @@ -7,8 +7,6 @@ module Metrics # configured maximum. The ABC size is based on assignments, branches # (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric # and https://en.wikipedia.org/wiki/ABC_Software_Metric. - # - # @api private class AbcSize < Base include MethodComplexity diff --git a/lib/rubocop/cop/metrics/block_length.rb b/lib/rubocop/cop/metrics/block_length.rb index de08790996c..a88a9963b4f 100644 --- a/lib/rubocop/cop/metrics/block_length.rb +++ b/lib/rubocop/cop/metrics/block_length.rb @@ -29,8 +29,6 @@ module Metrics # content. # HEREDOC # end # 5 points - # - # @api private class BlockLength < Base include CodeLength diff --git a/lib/rubocop/cop/metrics/block_nesting.rb b/lib/rubocop/cop/metrics/block_nesting.rb index 8314bc0fd8d..9d13a0a7c0a 100644 --- a/lib/rubocop/cop/metrics/block_nesting.rb +++ b/lib/rubocop/cop/metrics/block_nesting.rb @@ -11,8 +11,6 @@ module Metrics # towards the nesting level. Set to `true` to count blocks as well. # # The maximum level of nesting allowed is configurable. - # - # @api private class BlockNesting < Base include ConfigurableMax diff --git a/lib/rubocop/cop/metrics/class_length.rb b/lib/rubocop/cop/metrics/class_length.rb index 9963b715f5f..46c0df9a5ec 100644 --- a/lib/rubocop/cop/metrics/class_length.rb +++ b/lib/rubocop/cop/metrics/class_length.rb @@ -29,7 +29,6 @@ module Metrics # HEREDOC # end # 5 points # - # @api private class ClassLength < Base include CodeLength diff --git a/lib/rubocop/cop/metrics/cyclomatic_complexity.rb b/lib/rubocop/cop/metrics/cyclomatic_complexity.rb index d564b9e386f..9065c378dc1 100644 --- a/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +++ b/lib/rubocop/cop/metrics/cyclomatic_complexity.rb @@ -29,8 +29,6 @@ module Metrics # # self # end # total: 6 - # - # @api private class CyclomaticComplexity < Base include MethodComplexity include Utils::IteratingBlock diff --git a/lib/rubocop/cop/metrics/method_length.rb b/lib/rubocop/cop/metrics/method_length.rb index ec7226c606a..0d5827bb5cc 100644 --- a/lib/rubocop/cop/metrics/method_length.rb +++ b/lib/rubocop/cop/metrics/method_length.rb @@ -29,7 +29,6 @@ module Metrics # HEREDOC # end # 5 points # - # @api private class MethodLength < Base include CodeLength diff --git a/lib/rubocop/cop/metrics/module_length.rb b/lib/rubocop/cop/metrics/module_length.rb index 88498e1abaf..e054a03f789 100644 --- a/lib/rubocop/cop/metrics/module_length.rb +++ b/lib/rubocop/cop/metrics/module_length.rb @@ -29,7 +29,6 @@ module Metrics # HEREDOC # end # 5 points # - # @api private class ModuleLength < Base include CodeLength diff --git a/lib/rubocop/cop/metrics/parameter_lists.rb b/lib/rubocop/cop/metrics/parameter_lists.rb index 19a72da7c0e..3c3dcb30ee3 100644 --- a/lib/rubocop/cop/metrics/parameter_lists.rb +++ b/lib/rubocop/cop/metrics/parameter_lists.rb @@ -6,8 +6,6 @@ module Metrics # This cop checks for methods with too many parameters. # The maximum number of parameters is configurable. # Keyword arguments can optionally be excluded from the total count. - # - # @api private class ParameterLists < Base include ConfigurableMax diff --git a/lib/rubocop/cop/migration/department_name.rb b/lib/rubocop/cop/migration/department_name.rb index 2e950fd55ec..6aac2797a47 100644 --- a/lib/rubocop/cop/migration/department_name.rb +++ b/lib/rubocop/cop/migration/department_name.rb @@ -5,8 +5,6 @@ module Cop module Migration # Check that cop names in rubocop:disable comments are given with # department name. - # - # @api private class DepartmentName < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/naming/accessor_method_name.rb b/lib/rubocop/cop/naming/accessor_method_name.rb index e7fdafb5bb5..ac5ea74f263 100644 --- a/lib/rubocop/cop/naming/accessor_method_name.rb +++ b/lib/rubocop/cop/naming/accessor_method_name.rb @@ -21,8 +21,6 @@ module Naming # # good # def attribute # end - # - # @api private class AccessorMethodName < Base MSG_READER = 'Do not prefix reader method names with `get_`.' MSG_WRITER = 'Do not prefix writer method names with `set_`.' diff --git a/lib/rubocop/cop/naming/ascii_identifiers.rb b/lib/rubocop/cop/naming/ascii_identifiers.rb index fd2375bbae5..4892e8a3a4b 100644 --- a/lib/rubocop/cop/naming/ascii_identifiers.rb +++ b/lib/rubocop/cop/naming/ascii_identifiers.rb @@ -52,7 +52,6 @@ module Naming # # FOÖ = "foo" # - # @api private class AsciiIdentifiers < Base include RangeHelp diff --git a/lib/rubocop/cop/naming/binary_operator_parameter_name.rb b/lib/rubocop/cop/naming/binary_operator_parameter_name.rb index 0b059b5bdbc..805a4c5b5e7 100644 --- a/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +++ b/lib/rubocop/cop/naming/binary_operator_parameter_name.rb @@ -13,8 +13,6 @@ module Naming # # # good # def +(other); end - # - # @api private class BinaryOperatorParameterName < Base MSG = 'When defining the `%s` operator, ' \ 'name its argument `other`.' diff --git a/lib/rubocop/cop/naming/block_parameter_name.rb b/lib/rubocop/cop/naming/block_parameter_name.rb index 7259e7330ce..779457ff708 100644 --- a/lib/rubocop/cop/naming/block_parameter_name.rb +++ b/lib/rubocop/cop/naming/block_parameter_name.rb @@ -35,8 +35,6 @@ module Naming # foo { |speed, distance| speed * distance } # # baz { |age, height, gender| do_stuff(age, height, gender) } - # - # @api private class BlockParameterName < Base include UncommunicativeName diff --git a/lib/rubocop/cop/naming/class_and_module_camel_case.rb b/lib/rubocop/cop/naming/class_and_module_camel_case.rb index 2175af2cf6d..bfdb608c780 100644 --- a/lib/rubocop/cop/naming/class_and_module_camel_case.rb +++ b/lib/rubocop/cop/naming/class_and_module_camel_case.rb @@ -26,8 +26,6 @@ module Naming # end # class module_parent::MyModule # end - # - # @api private class ClassAndModuleCamelCase < Base MSG = 'Use CamelCase for classes and modules.' diff --git a/lib/rubocop/cop/naming/constant_name.rb b/lib/rubocop/cop/naming/constant_name.rb index c6c59bd1d18..69f8efaaa1e 100644 --- a/lib/rubocop/cop/naming/constant_name.rb +++ b/lib/rubocop/cop/naming/constant_name.rb @@ -17,8 +17,6 @@ module Naming # # # good # INCH_IN_CM = 2.54 - # - # @api private class ConstantName < Base MSG = 'Use SCREAMING_SNAKE_CASE for constants.' # Use POSIX character classes, so we allow accented characters rather diff --git a/lib/rubocop/cop/naming/file_name.rb b/lib/rubocop/cop/naming/file_name.rb index d4dec841760..9bc07078b20 100644 --- a/lib/rubocop/cop/naming/file_name.rb +++ b/lib/rubocop/cop/naming/file_name.rb @@ -24,8 +24,6 @@ module Naming # lib/layout_manager.rb # # anything/using_snake_case.rake - # - # @api private class FileName < Base include RangeHelp diff --git a/lib/rubocop/cop/naming/heredoc_delimiter_case.rb b/lib/rubocop/cop/naming/heredoc_delimiter_case.rb index 63878dda433..f793a6cb11b 100644 --- a/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +++ b/lib/rubocop/cop/naming/heredoc_delimiter_case.rb @@ -27,8 +27,6 @@ module Naming # <<-sql # SELECT * FROM foo # sql - # - # @api private class HeredocDelimiterCase < Base include Heredoc include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb b/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb index 516f0a6970a..a28eb0456ad 100644 --- a/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +++ b/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb @@ -23,8 +23,6 @@ module Naming # <<-EOS # SELECT * FROM foo # EOS - # - # @api private class HeredocDelimiterNaming < Base include Heredoc diff --git a/lib/rubocop/cop/naming/memoized_instance_variable_name.rb b/lib/rubocop/cop/naming/memoized_instance_variable_name.rb index 8a681b1446f..73eac5cd8bd 100644 --- a/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +++ b/lib/rubocop/cop/naming/memoized_instance_variable_name.rb @@ -84,8 +84,6 @@ module Naming # def _foo # @_foo ||= calculate_expensive_thing # end - # - # @api private class MemoizedInstanceVariableName < Base include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/naming/method_name.rb b/lib/rubocop/cop/naming/method_name.rb index 182c8623700..138cef19c9d 100644 --- a/lib/rubocop/cop/naming/method_name.rb +++ b/lib/rubocop/cop/naming/method_name.rb @@ -28,8 +28,6 @@ module Naming # # # good # def fooBar; end - # - # @api private class MethodName < Base include ConfigurableNaming include IgnoredPattern diff --git a/lib/rubocop/cop/naming/method_parameter_name.rb b/lib/rubocop/cop/naming/method_parameter_name.rb index de5d53c89bf..5b76849e623 100644 --- a/lib/rubocop/cop/naming/method_parameter_name.rb +++ b/lib/rubocop/cop/naming/method_parameter_name.rb @@ -43,8 +43,6 @@ module Naming # def baz(age_a, height_b, gender_c) # do_stuff(age_a, height_b, gender_c) # end - # - # @api private class MethodParameterName < Base include UncommunicativeName diff --git a/lib/rubocop/cop/naming/predicate_name.rb b/lib/rubocop/cop/naming/predicate_name.rb index a95b1e2ed0c..52c665ee3f5 100644 --- a/lib/rubocop/cop/naming/predicate_name.rb +++ b/lib/rubocop/cop/naming/predicate_name.rb @@ -27,8 +27,6 @@ module Naming # # good # def value? # end - # - # @api private class PredicateName < Base include AllowedMethods diff --git a/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb b/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb index 4f0e52218bc..ac748c2d7ba 100644 --- a/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +++ b/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb @@ -53,7 +53,6 @@ module Naming # # do something # end # - # @api private class RescuedExceptionsVariableName < Base extend AutoCorrector diff --git a/lib/rubocop/cop/naming/variable_name.rb b/lib/rubocop/cop/naming/variable_name.rb index 1c24e237c03..706058160a8 100644 --- a/lib/rubocop/cop/naming/variable_name.rb +++ b/lib/rubocop/cop/naming/variable_name.rb @@ -19,8 +19,6 @@ module Naming # # # good # fooBar = 1 - # - # @api private class VariableName < Base include ConfigurableNaming diff --git a/lib/rubocop/cop/naming/variable_number.rb b/lib/rubocop/cop/naming/variable_number.rb index 18c6fc8f4aa..0347de7b2a4 100644 --- a/lib/rubocop/cop/naming/variable_number.rb +++ b/lib/rubocop/cop/naming/variable_number.rb @@ -37,8 +37,6 @@ module Naming # variableone = 1 # # variable_one = 1 - # - # @api private class VariableNumber < Base include ConfigurableNumbering diff --git a/lib/rubocop/cop/security/eval.rb b/lib/rubocop/cop/security/eval.rb index 30cffab9999..dc8a2548da8 100644 --- a/lib/rubocop/cop/security/eval.rb +++ b/lib/rubocop/cop/security/eval.rb @@ -11,8 +11,6 @@ module Security # # eval(something) # binding.eval(something) - # - # @api private class Eval < Base MSG = 'The use of `eval` is a serious security risk.' diff --git a/lib/rubocop/cop/security/json_load.rb b/lib/rubocop/cop/security/json_load.rb index 9d02c769127..8777fbdfd2f 100644 --- a/lib/rubocop/cop/security/json_load.rb +++ b/lib/rubocop/cop/security/json_load.rb @@ -22,7 +22,6 @@ module Security # # good # JSON.parse("{}") # - # @api private class JSONLoad < Base extend AutoCorrector diff --git a/lib/rubocop/cop/security/marshal_load.rb b/lib/rubocop/cop/security/marshal_load.rb index a78d33c2553..44f2a8402b0 100644 --- a/lib/rubocop/cop/security/marshal_load.rb +++ b/lib/rubocop/cop/security/marshal_load.rb @@ -18,7 +18,6 @@ module Security # # okish - deep copy hack # Marshal.load(Marshal.dump({})) # - # @api private class MarshalLoad < Base MSG = 'Avoid using `Marshal.%s`.' diff --git a/lib/rubocop/cop/security/open.rb b/lib/rubocop/cop/security/open.rb index 8991cca1c18..72d758249dd 100644 --- a/lib/rubocop/cop/security/open.rb +++ b/lib/rubocop/cop/security/open.rb @@ -19,8 +19,6 @@ module Security # File.open(something) # IO.popen(something) # URI.parse(something).open - # - # @api private class Open < Base MSG = 'The use of `Kernel#open` is a serious security risk.' diff --git a/lib/rubocop/cop/security/yaml_load.rb b/lib/rubocop/cop/security/yaml_load.rb index ce89fb5a8c0..bedbe4efd42 100644 --- a/lib/rubocop/cop/security/yaml_load.rb +++ b/lib/rubocop/cop/security/yaml_load.rb @@ -15,7 +15,6 @@ module Security # YAML.safe_load("--- foo") # YAML.dump("foo") # - # @api private class YAMLLoad < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/access_modifier_declarations.rb b/lib/rubocop/cop/style/access_modifier_declarations.rb index bf75a8ab24d..3f8b293ca42 100644 --- a/lib/rubocop/cop/style/access_modifier_declarations.rb +++ b/lib/rubocop/cop/style/access_modifier_declarations.rb @@ -62,8 +62,6 @@ module Style # private :bar, :baz # # end - # - # @api private class AccessModifierDeclarations < Base include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/accessor_grouping.rb b/lib/rubocop/cop/style/accessor_grouping.rb index 49db01772b7..61c83bc8ccf 100644 --- a/lib/rubocop/cop/style/accessor_grouping.rb +++ b/lib/rubocop/cop/style/accessor_grouping.rb @@ -31,7 +31,6 @@ module Style # attr_reader :baz # end # - # @api private class AccessorGrouping < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/alias.rb b/lib/rubocop/cop/style/alias.rb index b6b3ae9b566..416612c2b7f 100644 --- a/lib/rubocop/cop/style/alias.rb +++ b/lib/rubocop/cop/style/alias.rb @@ -22,8 +22,6 @@ module Style # # # good # alias_method :bar, :foo - # - # @api private class Alias < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/and_or.rb b/lib/rubocop/cop/style/and_or.rb index 0d35c489aaf..10572758cfc 100644 --- a/lib/rubocop/cop/style/and_or.rb +++ b/lib/rubocop/cop/style/and_or.rb @@ -36,8 +36,6 @@ module Style # # good # if foo && bar # end - # - # @api private class AndOr < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/array_coercion.rb b/lib/rubocop/cop/style/array_coercion.rb index 27d1a2366f1..73d75ceead8 100644 --- a/lib/rubocop/cop/style/array_coercion.rb +++ b/lib/rubocop/cop/style/array_coercion.rb @@ -16,7 +16,6 @@ module Style # # good (and a bit more readable) # Array(paths).each { |path| do_something(path) } # - # @api private class ArrayCoercion < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/array_join.rb b/lib/rubocop/cop/style/array_join.rb index 8e4fcef37a7..96ba8d6567e 100644 --- a/lib/rubocop/cop/style/array_join.rb +++ b/lib/rubocop/cop/style/array_join.rb @@ -17,7 +17,6 @@ module Style # # good # %w(foo bar baz).join(",") # - # @api private class ArrayJoin < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/ascii_comments.rb b/lib/rubocop/cop/style/ascii_comments.rb index 24120c6e8a1..af3383b9be2 100644 --- a/lib/rubocop/cop/style/ascii_comments.rb +++ b/lib/rubocop/cop/style/ascii_comments.rb @@ -15,8 +15,6 @@ module Style # # # good # # Translates from English to Japanese - # - # @api private class AsciiComments < Base include RangeHelp diff --git a/lib/rubocop/cop/style/attr.rb b/lib/rubocop/cop/style/attr.rb index 88b2a1fe5de..1168581b040 100644 --- a/lib/rubocop/cop/style/attr.rb +++ b/lib/rubocop/cop/style/attr.rb @@ -14,7 +14,6 @@ module Style # attr_accessor :something # attr_reader :one, :two, :three # - # @api private class Attr < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/auto_resource_cleanup.rb b/lib/rubocop/cop/style/auto_resource_cleanup.rb index 9ca7c5db540..8eb628bc1ac 100644 --- a/lib/rubocop/cop/style/auto_resource_cleanup.rb +++ b/lib/rubocop/cop/style/auto_resource_cleanup.rb @@ -16,8 +16,6 @@ module Style # File.open('file') do |f| # # ... # end - # - # @api private class AutoResourceCleanup < Base MSG = 'Use the block version of `%s.%s`.' diff --git a/lib/rubocop/cop/style/bare_percent_literals.rb b/lib/rubocop/cop/style/bare_percent_literals.rb index 8c8b8e2c548..effe4b0bf35 100644 --- a/lib/rubocop/cop/style/bare_percent_literals.rb +++ b/lib/rubocop/cop/style/bare_percent_literals.rb @@ -23,7 +23,6 @@ module Style # %Q|He said: "#{greeting}"| # %q/She said: 'Hi'/ # - # @api private class BarePercentLiterals < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/begin_block.rb b/lib/rubocop/cop/style/begin_block.rb index 9b2fb106391..04ec9d7da8f 100644 --- a/lib/rubocop/cop/style/begin_block.rb +++ b/lib/rubocop/cop/style/begin_block.rb @@ -10,7 +10,6 @@ module Style # # bad # BEGIN { test } # - # @api private class BeginBlock < Base MSG = 'Avoid the use of `BEGIN` blocks.' diff --git a/lib/rubocop/cop/style/bisected_attr_accessor.rb b/lib/rubocop/cop/style/bisected_attr_accessor.rb index 7ddba66fa9d..4055b52d81a 100644 --- a/lib/rubocop/cop/style/bisected_attr_accessor.rb +++ b/lib/rubocop/cop/style/bisected_attr_accessor.rb @@ -18,7 +18,6 @@ module Style # attr_accessor :bar # end # - # @api private class BisectedAttrAccessor < Base include VisibilityHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/block_comments.rb b/lib/rubocop/cop/style/block_comments.rb index 2b455793af3..3c06c075b6a 100644 --- a/lib/rubocop/cop/style/block_comments.rb +++ b/lib/rubocop/cop/style/block_comments.rb @@ -16,7 +16,6 @@ module Style # # Multiple lines # # of comments... # - # @api private class BlockComments < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/block_delimiters.rb b/lib/rubocop/cop/style/block_delimiters.rb index 3a15dd84021..d8b80988a95 100644 --- a/lib/rubocop/cop/style/block_delimiters.rb +++ b/lib/rubocop/cop/style/block_delimiters.rb @@ -132,7 +132,6 @@ module Style # puts foo # end # - # @api private class BlockDelimiters < Base include ConfigurableEnforcedStyle include IgnoredMethods diff --git a/lib/rubocop/cop/style/case_equality.rb b/lib/rubocop/cop/style/case_equality.rb index 9282fd2cde5..2a9c8e85287 100644 --- a/lib/rubocop/cop/style/case_equality.rb +++ b/lib/rubocop/cop/style/case_equality.rb @@ -29,7 +29,6 @@ module Style # (1..100).include?(7) # /something/.match?(some_string) # - # @api private class CaseEquality < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/case_like_if.rb b/lib/rubocop/cop/style/case_like_if.rb index d454c62fe10..2f9259763b2 100644 --- a/lib/rubocop/cop/style/case_like_if.rb +++ b/lib/rubocop/cop/style/case_like_if.rb @@ -26,7 +26,6 @@ module Style # final_action # end # - # @api private class CaseLikeIf < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/character_literal.rb b/lib/rubocop/cop/style/character_literal.rb index ee7813dc590..6d314f99781 100644 --- a/lib/rubocop/cop/style/character_literal.rb +++ b/lib/rubocop/cop/style/character_literal.rb @@ -14,8 +14,6 @@ module Style # # # good # ?\C-\M-d - # - # @api private class CharacterLiteral < Cop include StringHelp diff --git a/lib/rubocop/cop/style/class_and_module_children.rb b/lib/rubocop/cop/style/class_and_module_children.rb index ba7bc271407..9bc5d1ca638 100644 --- a/lib/rubocop/cop/style/class_and_module_children.rb +++ b/lib/rubocop/cop/style/class_and_module_children.rb @@ -21,8 +21,6 @@ module Style # end # # The compact style is only forced for classes/modules with one child. - # - # @api private class ClassAndModuleChildren < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/class_check.rb b/lib/rubocop/cop/style/class_check.rb index 7d52f5aa271..0129d323942 100644 --- a/lib/rubocop/cop/style/class_check.rb +++ b/lib/rubocop/cop/style/class_check.rb @@ -23,7 +23,6 @@ module Style # var.kind_of?(Time) # var.kind_of?(String) # - # @api private class ClassCheck < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/class_methods.rb b/lib/rubocop/cop/style/class_methods.rb index e2f09a7f45a..6e99a68e8f0 100644 --- a/lib/rubocop/cop/style/class_methods.rb +++ b/lib/rubocop/cop/style/class_methods.rb @@ -20,8 +20,6 @@ module Style # # ... # end # end - # - # @api private class ClassMethods < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/class_methods_definitions.rb b/lib/rubocop/cop/style/class_methods_definitions.rb index f7ac9735b91..8c2589e9695 100644 --- a/lib/rubocop/cop/style/class_methods_definitions.rb +++ b/lib/rubocop/cop/style/class_methods_definitions.rb @@ -58,7 +58,6 @@ module Style # end # end # - # @api private class ClassMethodsDefinitions < Base include ConfigurableEnforcedStyle include CommentsHelp diff --git a/lib/rubocop/cop/style/class_vars.rb b/lib/rubocop/cop/style/class_vars.rb index 3e8c510afa4..ed6202a9ea4 100644 --- a/lib/rubocop/cop/style/class_vars.rb +++ b/lib/rubocop/cop/style/class_vars.rb @@ -45,7 +45,6 @@ module Style # end # end # - # @api private class ClassVars < Base MSG = 'Replace class var %s with a class instance var.' diff --git a/lib/rubocop/cop/style/collection_methods.rb b/lib/rubocop/cop/style/collection_methods.rb index 643f3af4074..9f891c33747 100644 --- a/lib/rubocop/cop/style/collection_methods.rb +++ b/lib/rubocop/cop/style/collection_methods.rb @@ -37,7 +37,6 @@ module Style # items.select # items.include? # - # @api private class CollectionMethods < Base include MethodPreference extend AutoCorrector diff --git a/lib/rubocop/cop/style/colon_method_call.rb b/lib/rubocop/cop/style/colon_method_call.rb index e953fdc1938..9730f7276e7 100644 --- a/lib/rubocop/cop/style/colon_method_call.rb +++ b/lib/rubocop/cop/style/colon_method_call.rb @@ -17,7 +17,6 @@ module Style # FileUtils.rmdir(dir) # Marshal.dump(obj) # - # @api private class ColonMethodCall < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/colon_method_definition.rb b/lib/rubocop/cop/style/colon_method_definition.rb index b622e117097..84efc8a1e08 100644 --- a/lib/rubocop/cop/style/colon_method_definition.rb +++ b/lib/rubocop/cop/style/colon_method_definition.rb @@ -19,7 +19,6 @@ module Style # end # end # - # @api private class ColonMethodDefinition < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/combinable_loops.rb b/lib/rubocop/cop/style/combinable_loops.rb index a4710b4bd64..a57ff860f43 100644 --- a/lib/rubocop/cop/style/combinable_loops.rb +++ b/lib/rubocop/cop/style/combinable_loops.rb @@ -49,7 +49,6 @@ module Style # end # end # - # @api private class CombinableLoops < Base MSG = 'Combine this loop with the previous loop.' diff --git a/lib/rubocop/cop/style/command_literal.rb b/lib/rubocop/cop/style/command_literal.rb index 078b655b9a8..4f1a855d6dd 100644 --- a/lib/rubocop/cop/style/command_literal.rb +++ b/lib/rubocop/cop/style/command_literal.rb @@ -75,8 +75,6 @@ module Style # @example AllowInnerBackticks: true # # good # `echo \`ls\`` - # - # @api private class CommandLiteral < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/comment_annotation.rb b/lib/rubocop/cop/style/comment_annotation.rb index 30535d0e946..0824d79514b 100644 --- a/lib/rubocop/cop/style/comment_annotation.rb +++ b/lib/rubocop/cop/style/comment_annotation.rb @@ -30,8 +30,6 @@ module Style # # # good # # OPTIMIZE: does not work - # - # @api private class CommentAnnotation < Base include AnnotationComment include RangeHelp diff --git a/lib/rubocop/cop/style/commented_keyword.rb b/lib/rubocop/cop/style/commented_keyword.rb index 5a31e1bdab0..4b83211fa27 100644 --- a/lib/rubocop/cop/style/commented_keyword.rb +++ b/lib/rubocop/cop/style/commented_keyword.rb @@ -33,8 +33,6 @@ module Style # class X # :nodoc: # y # end - # - # @api private class CommentedKeyword < Cop MSG = 'Do not place comments on the same line as the ' \ '`%s` keyword.' diff --git a/lib/rubocop/cop/style/conditional_assignment.rb b/lib/rubocop/cop/style/conditional_assignment.rb index e96c1c004a1..9e70f99a535 100644 --- a/lib/rubocop/cop/style/conditional_assignment.rb +++ b/lib/rubocop/cop/style/conditional_assignment.rb @@ -208,8 +208,6 @@ def assignment_rhs_exist?(node) # some_other_method # bar = 2 # end - # - # @api private class ConditionalAssignment < Cop include ConditionalAssignmentHelper include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/constant_visibility.rb b/lib/rubocop/cop/style/constant_visibility.rb index 5fa2361ff84..62d5c5cc661 100644 --- a/lib/rubocop/cop/style/constant_visibility.rb +++ b/lib/rubocop/cop/style/constant_visibility.rb @@ -26,7 +26,6 @@ module Style # public_constant :BAZ # end # - # @api private class ConstantVisibility < Base MSG = 'Explicitly make `%s` public or private using ' \ 'either `#public_constant` or `#private_constant`.' diff --git a/lib/rubocop/cop/style/copyright.rb b/lib/rubocop/cop/style/copyright.rb index 16a6b100ebc..119ee843245 100644 --- a/lib/rubocop/cop/style/copyright.rb +++ b/lib/rubocop/cop/style/copyright.rb @@ -15,7 +15,6 @@ module Style # that RuboCop scans, a comment that matches this regex must be found or # an offense is reported. # - # @api private class Copyright < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/date_time.rb b/lib/rubocop/cop/style/date_time.rb index 9d908176b16..a3ff50cfa54 100644 --- a/lib/rubocop/cop/style/date_time.rb +++ b/lib/rubocop/cop/style/date_time.rb @@ -41,8 +41,6 @@ module Style # # # good # something.to_time - # - # @api private class DateTime < Base CLASS_MSG = 'Prefer Time over DateTime.' COERCION_MSG = 'Do not use #to_datetime.' diff --git a/lib/rubocop/cop/style/def_with_parentheses.rb b/lib/rubocop/cop/style/def_with_parentheses.rb index 357c225837e..aba99abe58e 100644 --- a/lib/rubocop/cop/style/def_with_parentheses.rb +++ b/lib/rubocop/cop/style/def_with_parentheses.rb @@ -33,8 +33,6 @@ module Style # def Baz.foo # # does a thing # end - # - # @api private class DefWithParentheses < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/dir.rb b/lib/rubocop/cop/style/dir.rb index f1a57fea8ed..0edeb8b0ece 100644 --- a/lib/rubocop/cop/style/dir.rb +++ b/lib/rubocop/cop/style/dir.rb @@ -16,8 +16,6 @@ module Style # # # good # path = __dir__ - # - # @api private class Dir < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb b/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb index 5bdef2f1df5..6b7733d1ab9 100644 --- a/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb +++ b/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb @@ -20,7 +20,6 @@ module Style # def fixed_method_name_and_no_rubocop_comments # end # - # @api private class DisableCopsWithinSourceCodeDirective < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/documentation.rb b/lib/rubocop/cop/style/documentation.rb index 169610fd04c..b983053e9e8 100644 --- a/lib/rubocop/cop/style/documentation.rb +++ b/lib/rubocop/cop/style/documentation.rb @@ -55,7 +55,6 @@ module Style # Public = Class.new # end # - # @api private class Documentation < Base include DocumentationComment diff --git a/lib/rubocop/cop/style/documentation_method.rb b/lib/rubocop/cop/style/documentation_method.rb index 67c43dde42b..e0e1a1413d2 100644 --- a/lib/rubocop/cop/style/documentation_method.rb +++ b/lib/rubocop/cop/style/documentation_method.rb @@ -91,7 +91,6 @@ module Style # end # end # - # @api private class DocumentationMethod < Base include DocumentationComment include DefNode diff --git a/lib/rubocop/cop/style/double_cop_disable_directive.rb b/lib/rubocop/cop/style/double_cop_disable_directive.rb index 0ee3709d0a4..49fd0f20b45 100644 --- a/lib/rubocop/cop/style/double_cop_disable_directive.rb +++ b/lib/rubocop/cop/style/double_cop_disable_directive.rb @@ -24,7 +24,6 @@ module Style # def f # rubocop:disable Style/For, Metrics/AbcSize # end # - # @api private class DoubleCopDisableDirective < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/double_negation.rb b/lib/rubocop/cop/style/double_negation.rb index f2437cfda35..de8f568a912 100644 --- a/lib/rubocop/cop/style/double_negation.rb +++ b/lib/rubocop/cop/style/double_negation.rb @@ -32,8 +32,6 @@ module Style # !!something and !something.nil? are not the same thing. # As you're unlikely to write code that can accept values of any type # this is rarely a problem in practice. - # - # @api private class DoubleNegation < Base include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/each_for_simple_loop.rb b/lib/rubocop/cop/style/each_for_simple_loop.rb index ce75fb44ae4..422bfb06a86 100644 --- a/lib/rubocop/cop/style/each_for_simple_loop.rb +++ b/lib/rubocop/cop/style/each_for_simple_loop.rb @@ -22,8 +22,6 @@ module Style # # # good # 10.times {} - # - # @api private class EachForSimpleLoop < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/each_with_object.rb b/lib/rubocop/cop/style/each_with_object.rb index d450b18c7c9..31c7a0418af 100644 --- a/lib/rubocop/cop/style/each_with_object.rb +++ b/lib/rubocop/cop/style/each_with_object.rb @@ -16,8 +16,6 @@ module Style # # # good # [1, 2].each_with_object({}) { |e, a| a[e] = e } - # - # @api private class EachWithObject < Base extend AutoCorrector include RangeHelp diff --git a/lib/rubocop/cop/style/empty_block_parameter.rb b/lib/rubocop/cop/style/empty_block_parameter.rb index eb73912e436..d947cd0a3cf 100644 --- a/lib/rubocop/cop/style/empty_block_parameter.rb +++ b/lib/rubocop/cop/style/empty_block_parameter.rb @@ -21,8 +21,6 @@ module Style # # # good # a { do_something } - # - # @api private class EmptyBlockParameter < Base include EmptyParameter include RangeHelp diff --git a/lib/rubocop/cop/style/empty_case_condition.rb b/lib/rubocop/cop/style/empty_case_condition.rb index b58ec9022d4..b737681b30c 100644 --- a/lib/rubocop/cop/style/empty_case_condition.rb +++ b/lib/rubocop/cop/style/empty_case_condition.rb @@ -35,8 +35,6 @@ module Style # else # puts 'more' # end - # - # @api private class EmptyCaseCondition < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/empty_else.rb b/lib/rubocop/cop/style/empty_else.rb index d3681273ef5..71e1b0093fb 100644 --- a/lib/rubocop/cop/style/empty_else.rb +++ b/lib/rubocop/cop/style/empty_else.rb @@ -89,8 +89,6 @@ module Style # if condition # statement # end - # - # @api private class EmptyElse < Base include OnNormalIfUnless include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/empty_lambda_parameter.rb b/lib/rubocop/cop/style/empty_lambda_parameter.rb index 8622697622d..713fcae8745 100644 --- a/lib/rubocop/cop/style/empty_lambda_parameter.rb +++ b/lib/rubocop/cop/style/empty_lambda_parameter.rb @@ -16,8 +16,6 @@ module Style # # # good # -> (arg) { do_something(arg) } - # - # @api private class EmptyLambdaParameter < Base include EmptyParameter include RangeHelp diff --git a/lib/rubocop/cop/style/empty_literal.rb b/lib/rubocop/cop/style/empty_literal.rb index 9fd5a1c5a19..9eff110d652 100644 --- a/lib/rubocop/cop/style/empty_literal.rb +++ b/lib/rubocop/cop/style/empty_literal.rb @@ -16,8 +16,6 @@ module Style # a = [] # h = {} # s = '' - # - # @api private class EmptyLiteral < Base include FrozenStringLiteral include RangeHelp diff --git a/lib/rubocop/cop/style/empty_method.rb b/lib/rubocop/cop/style/empty_method.rb index 28fee6bf9b6..53bb6930970 100644 --- a/lib/rubocop/cop/style/empty_method.rb +++ b/lib/rubocop/cop/style/empty_method.rb @@ -40,8 +40,6 @@ module Style # # def self.foo(bar) # end - # - # @api private class EmptyMethod < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/encoding.rb b/lib/rubocop/cop/style/encoding.rb index ae365afcfdc..473a4a9c774 100644 --- a/lib/rubocop/cop/style/encoding.rb +++ b/lib/rubocop/cop/style/encoding.rb @@ -9,8 +9,6 @@ module Style # # encoding: UTF-8 # # coding: UTF-8 # # -*- coding: UTF-8 -*- - # - # @api private class Encoding < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/end_block.rb b/lib/rubocop/cop/style/end_block.rb index 2678c011e49..04dd9b07163 100644 --- a/lib/rubocop/cop/style/end_block.rb +++ b/lib/rubocop/cop/style/end_block.rb @@ -12,7 +12,6 @@ module Style # # good # at_exit { puts 'Goodbye!' } # - # @api private class EndBlock < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/eval_with_location.rb b/lib/rubocop/cop/style/eval_with_location.rb index e5569e99004..0aa30a259e7 100644 --- a/lib/rubocop/cop/style/eval_with_location.rb +++ b/lib/rubocop/cop/style/eval_with_location.rb @@ -31,8 +31,6 @@ module Style # def do_something # end # RUBY - # - # @api private class EvalWithLocation < Base MSG = 'Pass `__FILE__` and `__LINE__` to `eval` method, ' \ 'as they are used by backtraces.' diff --git a/lib/rubocop/cop/style/even_odd.rb b/lib/rubocop/cop/style/even_odd.rb index c750e0da498..8e327276a31 100644 --- a/lib/rubocop/cop/style/even_odd.rb +++ b/lib/rubocop/cop/style/even_odd.rb @@ -15,8 +15,6 @@ module Style # # good # if x.even? # end - # - # @api private class EvenOdd < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/expand_path_arguments.rb b/lib/rubocop/cop/style/expand_path_arguments.rb index 3d786818bf0..78e490e3899 100644 --- a/lib/rubocop/cop/style/expand_path_arguments.rb +++ b/lib/rubocop/cop/style/expand_path_arguments.rb @@ -40,7 +40,6 @@ module Style # # good # Pathname.new(__dir__).expand_path # - # @api private class ExpandPathArguments < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/explicit_block_argument.rb b/lib/rubocop/cop/style/explicit_block_argument.rb index dd43d7f6dc4..e582cfc65fd 100644 --- a/lib/rubocop/cop/style/explicit_block_argument.rb +++ b/lib/rubocop/cop/style/explicit_block_argument.rb @@ -35,7 +35,6 @@ module Style # 9.times(&block) # end # - # @api private class ExplicitBlockArgument < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/exponential_notation.rb b/lib/rubocop/cop/style/exponential_notation.rb index 5f2478c4962..0d44a813358 100644 --- a/lib/rubocop/cop/style/exponential_notation.rb +++ b/lib/rubocop/cop/style/exponential_notation.rb @@ -58,7 +58,6 @@ module Style # 1e4 # 12e5 # - # @api private class ExponentialNotation < Base include ConfigurableEnforcedStyle MESSAGES = { diff --git a/lib/rubocop/cop/style/float_division.rb b/lib/rubocop/cop/style/float_division.rb index 08468bbe40d..99d838a123b 100644 --- a/lib/rubocop/cop/style/float_division.rb +++ b/lib/rubocop/cop/style/float_division.rb @@ -39,8 +39,6 @@ module Style # # # good # a.fdiv(b) - # - # @api private class FloatDivision < Base include ConfigurableEnforcedStyle MESSAGES = { diff --git a/lib/rubocop/cop/style/for.rb b/lib/rubocop/cop/style/for.rb index 10d02dbac39..d1ad6e0b2ea 100644 --- a/lib/rubocop/cop/style/for.rb +++ b/lib/rubocop/cop/style/for.rb @@ -38,7 +38,6 @@ module Style # end # end # - # @api private class For < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/format_string.rb b/lib/rubocop/cop/style/format_string.rb index 806a1db5730..7ffb460384b 100644 --- a/lib/rubocop/cop/style/format_string.rb +++ b/lib/rubocop/cop/style/format_string.rb @@ -35,7 +35,6 @@ module Style # # good # puts '%10s' % 'hoge' # - # @api private class FormatString < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/format_string_token.rb b/lib/rubocop/cop/style/format_string_token.rb index 54d668e0004..67f5f9a2b98 100644 --- a/lib/rubocop/cop/style/format_string_token.rb +++ b/lib/rubocop/cop/style/format_string_token.rb @@ -37,8 +37,6 @@ module Style # # # good # format('%s', 'Hello') - # - # @api private class FormatStringToken < Base include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/frozen_string_literal_comment.rb b/lib/rubocop/cop/style/frozen_string_literal_comment.rb index 34d12e52a53..02ae88825c7 100644 --- a/lib/rubocop/cop/style/frozen_string_literal_comment.rb +++ b/lib/rubocop/cop/style/frozen_string_literal_comment.rb @@ -73,8 +73,6 @@ module Style # module Bar # # ... # end - # - # @api private class FrozenStringLiteralComment < Base include ConfigurableEnforcedStyle include FrozenStringLiteral diff --git a/lib/rubocop/cop/style/global_std_stream.rb b/lib/rubocop/cop/style/global_std_stream.rb index 798723fe3f6..f210647e306 100644 --- a/lib/rubocop/cop/style/global_std_stream.rb +++ b/lib/rubocop/cop/style/global_std_stream.rb @@ -27,7 +27,6 @@ module Style # out.puts('hello') # end # - # @api private class GlobalStdStream < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/global_vars.rb b/lib/rubocop/cop/style/global_vars.rb index ee4a20c17cc..6c5f7c0d04f 100644 --- a/lib/rubocop/cop/style/global_vars.rb +++ b/lib/rubocop/cop/style/global_vars.rb @@ -19,8 +19,6 @@ module Style # FOO = 2 # foo = 2 # $stdin.read - # - # @api private class GlobalVars < Base MSG = 'Do not introduce global variables.' diff --git a/lib/rubocop/cop/style/guard_clause.rb b/lib/rubocop/cop/style/guard_clause.rb index ef8e9d3294f..77cfafc5d7e 100644 --- a/lib/rubocop/cop/style/guard_clause.rb +++ b/lib/rubocop/cop/style/guard_clause.rb @@ -47,8 +47,6 @@ module Style # # good # foo || raise('exception') if something # ok - # - # @api private class GuardClause < Base include MinBodyLength include StatementModifier diff --git a/lib/rubocop/cop/style/hash_as_last_array_item.rb b/lib/rubocop/cop/style/hash_as_last_array_item.rb index 6d89957fb82..a761e46f5a4 100644 --- a/lib/rubocop/cop/style/hash_as_last_array_item.rb +++ b/lib/rubocop/cop/style/hash_as_last_array_item.rb @@ -20,7 +20,6 @@ module Style # # good # [1, 2, one: 1, two: 2] # - # @api private class HashAsLastArrayItem < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/hash_each_methods.rb b/lib/rubocop/cop/style/hash_each_methods.rb index 3b6fd027de4..c7fba0f943a 100644 --- a/lib/rubocop/cop/style/hash_each_methods.rb +++ b/lib/rubocop/cop/style/hash_each_methods.rb @@ -17,8 +17,6 @@ module Style # # good # hash.each_key { |k| p k } # hash.each_value { |v| p v } - # - # @api private class HashEachMethods < Base include Lint::UnusedArgument extend AutoCorrector diff --git a/lib/rubocop/cop/style/hash_like_case.rb b/lib/rubocop/cop/style/hash_like_case.rb index 8d9084ffd47..51df79899c5 100644 --- a/lib/rubocop/cop/style/hash_like_case.rb +++ b/lib/rubocop/cop/style/hash_like_case.rb @@ -36,7 +36,6 @@ module Style # 'http://au.example.com' # end # - # @api private class HashLikeCase < Base MSG = 'Consider replacing `case-when` with a hash lookup.' diff --git a/lib/rubocop/cop/style/hash_syntax.rb b/lib/rubocop/cop/style/hash_syntax.rb index a584d05bb96..2ba726b8f1b 100644 --- a/lib/rubocop/cop/style/hash_syntax.rb +++ b/lib/rubocop/cop/style/hash_syntax.rb @@ -54,8 +54,6 @@ module Style # # good # {a: 1, b: 2} # {:c => 3, 'd' => 4} - # - # @api private class HashSyntax < Cop include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/hash_transform_keys.rb b/lib/rubocop/cop/style/hash_transform_keys.rb index fc64cc54fb6..87e45fc0b40 100644 --- a/lib/rubocop/cop/style/hash_transform_keys.rb +++ b/lib/rubocop/cop/style/hash_transform_keys.rb @@ -25,8 +25,6 @@ module Style # # good # {a: 1, b: 2}.transform_keys { |k| foo(k) } # {a: 1, b: 2}.transform_keys { |k| k.to_s } - # - # @api private class HashTransformKeys < Base include HashTransformMethod extend TargetRubyVersion diff --git a/lib/rubocop/cop/style/hash_transform_values.rb b/lib/rubocop/cop/style/hash_transform_values.rb index 2720ba4c114..0b343563023 100644 --- a/lib/rubocop/cop/style/hash_transform_values.rb +++ b/lib/rubocop/cop/style/hash_transform_values.rb @@ -25,8 +25,6 @@ module Style # # good # {a: 1, b: 2}.transform_values { |v| foo(v) } # {a: 1, b: 2}.transform_values { |v| v * v } - # - # @api private class HashTransformValues < Base include HashTransformMethod extend AutoCorrector diff --git a/lib/rubocop/cop/style/identical_conditional_branches.rb b/lib/rubocop/cop/style/identical_conditional_branches.rb index 92ef246e866..db05d852584 100644 --- a/lib/rubocop/cop/style/identical_conditional_branches.rb +++ b/lib/rubocop/cop/style/identical_conditional_branches.rb @@ -62,8 +62,6 @@ module Style # do_x # do_z # end - # - # @api private class IdenticalConditionalBranches < Base MSG = 'Move `%s` out of the conditional.' diff --git a/lib/rubocop/cop/style/if_inside_else.rb b/lib/rubocop/cop/style/if_inside_else.rb index c9151fb8cfe..b7815d484ba 100644 --- a/lib/rubocop/cop/style/if_inside_else.rb +++ b/lib/rubocop/cop/style/if_inside_else.rb @@ -58,7 +58,6 @@ module Style # action_b # end # - # @api private class IfInsideElse < Base MSG = 'Convert `if` nested inside `else` to `elsif`.' diff --git a/lib/rubocop/cop/style/if_unless_modifier.rb b/lib/rubocop/cop/style/if_unless_modifier.rb index 399ff1031aa..53d3a36f3b4 100644 --- a/lib/rubocop/cop/style/if_unless_modifier.rb +++ b/lib/rubocop/cop/style/if_unless_modifier.rb @@ -30,8 +30,6 @@ module Style # if long_condition # do_something_in_a_method_with_a_long_name(arg) # end - # - # @api private class IfUnlessModifier < Base include StatementModifier include LineLengthHelp diff --git a/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb b/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb index 3cc0d95ffca..2c97198163b 100644 --- a/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +++ b/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb @@ -22,8 +22,6 @@ module Style # if running? # tired? ? 'stop' : 'go faster' # end - # - # @api private class IfUnlessModifierOfIfUnless < Base include StatementModifier extend AutoCorrector diff --git a/lib/rubocop/cop/style/if_with_semicolon.rb b/lib/rubocop/cop/style/if_with_semicolon.rb index 253fb59e4d1..ff3676ca78f 100644 --- a/lib/rubocop/cop/style/if_with_semicolon.rb +++ b/lib/rubocop/cop/style/if_with_semicolon.rb @@ -13,7 +13,6 @@ module Style # # good # result = some_condition ? something : another_thing # - # @api private class IfWithSemicolon < Base include OnNormalIfUnless extend AutoCorrector diff --git a/lib/rubocop/cop/style/implicit_runtime_error.rb b/lib/rubocop/cop/style/implicit_runtime_error.rb index 340c0e4aa7f..b3c233c79a7 100644 --- a/lib/rubocop/cop/style/implicit_runtime_error.rb +++ b/lib/rubocop/cop/style/implicit_runtime_error.rb @@ -14,8 +14,6 @@ module Style # # # good # raise ArgumentError, 'Error message here' - # - # @api private class ImplicitRuntimeError < Base MSG = 'Use `%s` with an explicit exception class and message,' \ ' rather than just a message.' diff --git a/lib/rubocop/cop/style/infinite_loop.rb b/lib/rubocop/cop/style/infinite_loop.rb index 45b879c7b17..4cded648d75 100644 --- a/lib/rubocop/cop/style/infinite_loop.rb +++ b/lib/rubocop/cop/style/infinite_loop.rb @@ -15,8 +15,6 @@ module Style # loop do # work # end - # - # @api private class InfiniteLoop < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/inline_comment.rb b/lib/rubocop/cop/style/inline_comment.rb index 3a43b452d2d..ecdee0b6771 100644 --- a/lib/rubocop/cop/style/inline_comment.rb +++ b/lib/rubocop/cop/style/inline_comment.rb @@ -17,8 +17,6 @@ module Style # foo.each do |f| # f.bar # Trailing inline comment # end - # - # @api private class InlineComment < Base MSG = 'Avoid trailing inline comments.' diff --git a/lib/rubocop/cop/style/inverse_methods.rb b/lib/rubocop/cop/style/inverse_methods.rb index cbbc7611f49..11c3b9070b4 100644 --- a/lib/rubocop/cop/style/inverse_methods.rb +++ b/lib/rubocop/cop/style/inverse_methods.rb @@ -33,8 +33,6 @@ module Style # next if f.zero? # f != 1 # end - # - # @api private class InverseMethods < Base include IgnoredNode include RangeHelp diff --git a/lib/rubocop/cop/style/ip_addresses.rb b/lib/rubocop/cop/style/ip_addresses.rb index b1c8ecf53c2..554110fb69b 100644 --- a/lib/rubocop/cop/style/ip_addresses.rb +++ b/lib/rubocop/cop/style/ip_addresses.rb @@ -18,8 +18,6 @@ module Style # # # good # ip_address = ENV['DEPLOYMENT_IP_ADDRESS'] - # - # @api private class IpAddresses < Cop include StringHelp diff --git a/lib/rubocop/cop/style/keyword_parameters_order.rb b/lib/rubocop/cop/style/keyword_parameters_order.rb index 21206a4a927..0f0f5b1de27 100644 --- a/lib/rubocop/cop/style/keyword_parameters_order.rb +++ b/lib/rubocop/cop/style/keyword_parameters_order.rb @@ -21,7 +21,6 @@ module Style # # body omitted # end # - # @api private class KeywordParametersOrder < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/lambda.rb b/lib/rubocop/cop/style/lambda.rb index f96ac2e924a..acbb0903b25 100644 --- a/lib/rubocop/cop/style/lambda.rb +++ b/lib/rubocop/cop/style/lambda.rb @@ -46,8 +46,6 @@ module Style # f = ->(x) do # x # end - # - # @api private class Lambda < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/lambda_call.rb b/lib/rubocop/cop/style/lambda_call.rb index bf8e425bb31..ace9f713c20 100644 --- a/lib/rubocop/cop/style/lambda_call.rb +++ b/lib/rubocop/cop/style/lambda_call.rb @@ -18,8 +18,6 @@ module Style # # # good # lambda.(x, y) - # - # @api private class LambdaCall < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/line_end_concatenation.rb b/lib/rubocop/cop/style/line_end_concatenation.rb index 306a0c09256..479ff0a99dc 100644 --- a/lib/rubocop/cop/style/line_end_concatenation.rb +++ b/lib/rubocop/cop/style/line_end_concatenation.rb @@ -19,7 +19,6 @@ module Style # some_str = 'ala' \ # 'bala' # - # @api private class LineEndConcatenation < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/method_call_with_args_parentheses.rb b/lib/rubocop/cop/style/method_call_with_args_parentheses.rb index ef6046dbfff..183d2f1587c 100644 --- a/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +++ b/lib/rubocop/cop/style/method_call_with_args_parentheses.rb @@ -143,8 +143,6 @@ module Style # # # good # Array 1 - # - # @api private class MethodCallWithArgsParentheses < Base include ConfigurableEnforcedStyle include IgnoredMethods diff --git a/lib/rubocop/cop/style/method_call_without_args_parentheses.rb b/lib/rubocop/cop/style/method_call_without_args_parentheses.rb index 781202fd00e..f27500c34b1 100644 --- a/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +++ b/lib/rubocop/cop/style/method_call_without_args_parentheses.rb @@ -11,8 +11,6 @@ module Style # # # good # object.some_method - # - # @api private class MethodCallWithoutArgsParentheses < Base include IgnoredMethods extend AutoCorrector diff --git a/lib/rubocop/cop/style/method_called_on_do_end_block.rb b/lib/rubocop/cop/style/method_called_on_do_end_block.rb index f5f97950037..886a131bfa8 100644 --- a/lib/rubocop/cop/style/method_called_on_do_end_block.rb +++ b/lib/rubocop/cop/style/method_called_on_do_end_block.rb @@ -21,8 +21,6 @@ module Style # b # end # foo.c - # - # @api private class MethodCalledOnDoEndBlock < Base include RangeHelp diff --git a/lib/rubocop/cop/style/method_def_parentheses.rb b/lib/rubocop/cop/style/method_def_parentheses.rb index 70344a17cd7..e1ceccb96b4 100644 --- a/lib/rubocop/cop/style/method_def_parentheses.rb +++ b/lib/rubocop/cop/style/method_def_parentheses.rb @@ -84,8 +84,6 @@ module Style # last_descriptive_var_name) # do_something # end - # - # @api private class MethodDefParentheses < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/min_max.rb b/lib/rubocop/cop/style/min_max.rb index 212ec5f119e..de411dae473 100644 --- a/lib/rubocop/cop/style/min_max.rb +++ b/lib/rubocop/cop/style/min_max.rb @@ -14,8 +14,6 @@ module Style # # good # bar = foo.minmax # return foo.minmax - # - # @api private class MinMax < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/missing_else.rb b/lib/rubocop/cop/style/missing_else.rb index 81b1bb7b9c4..0419d0f34d7 100644 --- a/lib/rubocop/cop/style/missing_else.rb +++ b/lib/rubocop/cop/style/missing_else.rb @@ -93,8 +93,6 @@ module Style # else # # the content of `else` branch will be determined by Style/EmptyElse # end - # - # @api private class MissingElse < Base include OnNormalIfUnless include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/missing_respond_to_missing.rb b/lib/rubocop/cop/style/missing_respond_to_missing.rb index 5a6dc98eb56..43caba8f45c 100644 --- a/lib/rubocop/cop/style/missing_respond_to_missing.rb +++ b/lib/rubocop/cop/style/missing_respond_to_missing.rb @@ -21,7 +21,6 @@ module Style # # ... # end # - # @api private class MissingRespondToMissing < Base MSG = 'When using `method_missing`, define `respond_to_missing?`.' diff --git a/lib/rubocop/cop/style/mixin_grouping.rb b/lib/rubocop/cop/style/mixin_grouping.rb index e3bac47cd29..ddd3f198674 100644 --- a/lib/rubocop/cop/style/mixin_grouping.rb +++ b/lib/rubocop/cop/style/mixin_grouping.rb @@ -30,8 +30,6 @@ module Style # class Foo # extend Qox, Bar # end - # - # @api private class MixinGrouping < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/mixin_usage.rb b/lib/rubocop/cop/style/mixin_usage.rb index 9223b3e4d39..b6cbed65f13 100644 --- a/lib/rubocop/cop/style/mixin_usage.rb +++ b/lib/rubocop/cop/style/mixin_usage.rb @@ -40,8 +40,6 @@ module Style # class C # prepend M # end - # - # @api private class MixinUsage < Base MSG = '`%s` is used at the top level. Use inside `class` ' \ 'or `module`.' diff --git a/lib/rubocop/cop/style/module_function.rb b/lib/rubocop/cop/style/module_function.rb index 707006b70a7..e0528fd7d9b 100644 --- a/lib/rubocop/cop/style/module_function.rb +++ b/lib/rubocop/cop/style/module_function.rb @@ -71,8 +71,6 @@ module Style # # These offenses are not safe to auto-correct since there are different # implications to each approach. - # - # @api private class ModuleFunction < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/multiline_block_chain.rb b/lib/rubocop/cop/style/multiline_block_chain.rb index cf0faadfcfe..4a7d3ac0495 100644 --- a/lib/rubocop/cop/style/multiline_block_chain.rb +++ b/lib/rubocop/cop/style/multiline_block_chain.rb @@ -22,8 +22,6 @@ module Style # alive_threads.map do |t| # t.object_id # end - # - # @api private class MultilineBlockChain < Cop include RangeHelp diff --git a/lib/rubocop/cop/style/multiline_if_modifier.rb b/lib/rubocop/cop/style/multiline_if_modifier.rb index 2c13cc5d006..6b2b2a2c5b9 100644 --- a/lib/rubocop/cop/style/multiline_if_modifier.rb +++ b/lib/rubocop/cop/style/multiline_if_modifier.rb @@ -14,8 +14,6 @@ module Style # # # good # { result: 'ok' } if cond - # - # @api private class MultilineIfModifier < Base include StatementModifier include Alignment diff --git a/lib/rubocop/cop/style/multiline_if_then.rb b/lib/rubocop/cop/style/multiline_if_then.rb index d673761fbab..53b2ea00ed6 100644 --- a/lib/rubocop/cop/style/multiline_if_then.rb +++ b/lib/rubocop/cop/style/multiline_if_then.rb @@ -16,8 +16,6 @@ module Style # if cond then a # elsif cond then b # end - # - # @api private class MultilineIfThen < Base include OnNormalIfUnless include RangeHelp diff --git a/lib/rubocop/cop/style/multiline_memoization.rb b/lib/rubocop/cop/style/multiline_memoization.rb index c0da8cf6f70..c2fb7854450 100644 --- a/lib/rubocop/cop/style/multiline_memoization.rb +++ b/lib/rubocop/cop/style/multiline_memoization.rb @@ -30,8 +30,6 @@ module Style # bar # baz # ) - # - # @api private class MultilineMemoization < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/multiline_method_signature.rb b/lib/rubocop/cop/style/multiline_method_signature.rb index 43de11a4f37..8bdbf71de83 100644 --- a/lib/rubocop/cop/style/multiline_method_signature.rb +++ b/lib/rubocop/cop/style/multiline_method_signature.rb @@ -18,7 +18,6 @@ module Style # baz) # end # - # @api private class MultilineMethodSignature < Base MSG = 'Avoid multi-line method signatures.' diff --git a/lib/rubocop/cop/style/multiline_ternary_operator.rb b/lib/rubocop/cop/style/multiline_ternary_operator.rb index c2bfa921e7e..1b55cd54ec2 100644 --- a/lib/rubocop/cop/style/multiline_ternary_operator.rb +++ b/lib/rubocop/cop/style/multiline_ternary_operator.rb @@ -22,8 +22,6 @@ module Style # else # c # end - # - # @api private class MultilineTernaryOperator < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/multiline_when_then.rb b/lib/rubocop/cop/style/multiline_when_then.rb index 8f06080f76e..a30e45ae125 100644 --- a/lib/rubocop/cop/style/multiline_when_then.rb +++ b/lib/rubocop/cop/style/multiline_when_then.rb @@ -28,7 +28,6 @@ module Style # arg2) # end # - # @api private class MultilineWhenThen < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/multiple_comparison.rb b/lib/rubocop/cop/style/multiple_comparison.rb index 012bcf57922..f1af84551d1 100644 --- a/lib/rubocop/cop/style/multiple_comparison.rb +++ b/lib/rubocop/cop/style/multiple_comparison.rb @@ -14,8 +14,6 @@ module Style # # good # a = 'a' # foo if ['a', 'b', 'c'].include?(a) - # - # @api private class MultipleComparison < Base MSG = 'Avoid comparing a variable with multiple items ' \ 'in a conditional, use `Array#include?` instead.' diff --git a/lib/rubocop/cop/style/mutable_constant.rb b/lib/rubocop/cop/style/mutable_constant.rb index 4f68fbd7eee..bc3f84c837d 100644 --- a/lib/rubocop/cop/style/mutable_constant.rb +++ b/lib/rubocop/cop/style/mutable_constant.rb @@ -50,8 +50,6 @@ module Style # puts 1 # end # end.freeze - # - # @api private class MutableConstant < Base include FrozenStringLiteral include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/negated_if.rb b/lib/rubocop/cop/style/negated_if.rb index cbc04a3729c..4897ab2a03c 100644 --- a/lib/rubocop/cop/style/negated_if.rb +++ b/lib/rubocop/cop/style/negated_if.rb @@ -68,8 +68,6 @@ module Style # if !foo # bar # end - # - # @api private class NegatedIf < Base include ConfigurableEnforcedStyle include NegativeConditional diff --git a/lib/rubocop/cop/style/negated_unless.rb b/lib/rubocop/cop/style/negated_unless.rb index db577574762..45f40622ae2 100644 --- a/lib/rubocop/cop/style/negated_unless.rb +++ b/lib/rubocop/cop/style/negated_unless.rb @@ -58,8 +58,6 @@ module Style # unless !foo # bar # end - # - # @api private class NegatedUnless < Base include ConfigurableEnforcedStyle include NegativeConditional diff --git a/lib/rubocop/cop/style/negated_while.rb b/lib/rubocop/cop/style/negated_while.rb index 1863010d325..0beb2079012 100644 --- a/lib/rubocop/cop/style/negated_while.rb +++ b/lib/rubocop/cop/style/negated_while.rb @@ -22,8 +22,6 @@ module Style # # good # bar while foo # bar while !foo && baz - # - # @api private class NegatedWhile < Base include NegativeConditional extend AutoCorrector diff --git a/lib/rubocop/cop/style/nested_modifier.rb b/lib/rubocop/cop/style/nested_modifier.rb index 662df7cb681..e97420b4d9e 100644 --- a/lib/rubocop/cop/style/nested_modifier.rb +++ b/lib/rubocop/cop/style/nested_modifier.rb @@ -13,8 +13,6 @@ module Style # # # good # something if b && a - # - # @api private class NestedModifier < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/nested_parenthesized_calls.rb b/lib/rubocop/cop/style/nested_parenthesized_calls.rb index 0270c4e0053..d72888b9ae2 100644 --- a/lib/rubocop/cop/style/nested_parenthesized_calls.rb +++ b/lib/rubocop/cop/style/nested_parenthesized_calls.rb @@ -12,8 +12,6 @@ module Style # # # bad # method1(method2 arg) - # - # @api private class NestedParenthesizedCalls < Base include RangeHelp include AllowedMethods diff --git a/lib/rubocop/cop/style/nested_ternary_operator.rb b/lib/rubocop/cop/style/nested_ternary_operator.rb index 2cdd8ab1840..482c3273e78 100644 --- a/lib/rubocop/cop/style/nested_ternary_operator.rb +++ b/lib/rubocop/cop/style/nested_ternary_operator.rb @@ -15,8 +15,6 @@ module Style # else # a2 # end - # - # @api private class NestedTernaryOperator < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/next.rb b/lib/rubocop/cop/style/next.rb index f7c905b5f54..cae05dba47e 100644 --- a/lib/rubocop/cop/style/next.rb +++ b/lib/rubocop/cop/style/next.rb @@ -46,8 +46,6 @@ module Style # next unless a == 1 # puts a # end - # - # @api private class Next < Base include ConfigurableEnforcedStyle include MinBodyLength diff --git a/lib/rubocop/cop/style/nil_comparison.rb b/lib/rubocop/cop/style/nil_comparison.rb index 29424f3fa2f..b34cfdb61f0 100644 --- a/lib/rubocop/cop/style/nil_comparison.rb +++ b/lib/rubocop/cop/style/nil_comparison.rb @@ -28,7 +28,6 @@ module Style # if x == nil # end # - # @api private class NilComparison < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/non_nil_check.rb b/lib/rubocop/cop/style/non_nil_check.rb index 62872d0812c..a5fe612d39a 100644 --- a/lib/rubocop/cop/style/non_nil_check.rb +++ b/lib/rubocop/cop/style/non_nil_check.rb @@ -38,7 +38,6 @@ module Style # if !x.nil? # end # - # @api private class NonNilCheck < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/not.rb b/lib/rubocop/cop/style/not.rb index d815475e77d..7500e21e538 100644 --- a/lib/rubocop/cop/style/not.rb +++ b/lib/rubocop/cop/style/not.rb @@ -13,7 +13,6 @@ module Style # # good # x = !something # - # @api private class Not < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/numeric_literal_prefix.rb b/lib/rubocop/cop/style/numeric_literal_prefix.rb index df9f2cec236..c882053598c 100644 --- a/lib/rubocop/cop/style/numeric_literal_prefix.rb +++ b/lib/rubocop/cop/style/numeric_literal_prefix.rb @@ -33,8 +33,6 @@ module Style # # # good # num = 01234 - # - # @api private class NumericLiteralPrefix < Base include IntegerNode extend AutoCorrector diff --git a/lib/rubocop/cop/style/numeric_literals.rb b/lib/rubocop/cop/style/numeric_literals.rb index cd521edb117..ef216bd505d 100644 --- a/lib/rubocop/cop/style/numeric_literals.rb +++ b/lib/rubocop/cop/style/numeric_literals.rb @@ -27,7 +27,6 @@ module Style # # bad # 10_000_00 # typical representation of $10,000 in cents # - # @api private class NumericLiterals < Cop # The parameter is called MinDigits (meaning the minimum number of # digits for which an offense can be registered), but essentially it's diff --git a/lib/rubocop/cop/style/numeric_predicate.rb b/lib/rubocop/cop/style/numeric_predicate.rb index abb9eb113ab..908ccfd2fca 100644 --- a/lib/rubocop/cop/style/numeric_predicate.rb +++ b/lib/rubocop/cop/style/numeric_predicate.rb @@ -41,8 +41,6 @@ module Style # foo == 0 # 0 > foo # bar.baz > 0 - # - # @api private class NumericPredicate < Base include ConfigurableEnforcedStyle include IgnoredMethods diff --git a/lib/rubocop/cop/style/one_line_conditional.rb b/lib/rubocop/cop/style/one_line_conditional.rb index dbb10eb997a..56c90a44471 100644 --- a/lib/rubocop/cop/style/one_line_conditional.rb +++ b/lib/rubocop/cop/style/one_line_conditional.rb @@ -30,8 +30,6 @@ module Style # else # baz # end - # - # @api private class OneLineConditional < Base include ConfigurableEnforcedStyle include OnNormalIfUnless diff --git a/lib/rubocop/cop/style/option_hash.rb b/lib/rubocop/cop/style/option_hash.rb index f0500f3ab42..6f2fbcfff2d 100644 --- a/lib/rubocop/cop/style/option_hash.rb +++ b/lib/rubocop/cop/style/option_hash.rb @@ -19,8 +19,6 @@ module Style # def fry(temperature: 300) # # ... # end - # - # @api private class OptionHash < Base MSG = 'Prefer keyword arguments to options hashes.' diff --git a/lib/rubocop/cop/style/optional_arguments.rb b/lib/rubocop/cop/style/optional_arguments.rb index 3ae47f32df9..973f9089bee 100644 --- a/lib/rubocop/cop/style/optional_arguments.rb +++ b/lib/rubocop/cop/style/optional_arguments.rb @@ -17,8 +17,6 @@ module Style # # def foobar(a = 1, b = 2, c = 3) # end - # - # @api private class OptionalArguments < Base MSG = 'Optional arguments should appear at the end ' \ 'of the argument list.' diff --git a/lib/rubocop/cop/style/optional_boolean_parameter.rb b/lib/rubocop/cop/style/optional_boolean_parameter.rb index 2d16cdf0f81..58573956ea8 100644 --- a/lib/rubocop/cop/style/optional_boolean_parameter.rb +++ b/lib/rubocop/cop/style/optional_boolean_parameter.rb @@ -23,7 +23,6 @@ module Style # puts bar # end # - # @api private class OptionalBooleanParameter < Base MSG = 'Use keyword arguments when defining method with boolean argument.' BOOLEAN_TYPES = %i[true false].freeze diff --git a/lib/rubocop/cop/style/or_assignment.rb b/lib/rubocop/cop/style/or_assignment.rb index b7b0723820a..f918f89fe21 100644 --- a/lib/rubocop/cop/style/or_assignment.rb +++ b/lib/rubocop/cop/style/or_assignment.rb @@ -26,8 +26,6 @@ module Style # # # good - set name to 'Bozhidar', only if it's nil or false # name ||= 'Bozhidar' - # - # @api private class OrAssignment < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/parallel_assignment.rb b/lib/rubocop/cop/style/parallel_assignment.rb index 1a33cc07879..e94923d055b 100644 --- a/lib/rubocop/cop/style/parallel_assignment.rb +++ b/lib/rubocop/cop/style/parallel_assignment.rb @@ -22,8 +22,6 @@ module Style # a = 1 # b = 2 # c = 3 - # - # @api private class ParallelAssignment < Base include RescueNode extend AutoCorrector diff --git a/lib/rubocop/cop/style/parentheses_around_condition.rb b/lib/rubocop/cop/style/parentheses_around_condition.rb index 0077792aecb..cf50cc83e30 100644 --- a/lib/rubocop/cop/style/parentheses_around_condition.rb +++ b/lib/rubocop/cop/style/parentheses_around_condition.rb @@ -53,7 +53,6 @@ module Style # y > 10) # end # - # @api private class ParenthesesAroundCondition < Base include SafeAssignment include Parentheses diff --git a/lib/rubocop/cop/style/percent_literal_delimiters.rb b/lib/rubocop/cop/style/percent_literal_delimiters.rb index 245539ca6b7..a597818253f 100644 --- a/lib/rubocop/cop/style/percent_literal_delimiters.rb +++ b/lib/rubocop/cop/style/percent_literal_delimiters.rb @@ -23,8 +23,6 @@ module Style # # # bad # %I(alpha beta) - # - # @api private class PercentLiteralDelimiters < Base include PercentLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/style/percent_q_literals.rb b/lib/rubocop/cop/style/percent_q_literals.rb index 4fdc9b73577..fbd566ec01d 100644 --- a/lib/rubocop/cop/style/percent_q_literals.rb +++ b/lib/rubocop/cop/style/percent_q_literals.rb @@ -25,8 +25,6 @@ module Style # # good # %Q/Mix the foo into the baz./ # %Q{They all said: 'Hooray!'} - # - # @api private class PercentQLiterals < Base include PercentLiteral include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/perl_backrefs.rb b/lib/rubocop/cop/style/perl_backrefs.rb index d9ada5ddc6c..6c58ba81c26 100644 --- a/lib/rubocop/cop/style/perl_backrefs.rb +++ b/lib/rubocop/cop/style/perl_backrefs.rb @@ -12,8 +12,6 @@ module Style # # # good # puts Regexp.last_match(1) - # - # @api private class PerlBackrefs < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/preferred_hash_methods.rb b/lib/rubocop/cop/style/preferred_hash_methods.rb index 7c6519d69b2..f9eccdbde50 100644 --- a/lib/rubocop/cop/style/preferred_hash_methods.rb +++ b/lib/rubocop/cop/style/preferred_hash_methods.rb @@ -25,8 +25,6 @@ module Style # # good # Hash#has_key? # Hash#has_value? - # - # @api private class PreferredHashMethods < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/proc.rb b/lib/rubocop/cop/style/proc.rb index ad9d8ddc360..55551964c84 100644 --- a/lib/rubocop/cop/style/proc.rb +++ b/lib/rubocop/cop/style/proc.rb @@ -13,7 +13,6 @@ module Style # # good # p = proc { |n| puts n } # - # @api private class Proc < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/raise_args.rb b/lib/rubocop/cop/style/raise_args.rb index d5e0730d106..56d54c4b527 100644 --- a/lib/rubocop/cop/style/raise_args.rb +++ b/lib/rubocop/cop/style/raise_args.rb @@ -32,8 +32,6 @@ module Style # raise StandardError.new("message") # raise MyCustomError.new(arg1, arg2, arg3) # fail "message" - # - # @api private class RaiseArgs < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/random_with_offset.rb b/lib/rubocop/cop/style/random_with_offset.rb index 469c88ceee6..255d2932856 100644 --- a/lib/rubocop/cop/style/random_with_offset.rb +++ b/lib/rubocop/cop/style/random_with_offset.rb @@ -23,8 +23,6 @@ module Style # # good # rand(1..6) # rand(1...7) - # - # @api private class RandomWithOffset < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_assignment.rb b/lib/rubocop/cop/style/redundant_assignment.rb index 9544dff92eb..1f11282dd53 100644 --- a/lib/rubocop/cop/style/redundant_assignment.rb +++ b/lib/rubocop/cop/style/redundant_assignment.rb @@ -37,7 +37,6 @@ module Style # end # end # - # @api private class RedundantAssignment < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_begin.rb b/lib/rubocop/cop/style/redundant_begin.rb index 623796172a9..19bf39dcb62 100644 --- a/lib/rubocop/cop/style/redundant_begin.rb +++ b/lib/rubocop/cop/style/redundant_begin.rb @@ -54,8 +54,6 @@ module Style # baz # end # end - # - # @api private class RedundantBegin < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_capital_w.rb b/lib/rubocop/cop/style/redundant_capital_w.rb index 4f29c9fe216..36f01303377 100644 --- a/lib/rubocop/cop/style/redundant_capital_w.rb +++ b/lib/rubocop/cop/style/redundant_capital_w.rb @@ -14,8 +14,6 @@ module Style # %w/swim run bike/ # %w[shirt pants shoes] # %W(apple #{fruit} grape) - # - # @api private class RedundantCapitalW < Base include PercentLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_condition.rb b/lib/rubocop/cop/style/redundant_condition.rb index 1fcc140d9ec..d6e5284ed83 100644 --- a/lib/rubocop/cop/style/redundant_condition.rb +++ b/lib/rubocop/cop/style/redundant_condition.rb @@ -30,7 +30,6 @@ module Style # c # end # - # @api private class RedundantCondition < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_conditional.rb b/lib/rubocop/cop/style/redundant_conditional.rb index d8f5a50bb53..e922a83b88d 100644 --- a/lib/rubocop/cop/style/redundant_conditional.rb +++ b/lib/rubocop/cop/style/redundant_conditional.rb @@ -24,8 +24,6 @@ module Style # # # good # x != y - # - # @api private class RedundantConditional < Cop include Alignment diff --git a/lib/rubocop/cop/style/redundant_exception.rb b/lib/rubocop/cop/style/redundant_exception.rb index 31c4580f449..0bd810706d7 100644 --- a/lib/rubocop/cop/style/redundant_exception.rb +++ b/lib/rubocop/cop/style/redundant_exception.rb @@ -16,8 +16,6 @@ module Style # # # Good # raise 'message' - # - # @api private class RedundantException < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_fetch_block.rb b/lib/rubocop/cop/style/redundant_fetch_block.rb index 614df768a50..09686b43ea2 100644 --- a/lib/rubocop/cop/style/redundant_fetch_block.rb +++ b/lib/rubocop/cop/style/redundant_fetch_block.rb @@ -31,7 +31,6 @@ module Style # # good # ENV.fetch(:key, VALUE) # - # @api private class RedundantFetchBlock < Base include FrozenStringLiteral include RangeHelp diff --git a/lib/rubocop/cop/style/redundant_file_extension_in_require.rb b/lib/rubocop/cop/style/redundant_file_extension_in_require.rb index 49eb5c2b46b..c4f17c32e98 100644 --- a/lib/rubocop/cop/style/redundant_file_extension_in_require.rb +++ b/lib/rubocop/cop/style/redundant_file_extension_in_require.rb @@ -24,7 +24,6 @@ module Style # require_relative '../foo' # require_relative '../foo.so' # - # @api private class RedundantFileExtensionInRequire < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_freeze.rb b/lib/rubocop/cop/style/redundant_freeze.rb index b194e0e7f75..bbb2257dd7d 100644 --- a/lib/rubocop/cop/style/redundant_freeze.rb +++ b/lib/rubocop/cop/style/redundant_freeze.rb @@ -11,8 +11,6 @@ module Style # # # good # CONST = 1 - # - # @api private class RedundantFreeze < Base extend AutoCorrector include FrozenStringLiteral diff --git a/lib/rubocop/cop/style/redundant_interpolation.rb b/lib/rubocop/cop/style/redundant_interpolation.rb index c4be0d0afef..9ade739712f 100644 --- a/lib/rubocop/cop/style/redundant_interpolation.rb +++ b/lib/rubocop/cop/style/redundant_interpolation.rb @@ -15,8 +15,6 @@ module Style # # # good if @var is already a String # @var - # - # @api private class RedundantInterpolation < Base include PercentLiteral extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_parentheses.rb b/lib/rubocop/cop/style/redundant_parentheses.rb index cbd18fc051b..3a040adef50 100644 --- a/lib/rubocop/cop/style/redundant_parentheses.rb +++ b/lib/rubocop/cop/style/redundant_parentheses.rb @@ -13,7 +13,6 @@ module Style # # good # x if y.z.nil? # - # @api private class RedundantParentheses < Base include Parentheses extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_percent_q.rb b/lib/rubocop/cop/style/redundant_percent_q.rb index e8818828dbb..fa81f94d9b4 100644 --- a/lib/rubocop/cop/style/redundant_percent_q.rb +++ b/lib/rubocop/cop/style/redundant_percent_q.rb @@ -17,7 +17,6 @@ module Style # time = "8 o'clock" # question = '"What did you say?"' # - # @api private class RedundantPercentQ < Cop MSG = 'Use `%s` only for strings that contain both ' \ 'single quotes and double quotes%s.' diff --git a/lib/rubocop/cop/style/redundant_regexp_character_class.rb b/lib/rubocop/cop/style/redundant_regexp_character_class.rb index 4fc77e3309d..369b8130295 100644 --- a/lib/rubocop/cop/style/redundant_regexp_character_class.rb +++ b/lib/rubocop/cop/style/redundant_regexp_character_class.rb @@ -21,8 +21,6 @@ module Style # # # good # r = /[ab]/ - # - # @api private class RedundantRegexpCharacterClass < Base include MatchRange include RegexpLiteralHelp diff --git a/lib/rubocop/cop/style/redundant_regexp_escape.rb b/lib/rubocop/cop/style/redundant_regexp_escape.rb index d09266fb5e0..43b4b56d328 100644 --- a/lib/rubocop/cop/style/redundant_regexp_escape.rb +++ b/lib/rubocop/cop/style/redundant_regexp_escape.rb @@ -32,8 +32,6 @@ module Style # # # good # /[+\-]\d/ - # - # @api private class RedundantRegexpEscape < Base include RangeHelp include RegexpLiteralHelp diff --git a/lib/rubocop/cop/style/redundant_return.rb b/lib/rubocop/cop/style/redundant_return.rb index 94348e0049a..63de3759f57 100644 --- a/lib/rubocop/cop/style/redundant_return.rb +++ b/lib/rubocop/cop/style/redundant_return.rb @@ -47,7 +47,6 @@ module Style # return x, y # end # - # @api private class RedundantReturn < Cop include RangeHelp diff --git a/lib/rubocop/cop/style/redundant_self.rb b/lib/rubocop/cop/style/redundant_self.rb index b4a1e059938..515ddac3925 100644 --- a/lib/rubocop/cop/style/redundant_self.rb +++ b/lib/rubocop/cop/style/redundant_self.rb @@ -41,8 +41,6 @@ module Style # self.bar == bar # Resolves name clash with argument of the block. # end # end - # - # @api private class RedundantSelf < Cop MSG = 'Redundant `self` detected.' KERNEL_METHODS = Kernel.methods(false) diff --git a/lib/rubocop/cop/style/redundant_self_assignment.rb b/lib/rubocop/cop/style/redundant_self_assignment.rb index 66d03481c13..7bc8760787b 100644 --- a/lib/rubocop/cop/style/redundant_self_assignment.rb +++ b/lib/rubocop/cop/style/redundant_self_assignment.rb @@ -27,7 +27,6 @@ module Style # foo.concat(ary) # self.foo += ary # - # @api private class RedundantSelfAssignment < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/redundant_sort.rb b/lib/rubocop/cop/style/redundant_sort.rb index f4658211be9..135a7b2954d 100644 --- a/lib/rubocop/cop/style/redundant_sort.rb +++ b/lib/rubocop/cop/style/redundant_sort.rb @@ -49,7 +49,6 @@ module Style # # good # arr.max_by(&:foo) # - # @api private class RedundantSort < Cop include RangeHelp diff --git a/lib/rubocop/cop/style/redundant_sort_by.rb b/lib/rubocop/cop/style/redundant_sort_by.rb index 034e38df36b..c5282327c1f 100644 --- a/lib/rubocop/cop/style/redundant_sort_by.rb +++ b/lib/rubocop/cop/style/redundant_sort_by.rb @@ -15,8 +15,6 @@ module Style # # # good # array.sort - # - # @api private class RedundantSortBy < Cop include RangeHelp diff --git a/lib/rubocop/cop/style/regexp_literal.rb b/lib/rubocop/cop/style/regexp_literal.rb index a2fb24e8d0d..9469167f9b5 100644 --- a/lib/rubocop/cop/style/regexp_literal.rb +++ b/lib/rubocop/cop/style/regexp_literal.rb @@ -81,8 +81,6 @@ module Style # @example AllowInnerSlashes: true # # good # x =~ /home\// - # - # @api private class RegexpLiteral < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/rescue_modifier.rb b/lib/rubocop/cop/style/rescue_modifier.rb index 0278db68c79..884934906a9 100644 --- a/lib/rubocop/cop/style/rescue_modifier.rb +++ b/lib/rubocop/cop/style/rescue_modifier.rb @@ -39,8 +39,6 @@ module Style # rescue SomeException # handle_error # end - # - # @api private class RescueModifier < Cop include Alignment include RescueNode diff --git a/lib/rubocop/cop/style/rescue_standard_error.rb b/lib/rubocop/cop/style/rescue_standard_error.rb index c98e92e422a..adaf877e9ff 100644 --- a/lib/rubocop/cop/style/rescue_standard_error.rb +++ b/lib/rubocop/cop/style/rescue_standard_error.rb @@ -70,8 +70,6 @@ module Style # rescue StandardError, SecurityError # bar # end - # - # @api private class RescueStandardError < Cop include RescueNode include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/return_nil.rb b/lib/rubocop/cop/style/return_nil.rb index a594d4abdce..29e4f82feaa 100644 --- a/lib/rubocop/cop/style/return_nil.rb +++ b/lib/rubocop/cop/style/return_nil.rb @@ -28,8 +28,6 @@ module Style # def foo(arg) # return nil if arg # end - # - # @api private class ReturnNil < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/safe_navigation.rb b/lib/rubocop/cop/style/safe_navigation.rb index 3f2c4aa7325..6e2be6f0d55 100644 --- a/lib/rubocop/cop/style/safe_navigation.rb +++ b/lib/rubocop/cop/style/safe_navigation.rb @@ -58,8 +58,6 @@ module Style # foo.baz = bar if foo # foo.baz + bar if foo # foo.bar > 2 if foo - # - # @api private class SafeNavigation < Base include NilMethods include RangeHelp diff --git a/lib/rubocop/cop/style/sample.rb b/lib/rubocop/cop/style/sample.rb index e8f516fd911..cc59190444f 100644 --- a/lib/rubocop/cop/style/sample.rb +++ b/lib/rubocop/cop/style/sample.rb @@ -27,8 +27,6 @@ module Style # [1, 2, 3].shuffle[1..3] # sample(3) might return a longer Array # [1, 2, 3].shuffle[foo, bar] # [1, 2, 3].shuffle(random: Random.new) - # - # @api private class Sample < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/self_assignment.rb b/lib/rubocop/cop/style/self_assignment.rb index 3016fbe41c4..00b54a97ba8 100644 --- a/lib/rubocop/cop/style/self_assignment.rb +++ b/lib/rubocop/cop/style/self_assignment.rb @@ -12,8 +12,6 @@ module Style # # # good # x += 1 - # - # @api private class SelfAssignment < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/semicolon.rb b/lib/rubocop/cop/style/semicolon.rb index e129910e821..e09fde2e657 100644 --- a/lib/rubocop/cop/style/semicolon.rb +++ b/lib/rubocop/cop/style/semicolon.rb @@ -26,8 +26,6 @@ module Style # @example AllowAsExpressionSeparator: true # # good # foo = 1; bar = 2 - # - # @api private class Semicolon < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/send.rb b/lib/rubocop/cop/style/send.rb index 0740d4e08c4..84b3417968a 100644 --- a/lib/rubocop/cop/style/send.rb +++ b/lib/rubocop/cop/style/send.rb @@ -13,8 +13,6 @@ module Style # # good # Foo.__send__(:bar) # quuz.public_send(:fred) - # - # @api private class Send < Base MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \ '`send`.' diff --git a/lib/rubocop/cop/style/signal_exception.rb b/lib/rubocop/cop/style/signal_exception.rb index 7daf428898e..21529ba1a83 100644 --- a/lib/rubocop/cop/style/signal_exception.rb +++ b/lib/rubocop/cop/style/signal_exception.rb @@ -104,8 +104,6 @@ module Style # # explicit_receiver.fail # explicit_receiver.raise - # - # @api private class SignalException < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/single_argument_dig.rb b/lib/rubocop/cop/style/single_argument_dig.rb index 6d49fed8d8f..de975d439d0 100644 --- a/lib/rubocop/cop/style/single_argument_dig.rb +++ b/lib/rubocop/cop/style/single_argument_dig.rb @@ -23,7 +23,6 @@ module Style # keys = %i[key1 key2] # { key1: { key2: 'value' } }.dig(*keys) # - # @api private class SingleArgumentDig < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/single_line_block_params.rb b/lib/rubocop/cop/style/single_line_block_params.rb index 87c9f2002bb..44ca44017a8 100644 --- a/lib/rubocop/cop/style/single_line_block_params.rb +++ b/lib/rubocop/cop/style/single_line_block_params.rb @@ -28,8 +28,6 @@ module Style # foo.reduce do |c, d| # c + d # end - # - # @api private class SingleLineBlockParams < Base MSG = 'Name `%s` block params `|%s|`.' diff --git a/lib/rubocop/cop/style/single_line_methods.rb b/lib/rubocop/cop/style/single_line_methods.rb index 10c67732591..a0340cf1a53 100644 --- a/lib/rubocop/cop/style/single_line_methods.rb +++ b/lib/rubocop/cop/style/single_line_methods.rb @@ -24,7 +24,6 @@ module Style # # bad # def no_op; end # - # @api private class SingleLineMethods < Base include Alignment extend AutoCorrector diff --git a/lib/rubocop/cop/style/slicing_with_range.rb b/lib/rubocop/cop/style/slicing_with_range.rb index b43793319be..991b11785a6 100644 --- a/lib/rubocop/cop/style/slicing_with_range.rb +++ b/lib/rubocop/cop/style/slicing_with_range.rb @@ -12,8 +12,6 @@ module Style # # # good # items[1..] - # - # @api private class SlicingWithRange < Base extend AutoCorrector extend TargetRubyVersion diff --git a/lib/rubocop/cop/style/sole_nested_conditional.rb b/lib/rubocop/cop/style/sole_nested_conditional.rb index ec36d83b7ec..17e301dc352 100644 --- a/lib/rubocop/cop/style/sole_nested_conditional.rb +++ b/lib/rubocop/cop/style/sole_nested_conditional.rb @@ -32,7 +32,6 @@ module Style # do_something if condition_b # end # - # @api private class SoleNestedConditional < Base MSG = 'Consider merging nested conditions into '\ 'outer `%s` conditions.' diff --git a/lib/rubocop/cop/style/special_global_vars.rb b/lib/rubocop/cop/style/special_global_vars.rb index fa78a45d071..28fdcd90fc0 100644 --- a/lib/rubocop/cop/style/special_global_vars.rb +++ b/lib/rubocop/cop/style/special_global_vars.rb @@ -56,7 +56,6 @@ module Style # puts $' # puts $+ # - # @api private class SpecialGlobalVars < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/stabby_lambda_parentheses.rb b/lib/rubocop/cop/style/stabby_lambda_parentheses.rb index be5926a9d7e..70c2a8490bf 100644 --- a/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +++ b/lib/rubocop/cop/style/stabby_lambda_parentheses.rb @@ -19,8 +19,6 @@ module Style # # # good # ->a,b,c { a + b + c} - # - # @api private class StabbyLambdaParentheses < Base include ConfigurableEnforcedStyle extend AutoCorrector diff --git a/lib/rubocop/cop/style/stderr_puts.rb b/lib/rubocop/cop/style/stderr_puts.rb index a7aa0f871ac..7aa28bf398e 100644 --- a/lib/rubocop/cop/style/stderr_puts.rb +++ b/lib/rubocop/cop/style/stderr_puts.rb @@ -14,7 +14,6 @@ module Style # # good # warn('hello') # - # @api private class StderrPuts < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/string_concatenation.rb b/lib/rubocop/cop/style/string_concatenation.rb index fa8cfab1ac1..2e53099657a 100644 --- a/lib/rubocop/cop/style/string_concatenation.rb +++ b/lib/rubocop/cop/style/string_concatenation.rb @@ -14,7 +14,6 @@ module Style # email_with_name = "#{user.name} <#{user.email}>" # email_with_name = format('%s <%s>', user.name, user.email) # - # @api private class StringConcatenation < Base include Util extend AutoCorrector diff --git a/lib/rubocop/cop/style/string_hash_keys.rb b/lib/rubocop/cop/style/string_hash_keys.rb index bd5cb91d4fc..845e62941ab 100644 --- a/lib/rubocop/cop/style/string_hash_keys.rb +++ b/lib/rubocop/cop/style/string_hash_keys.rb @@ -12,8 +12,6 @@ module Style # # # good # { one: 1, two: 2, three: 3 } - # - # @api private class StringHashKeys < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/string_literals.rb b/lib/rubocop/cop/style/string_literals.rb index fdbb97c5f82..c4274bd5162 100644 --- a/lib/rubocop/cop/style/string_literals.rb +++ b/lib/rubocop/cop/style/string_literals.rb @@ -26,8 +26,6 @@ module Style # "Just some text" # "No special chars or interpolation" # "Every string in #{project} uses double_quotes" - # - # @api private class StringLiterals < Cop include ConfigurableEnforcedStyle include StringLiteralsHelp diff --git a/lib/rubocop/cop/style/string_literals_in_interpolation.rb b/lib/rubocop/cop/style/string_literals_in_interpolation.rb index f240848aec1..b6cf412f226 100644 --- a/lib/rubocop/cop/style/string_literals_in_interpolation.rb +++ b/lib/rubocop/cop/style/string_literals_in_interpolation.rb @@ -19,8 +19,6 @@ module Style # # # good # result = "Tests #{success ? "PASS" : "FAIL"}" - # - # @api private class StringLiteralsInInterpolation < Cop include ConfigurableEnforcedStyle include StringLiteralsHelp diff --git a/lib/rubocop/cop/style/string_methods.rb b/lib/rubocop/cop/style/string_methods.rb index a2f529bd11e..6b1d0f7d75c 100644 --- a/lib/rubocop/cop/style/string_methods.rb +++ b/lib/rubocop/cop/style/string_methods.rb @@ -14,8 +14,6 @@ module Style # # good # 'name'.to_sym # 'var'.preferred_method - # - # @api private class StringMethods < Base include MethodPreference extend AutoCorrector diff --git a/lib/rubocop/cop/style/strip.rb b/lib/rubocop/cop/style/strip.rb index 82e3d9df6f8..0e202de8f49 100644 --- a/lib/rubocop/cop/style/strip.rb +++ b/lib/rubocop/cop/style/strip.rb @@ -13,8 +13,6 @@ module Style # # # good # 'abc'.strip - # - # @api private class Strip < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/struct_inheritance.rb b/lib/rubocop/cop/style/struct_inheritance.rb index 661e8cf1457..4e823b770ff 100644 --- a/lib/rubocop/cop/style/struct_inheritance.rb +++ b/lib/rubocop/cop/style/struct_inheritance.rb @@ -19,8 +19,6 @@ module Style # 42 # end # end - # - # @api private class StructInheritance < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/symbol_array.rb b/lib/rubocop/cop/style/symbol_array.rb index 47a9442f4f9..9e1fa97b089 100644 --- a/lib/rubocop/cop/style/symbol_array.rb +++ b/lib/rubocop/cop/style/symbol_array.rb @@ -27,8 +27,6 @@ module Style # # # bad # %i[foo bar baz] - # - # @api private class SymbolArray < Base include ArrayMinSize include ArraySyntax diff --git a/lib/rubocop/cop/style/symbol_literal.rb b/lib/rubocop/cop/style/symbol_literal.rb index fc5defa9e94..37e16b17736 100644 --- a/lib/rubocop/cop/style/symbol_literal.rb +++ b/lib/rubocop/cop/style/symbol_literal.rb @@ -12,8 +12,6 @@ module Style # # # good # :symbol - # - # @api private class SymbolLiteral < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/symbol_proc.rb b/lib/rubocop/cop/style/symbol_proc.rb index 66262245ed6..c7cbad1a556 100644 --- a/lib/rubocop/cop/style/symbol_proc.rb +++ b/lib/rubocop/cop/style/symbol_proc.rb @@ -11,8 +11,6 @@ module Style # # # good # something.map(&:upcase) - # - # @api private class SymbolProc < Base include RangeHelp include IgnoredMethods diff --git a/lib/rubocop/cop/style/ternary_parentheses.rb b/lib/rubocop/cop/style/ternary_parentheses.rb index 4ee0a09d5a7..e4390ad2bf6 100644 --- a/lib/rubocop/cop/style/ternary_parentheses.rb +++ b/lib/rubocop/cop/style/ternary_parentheses.rb @@ -54,7 +54,6 @@ module Style # # bad # foo = (bar = baz) ? a : b # - # @api private class TernaryParentheses < Base include SafeAssignment include ConfigurableEnforcedStyle diff --git a/lib/rubocop/cop/style/trailing_body_on_class.rb b/lib/rubocop/cop/style/trailing_body_on_class.rb index 13ca22880eb..2e64d83dec7 100644 --- a/lib/rubocop/cop/style/trailing_body_on_class.rb +++ b/lib/rubocop/cop/style/trailing_body_on_class.rb @@ -15,7 +15,6 @@ module Style # def foo; end # end # - # @api private class TrailingBodyOnClass < Base include Alignment include TrailingBody diff --git a/lib/rubocop/cop/style/trailing_body_on_method_definition.rb b/lib/rubocop/cop/style/trailing_body_on_method_definition.rb index f15cc8f3832..107b642ac7d 100644 --- a/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +++ b/lib/rubocop/cop/style/trailing_body_on_method_definition.rb @@ -24,7 +24,6 @@ module Style # b[c: x] # end # - # @api private class TrailingBodyOnMethodDefinition < Base include Alignment include TrailingBody diff --git a/lib/rubocop/cop/style/trailing_body_on_module.rb b/lib/rubocop/cop/style/trailing_body_on_module.rb index fb261190737..2408014dc2a 100644 --- a/lib/rubocop/cop/style/trailing_body_on_module.rb +++ b/lib/rubocop/cop/style/trailing_body_on_module.rb @@ -15,7 +15,6 @@ module Style # extend self # end # - # @api private class TrailingBodyOnModule < Base include Alignment include TrailingBody diff --git a/lib/rubocop/cop/style/trailing_comma_in_arguments.rb b/lib/rubocop/cop/style/trailing_comma_in_arguments.rb index 6d7da2e56d9..d04e27f31fc 100644 --- a/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +++ b/lib/rubocop/cop/style/trailing_comma_in_arguments.rb @@ -84,8 +84,6 @@ module Style # 1, # 2 # ) - # - # @api private class TrailingCommaInArguments < Base include TrailingComma extend AutoCorrector diff --git a/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb b/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb index 5b60f8380cb..224048aa8ac 100644 --- a/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb +++ b/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb @@ -81,8 +81,6 @@ module Style # 1, # 2 # ] - # - # @api private class TrailingCommaInArrayLiteral < Base include TrailingComma extend AutoCorrector diff --git a/lib/rubocop/cop/style/trailing_comma_in_block_args.rb b/lib/rubocop/cop/style/trailing_comma_in_block_args.rb index 8dd5cea003b..91da3505d6d 100644 --- a/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +++ b/lib/rubocop/cop/style/trailing_comma_in_block_args.rb @@ -40,8 +40,6 @@ module Style # add do # foo + bar # end - # - # @api private class TrailingCommaInBlockArgs < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb b/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb index f7f13114ae9..1aeb4964eb8 100644 --- a/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb +++ b/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb @@ -84,8 +84,6 @@ module Style # foo: 1, # bar: 2 # } - # - # @api private class TrailingCommaInHashLiteral < Base include TrailingComma extend AutoCorrector diff --git a/lib/rubocop/cop/style/trailing_method_end_statement.rb b/lib/rubocop/cop/style/trailing_method_end_statement.rb index 71106f223ad..b1510748d04 100644 --- a/lib/rubocop/cop/style/trailing_method_end_statement.rb +++ b/lib/rubocop/cop/style/trailing_method_end_statement.rb @@ -33,7 +33,6 @@ module Style # end # end # - # @api private class TrailingMethodEndStatement < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/trailing_underscore_variable.rb b/lib/rubocop/cop/style/trailing_underscore_variable.rb index 5fc7bcb74a0..ef5ec64179e 100644 --- a/lib/rubocop/cop/style/trailing_underscore_variable.rb +++ b/lib/rubocop/cop/style/trailing_underscore_variable.rb @@ -28,7 +28,6 @@ module Style # # bad # a, b, _something = foo() # - # @api private class TrailingUnderscoreVariable < Base include SurroundingSpace include RangeHelp diff --git a/lib/rubocop/cop/style/trivial_accessors.rb b/lib/rubocop/cop/style/trivial_accessors.rb index 625c64e4a70..2eb31d460b2 100644 --- a/lib/rubocop/cop/style/trivial_accessors.rb +++ b/lib/rubocop/cop/style/trivial_accessors.rb @@ -27,8 +27,6 @@ module Style # class << self # attr_reader :baz # end - # - # @api private class TrivialAccessors < Base include AllowedMethods extend AutoCorrector diff --git a/lib/rubocop/cop/style/unless_else.rb b/lib/rubocop/cop/style/unless_else.rb index 44886f93569..df180867310 100644 --- a/lib/rubocop/cop/style/unless_else.rb +++ b/lib/rubocop/cop/style/unless_else.rb @@ -19,8 +19,6 @@ module Style # else # # do a different thing... # end - # - # @api private class UnlessElse < Base include RangeHelp extend AutoCorrector diff --git a/lib/rubocop/cop/style/unpack_first.rb b/lib/rubocop/cop/style/unpack_first.rb index 0d6047c7853..8daec63217b 100644 --- a/lib/rubocop/cop/style/unpack_first.rb +++ b/lib/rubocop/cop/style/unpack_first.rb @@ -17,7 +17,6 @@ module Style # # good # 'foo'.unpack1('h*') # - # @api private class UnpackFirst < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/variable_interpolation.rb b/lib/rubocop/cop/style/variable_interpolation.rb index e85054e5529..c0f8ca43f10 100644 --- a/lib/rubocop/cop/style/variable_interpolation.rb +++ b/lib/rubocop/cop/style/variable_interpolation.rb @@ -15,8 +15,6 @@ module Style # "His name is #{$name}" # /check #{$pattern}/ # "Let's go to the #{@store}" - # - # @api private class VariableInterpolation < Base include Interpolation extend AutoCorrector diff --git a/lib/rubocop/cop/style/when_then.rb b/lib/rubocop/cop/style/when_then.rb index 39baf83c0c4..e90147f212f 100644 --- a/lib/rubocop/cop/style/when_then.rb +++ b/lib/rubocop/cop/style/when_then.rb @@ -17,8 +17,6 @@ module Style # when 1 then 'baz' # when 2 then 'bar' # end - # - # @api private class WhenThen < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/while_until_do.rb b/lib/rubocop/cop/style/while_until_do.rb index 0e25c9ca132..443134445fb 100644 --- a/lib/rubocop/cop/style/while_until_do.rb +++ b/lib/rubocop/cop/style/while_until_do.rb @@ -28,8 +28,6 @@ module Style # until x.empty? # do_something(x.pop) # end - # - # @api private class WhileUntilDo < Base extend AutoCorrector diff --git a/lib/rubocop/cop/style/while_until_modifier.rb b/lib/rubocop/cop/style/while_until_modifier.rb index 24310fc64d4..50b909bc518 100644 --- a/lib/rubocop/cop/style/while_until_modifier.rb +++ b/lib/rubocop/cop/style/while_until_modifier.rb @@ -24,8 +24,6 @@ module Style # # # good # x += 1 until x > 10 - # - # @api private class WhileUntilModifier < Base include StatementModifier extend AutoCorrector diff --git a/lib/rubocop/cop/style/word_array.rb b/lib/rubocop/cop/style/word_array.rb index a8be4b430c9..efa605115a7 100644 --- a/lib/rubocop/cop/style/word_array.rb +++ b/lib/rubocop/cop/style/word_array.rb @@ -27,8 +27,6 @@ module Style # # # bad # %w[foo bar baz] - # - # @api private class WordArray < Base include ArrayMinSize include ArraySyntax diff --git a/lib/rubocop/cop/style/yoda_condition.rb b/lib/rubocop/cop/style/yoda_condition.rb index de007427158..932b10a10fa 100644 --- a/lib/rubocop/cop/style/yoda_condition.rb +++ b/lib/rubocop/cop/style/yoda_condition.rb @@ -52,8 +52,6 @@ module Style # # good # 99 == foo # "bar" != foo - # - # @api private class YodaCondition < Base include ConfigurableEnforcedStyle include RangeHelp diff --git a/lib/rubocop/cop/style/zero_length_predicate.rb b/lib/rubocop/cop/style/zero_length_predicate.rb index 8432a8eb7f0..7136f72a54d 100644 --- a/lib/rubocop/cop/style/zero_length_predicate.rb +++ b/lib/rubocop/cop/style/zero_length_predicate.rb @@ -25,8 +25,6 @@ module Style # !{a: 1, b: 2}.empty? # !string.empty? # !hash.empty? - # - # @api private class ZeroLengthPredicate < Base extend AutoCorrector diff --git a/lib/rubocop/cop/variable_force/branch.rb b/lib/rubocop/cop/variable_force/branch.rb index 96acc5f0db4..9d23bb562ea 100644 --- a/lib/rubocop/cop/variable_force/branch.rb +++ b/lib/rubocop/cop/variable_force/branch.rb @@ -168,8 +168,6 @@ def always_run? # else # truthy_body # end - # - # @api private class If < Base include SimpleConditional @@ -181,8 +179,6 @@ class If < Base # while conditional_clause # loop_body # end - # - # @api private class While < Base include SimpleConditional @@ -193,8 +189,6 @@ class While < Base # until conditional_clause # loop_body # end - # - # @api private class Until < Base include SimpleConditional @@ -205,8 +199,6 @@ class Until < Base # begin # loop_body # end while conditional_clause - # - # @api private class WhilePost < Base include SimpleConditional @@ -217,8 +209,6 @@ class WhilePost < Base # begin # loop_body # end until conditional_clause - # - # @api private class UntilPost < Base include SimpleConditional @@ -231,8 +221,6 @@ class UntilPost < Base # else # else_body # end - # - # @api private class Case < Base define_predicate :target?, child_index: 0 define_predicate :when_clause?, child_index: 1..-2 @@ -246,8 +234,6 @@ def always_run? # for element in collection # loop_body # end - # - # @api private class For < Base define_predicate :element?, child_index: 0 define_predicate :collection?, child_index: 1 @@ -266,8 +252,6 @@ def always_run? end # left_body && right_body - # - # @api private class And < Base include LogicalOperator @@ -276,8 +260,6 @@ class And < Base end # left_body || right_body - # - # @api private class Or < Base include LogicalOperator @@ -302,8 +284,6 @@ def may_run_incompletely? # else # else_body # end - # - # @api private class Rescue < Base include ExceptionHandler @@ -321,8 +301,6 @@ def always_run? # ensure # ensure_body # end - # - # @api private class Ensure < Base include ExceptionHandler diff --git a/lib/rubocop/formatter/auto_gen_config_formatter.rb b/lib/rubocop/formatter/auto_gen_config_formatter.rb index 9c7aaac7158..3f496cd86ef 100644 --- a/lib/rubocop/formatter/auto_gen_config_formatter.rb +++ b/lib/rubocop/formatter/auto_gen_config_formatter.rb @@ -3,8 +3,6 @@ module RuboCop module Formatter # Does not show individual offenses in the console. - # - # @api private class AutoGenConfigFormatter < ProgressFormatter def finished(inspected_files) output.puts diff --git a/lib/rubocop/formatter/clang_style_formatter.rb b/lib/rubocop/formatter/clang_style_formatter.rb index 384a7e5a9ef..826fa3cb4fb 100644 --- a/lib/rubocop/formatter/clang_style_formatter.rb +++ b/lib/rubocop/formatter/clang_style_formatter.rb @@ -5,8 +5,6 @@ module Formatter # This formatter formats report data in clang style. # The precise location of the problem is shown together with the # relevant source code. - # - # @api private class ClangStyleFormatter < SimpleTextFormatter ELLIPSES = '...' diff --git a/lib/rubocop/formatter/disabled_config_formatter.rb b/lib/rubocop/formatter/disabled_config_formatter.rb index 96c3dd17b21..840fb2744a7 100644 --- a/lib/rubocop/formatter/disabled_config_formatter.rb +++ b/lib/rubocop/formatter/disabled_config_formatter.rb @@ -4,8 +4,6 @@ module RuboCop module Formatter # This formatter displays a YAML configuration file where all cops that # detected any offenses are configured to not detect the offense. - # - # @api private class DisabledConfigFormatter < BaseFormatter HEADING = <<~COMMENTS # This configuration was generated by diff --git a/lib/rubocop/formatter/emacs_style_formatter.rb b/lib/rubocop/formatter/emacs_style_formatter.rb index b1557f886c8..12313b7fa31 100644 --- a/lib/rubocop/formatter/emacs_style_formatter.rb +++ b/lib/rubocop/formatter/emacs_style_formatter.rb @@ -5,8 +5,6 @@ module Formatter # This formatter displays the report data in format that's # easy to process in the Emacs text editor. # The output is machine-parsable. - # - # @api private class EmacsStyleFormatter < BaseFormatter def file_finished(file, offenses) offenses.each do |o| diff --git a/lib/rubocop/formatter/file_list_formatter.rb b/lib/rubocop/formatter/file_list_formatter.rb index e353e57660d..a7cbf44ecda 100644 --- a/lib/rubocop/formatter/file_list_formatter.rb +++ b/lib/rubocop/formatter/file_list_formatter.rb @@ -9,8 +9,6 @@ module Formatter # # /some/file # /some/other/file - # - # @api private class FileListFormatter < BaseFormatter def file_finished(file, offenses) return if offenses.empty? diff --git a/lib/rubocop/formatter/fuubar_style_formatter.rb b/lib/rubocop/formatter/fuubar_style_formatter.rb index fd866c2ebda..c0e9da9798d 100644 --- a/lib/rubocop/formatter/fuubar_style_formatter.rb +++ b/lib/rubocop/formatter/fuubar_style_formatter.rb @@ -8,8 +8,6 @@ module Formatter # soon as they are detected. # This is inspired by the Fuubar formatter for RSpec by Jeff Kreeftmeijer. # https://github.com/jeffkreeftmeijer/fuubar - # - # @api private class FuubarStyleFormatter < ClangStyleFormatter RESET_SEQUENCE = "\e[0m" diff --git a/lib/rubocop/formatter/html_formatter.rb b/lib/rubocop/formatter/html_formatter.rb index e51d2ad111e..151051c1862 100644 --- a/lib/rubocop/formatter/html_formatter.rb +++ b/lib/rubocop/formatter/html_formatter.rb @@ -9,8 +9,6 @@ module RuboCop module Formatter # This formatter saves the output as an html file. - # - # @api private class HTMLFormatter < BaseFormatter ELLIPSES = '...' TEMPLATE_PATH = diff --git a/lib/rubocop/formatter/json_formatter.rb b/lib/rubocop/formatter/json_formatter.rb index 13f14cc38c3..551f4d32a2a 100644 --- a/lib/rubocop/formatter/json_formatter.rb +++ b/lib/rubocop/formatter/json_formatter.rb @@ -6,8 +6,6 @@ module RuboCop module Formatter # This formatter formats the report data in JSON format. - # - # @api private class JSONFormatter < BaseFormatter include PathUtil diff --git a/lib/rubocop/formatter/junit_formatter.rb b/lib/rubocop/formatter/junit_formatter.rb index 3287ac45798..f05d406bdc0 100644 --- a/lib/rubocop/formatter/junit_formatter.rb +++ b/lib/rubocop/formatter/junit_formatter.rb @@ -14,8 +14,6 @@ module RuboCop module Formatter # This formatter formats the report data in JUnit format. - # - # @api private class JUnitFormatter < BaseFormatter def initialize(output, options = {}) super diff --git a/lib/rubocop/formatter/offense_count_formatter.rb b/lib/rubocop/formatter/offense_count_formatter.rb index be18d32b1d5..96995e3ae7c 100644 --- a/lib/rubocop/formatter/offense_count_formatter.rb +++ b/lib/rubocop/formatter/offense_count_formatter.rb @@ -11,8 +11,6 @@ module Formatter # 3 OneLineConditional # -- # 29 Total - # - # @api private class OffenseCountFormatter < BaseFormatter attr_reader :offense_counts diff --git a/lib/rubocop/formatter/pacman_formatter.rb b/lib/rubocop/formatter/pacman_formatter.rb index 29d28deff62..4c8afb22ce8 100644 --- a/lib/rubocop/formatter/pacman_formatter.rb +++ b/lib/rubocop/formatter/pacman_formatter.rb @@ -7,8 +7,6 @@ module Formatter # Otherwise it will print a Ghost. # This is inspired by the Pacman formatter for RSpec by Carlos Rojas. # https://github.com/go-labs/rspec_pacman_formatter - # - # @api private class PacmanFormatter < ClangStyleFormatter include TextUtil attr_accessor :progress_line diff --git a/lib/rubocop/formatter/progress_formatter.rb b/lib/rubocop/formatter/progress_formatter.rb index d4650118272..3a3e9738c27 100644 --- a/lib/rubocop/formatter/progress_formatter.rb +++ b/lib/rubocop/formatter/progress_formatter.rb @@ -5,8 +5,6 @@ module Formatter # This formatter display dots for files with no offenses and # letters for files with problems in the them. In the end it # appends the regular report data in the clang style format. - # - # @api private class ProgressFormatter < ClangStyleFormatter include TextUtil diff --git a/lib/rubocop/formatter/quiet_formatter.rb b/lib/rubocop/formatter/quiet_formatter.rb index 5b5d0d1b37e..201a585f7d9 100644 --- a/lib/rubocop/formatter/quiet_formatter.rb +++ b/lib/rubocop/formatter/quiet_formatter.rb @@ -4,8 +4,6 @@ module RuboCop module Formatter # If no offenses are found, no output is displayed. # Otherwise, SimpleTextFormatter's output is displayed. - # - # @api private class QuietFormatter < SimpleTextFormatter def report_summary(file_count, offense_count, correction_count, correctable_count) super unless offense_count.zero? diff --git a/lib/rubocop/formatter/simple_text_formatter.rb b/lib/rubocop/formatter/simple_text_formatter.rb index 0c2b3289afb..8528653f942 100644 --- a/lib/rubocop/formatter/simple_text_formatter.rb +++ b/lib/rubocop/formatter/simple_text_formatter.rb @@ -8,8 +8,6 @@ module Formatter # A basic formatter that displays only files with offenses. # Offenses are displayed at compact form - just the # location of the problem and the associated message. - # - # @api private class SimpleTextFormatter < BaseFormatter include Colorizable include PathUtil diff --git a/lib/rubocop/formatter/tap_formatter.rb b/lib/rubocop/formatter/tap_formatter.rb index 6dbf6e10a86..b1a982c7f77 100644 --- a/lib/rubocop/formatter/tap_formatter.rb +++ b/lib/rubocop/formatter/tap_formatter.rb @@ -4,8 +4,6 @@ module RuboCop module Formatter # This formatter formats report data using the Test Anything Protocol. # TAP allows for to communicate tests results in a language agnostics way. - # - # @api private class TapFormatter < ClangStyleFormatter def started(target_files) super diff --git a/lib/rubocop/formatter/worst_offenders_formatter.rb b/lib/rubocop/formatter/worst_offenders_formatter.rb index b30b20a09e3..d3a73921d8a 100644 --- a/lib/rubocop/formatter/worst_offenders_formatter.rb +++ b/lib/rubocop/formatter/worst_offenders_formatter.rb @@ -13,8 +13,6 @@ module Formatter # 3 just/ok.rb # -- # 29 Total - # - # @api private class WorstOffendersFormatter < BaseFormatter attr_reader :offense_counts