From 4bc56a6eec8b25d1536fdff3d347a75b360700ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sun, 21 Nov 2021 15:46:41 +0100 Subject: [PATCH] Add ``confidence`` to all expected functional test outputs --- .../functional/a/abstract/abstract_method.txt | 32 +++---- .../access_member_before_definition.txt | 4 +- .../alternative_union_syntax_error.txt | 48 +++++----- .../alternative_union_syntax_py37.txt | 18 ++-- .../a/anomalous_backslash_escape.txt | 12 +-- .../functional/a/anomalous_unicode_escape.txt | 6 +- tests/functional/a/arguments.txt | 78 +++++++-------- tests/functional/a/arguments_differ.txt | 22 ++--- tests/functional/a/arguments_out_of_order.txt | 8 +- tests/functional/a/arguments_renamed.txt | 18 ++-- .../functional/a/assert_on_string_literal.txt | 4 +- tests/functional/a/assert_on_tuple.txt | 4 +- .../a/assign/assigning_non_slot.txt | 10 +- .../a/assign/assigning_non_slot_4509.txt | 2 +- .../a/assign/assignment_expression.txt | 6 +- .../a/assign/assignment_from_no_return.txt | 4 +- .../a/assign/assignment_from_no_return_2.txt | 6 +- tests/functional/a/async_functions.txt | 22 ++--- .../a/attribute_defined_outside_init.txt | 4 +- tests/functional/a/await_outside_async.txt | 4 +- tests/functional/b/bad_except_order.txt | 10 +- tests/functional/b/bad_exception_context.txt | 6 +- tests/functional/b/bad_indentation.txt | 4 +- tests/functional/b/bad_inline_option.txt | 2 +- tests/functional/b/bad_open_mode.txt | 12 +-- tests/functional/b/bad_option_value.txt | 2 +- tests/functional/b/bad_reversed_sequence.txt | 12 +-- .../b/bad_staticmethod_argument.txt | 4 +- .../functional/b/bad_thread_instantiation.txt | 4 +- tests/functional/b/bare_except.txt | 2 +- tests/functional/b/blacklisted_name.txt | 2 +- tests/functional/b/broad_except.txt | 4 +- tests/functional/c/cached_property.txt | 2 +- tests/functional/c/class_scope.txt | 14 +-- .../functional/c/comparison_with_callable.txt | 8 +- .../c/condition_evals_to_constant.txt | 30 +++--- .../functional/c/confusing_with_statement.txt | 2 +- tests/functional/c/consider/consider_join.txt | 22 ++--- .../consider/consider_merging_isinstance.txt | 14 +-- .../c/consider/consider_swap_variables.txt | 4 +- .../consider_using_dict_comprehension.txt | 2 +- .../c/consider/consider_using_enumerate.txt | 10 +- .../c/consider/consider_using_generator.txt | 4 +- .../c/consider/consider_using_get.txt | 8 +- .../consider_using_min_max_builtin.txt | 22 ++--- .../consider_using_set_comprehension.txt | 2 +- .../c/consider/consider_using_sys_exit.txt | 6 +- tests/functional/c/ctor_arguments.txt | 48 +++++----- .../functional/d/dangerous_default_value.txt | 44 ++++----- .../d/deprecated/deprecated_decorators.txt | 2 +- .../d/deprecated/deprecated_methods_py36.txt | 4 +- .../d/deprecated/deprecated_module_py36.txt | 2 +- .../d/deprecated/deprecated_module_py4.txt | 4 +- .../deprecated_module_uninstalled.txt | 4 +- .../functional/d/dict_iter_missing_items.txt | 2 +- tests/functional/d/disable_msg_next_line.txt | 6 +- .../d/disable_ungrouped_imports.txt | 4 +- .../d/disable_wrong_import_order.txt | 2 +- tests/functional/d/docstrings.txt | 8 +- .../functional/d/duplicate_argument_name.txt | 16 ++-- .../d/duplicate_argument_name_py3.txt | 4 +- tests/functional/d/duplicate_bases.txt | 2 +- tests/functional/d/duplicate_except.txt | 2 +- .../duplicate_string_formatting_argument.txt | 4 +- tests/functional/e/eval_used.txt | 8 +- tests/functional/e/exception_is_binary_op.txt | 8 +- tests/functional/e/excess_escapes.txt | 18 ++-- tests/functional/e/exec_used.txt | 8 +- tests/functional/ext/bad_builtins.txt | 8 +- ...consider_using_namedtuple_or_dataclass.txt | 10 +- .../code_style_consider_using_tuple.txt | 16 ++-- tests/functional/ext/confusing_elif.txt | 2 +- .../ext/consider_ternary_expression.txt | 4 +- tests/functional/ext/docparams.txt | 24 ++--- tests/functional/ext/for_any_all.txt | 16 ++-- .../typing/typing_consider_using_alias.txt | 40 ++++---- ...ng_consider_using_alias_without_future.txt | 40 ++++---- .../typing/typing_consider_using_union.txt | 20 ++-- .../typing_consider_using_union_py310.txt | 36 +++---- ...ng_consider_using_union_without_future.txt | 20 ++-- .../ext/typing/typing_deprecated_alias.txt | 56 +++++------ tests/functional/ext/while_used.txt | 4 +- .../f/f_string_without_interpolation.txt | 2 +- .../functional/f/fallback_import_enabled.txt | 4 +- tests/functional/f/first_arg.txt | 18 ++-- tests/functional/f/fixme.txt | 18 ++-- .../f/fixme_bad_formatting_1139.txt | 2 +- .../f/forgotten_debug_statement_py37.txt | 8 +- tests/functional/f/func_disable_linebased.txt | 4 +- .../functional/f/future_unicode_literals.txt | 2 +- .../generic_alias_collections.txt | 32 +++---- .../generic_alias_mixed_py39.txt | 10 +- .../g/generic_alias/generic_alias_related.txt | 10 +- .../generic_alias_related_py39.txt | 10 +- .../generic_alias_side_effects.txt | 16 ++-- .../g/generic_alias/generic_alias_typing.txt | 38 ++++---- tests/functional/g/genexpr_variable_scope.txt | 2 +- .../i/implicit/implicit_str_concat.txt | 10 +- .../implicit_str_concat_multiline.txt | 2 +- tests/functional/i/import_aliasing.txt | 20 ++-- tests/functional/i/import_error.txt | 8 +- tests/functional/i/import_itself.txt | 2 +- .../functional/i/import_outside_toplevel.txt | 18 ++-- .../i/inconsistent/inconsistent_mro.txt | 2 +- .../i/inconsistent/inconsistent_quotes.txt | 2 +- .../i/inconsistent/inconsistent_quotes2.txt | 2 +- .../i/inconsistent/inconsistent_returns.txt | 34 +++---- .../inconsistent_returns_noreturn.txt | 2 +- tests/functional/i/inherit_non_class.txt | 18 ++-- tests/functional/i/init_is_generator.txt | 2 +- tests/functional/i/init_not_called.txt | 4 +- .../i/invalid/b/invalid_bool_returned.txt | 6 +- .../i/invalid/b/invalid_bytes_returned.txt | 6 +- .../i/invalid/e/invalid_envvar_value.txt | 62 ++++++------ .../i/invalid/e/invalid_exceptions_caught.txt | 24 ++--- .../i/invalid/e/invalid_exceptions_raised.txt | 22 ++--- .../g/invalid_getnewargs_ex_returned.txt | 12 +-- .../invalid/g/invalid_getnewargs_returned.txt | 6 +- .../i/invalid/invalid_all_object.txt | 6 +- .../i/invalid/invalid_class_object.txt | 4 +- .../i/invalid/invalid_format_returned.txt | 6 +- .../i/invalid/invalid_hash_returned.txt | 8 +- .../i/invalid/invalid_index_returned.txt | 8 +- .../i/invalid/invalid_overridden_method.txt | 12 +-- .../i/invalid/invalid_repr_returned.txt | 6 +- .../i/invalid/invalid_unary_operand_type.txt | 28 +++--- .../l/invalid_length_hint_returned.txt | 6 +- .../i/invalid/l/invalid_length_returned.txt | 8 +- .../i/invalid/s/invalid_sequence_index.txt | 38 ++++---- .../i/invalid/s/invalid_slice_index.txt | 10 +- .../s/invalid_star_assignment_target.txt | 2 +- .../i/invalid/s/invalid_str_returned.txt | 6 +- .../i/isinstance_second_argument.txt | 10 +- tests/functional/i/iterable_context.txt | 20 ++-- tests/functional/i/iterable_context_py3.txt | 2 +- tests/functional/i/iterable_context_py36.txt | 4 +- .../k/keyword_arg_before_vararg.txt | 8 +- tests/functional/l/line_endings.txt | 4 +- tests/functional/l/line_too_long.txt | 22 ++--- .../l/logging_format_interpolation.txt | 14 +-- .../l/logging_format_interpolation_py36.txt | 2 +- .../l/logging_fstring_interpolation_py36.txt | 10 +- tests/functional/l/logging_not_lazy.txt | 12 +-- .../l/logging_not_lazy_with_logger.txt | 8 +- tests/functional/l/logical_tautology.txt | 24 ++--- tests/functional/l/long_lines_with_utf8.txt | 2 +- tests/functional/l/loopvar_in_dict_comp.txt | 2 +- tests/functional/l/lost_exception.txt | 4 +- tests/functional/m/mapping_context.txt | 4 +- tests/functional/m/mapping_context_py3.txt | 2 +- .../m/member/membership_protocol.txt | 14 +-- .../m/member/membership_protocol_py3.txt | 6 +- tests/functional/m/method_hidden.txt | 4 +- .../m/misplaced_comparison_constant.txt | 12 +-- .../m/misplaced_format_function.txt | 8 +- tests/functional/m/misplaced_future.txt | 2 +- .../m/missing/missing_docstring.txt | 6 +- .../m/missing/missing_docstring_new_style.txt | 10 +- .../m/missing/missing_final_newline.txt | 2 +- tests/functional/m/missing/missing_kwoa.txt | 6 +- .../m/missing/missing_param_doc.txt | 36 +++---- .../missing_parentheses_for_call_in_test.txt | 30 +++--- .../m/missing/missing_self_argument.txt | 6 +- tests/functional/m/module___dict__.txt | 2 +- tests/functional/m/multiple_imports.txt | 2 +- .../functional/n/name/namePresetCamelCase.txt | 6 +- tests/functional/n/name/name_final.txt | 6 +- .../n/name/name_final_snake_case.txt | 10 +- .../n/name/name_good_bad_names_regex.txt | 6 +- .../n/name/name_preset_snake_case.txt | 10 +- tests/functional/n/name/name_styles.txt | 24 ++--- tests/functional/n/name/names_in__all__.txt | 12 +-- tests/functional/n/nan_comparison_check.txt | 24 ++--- .../functional/n/nested_blocks_issue1088.txt | 4 +- .../n/nested_func_defined_in_loop.txt | 2 +- tests/functional/n/new_style_class_py_30.txt | 8 +- .../n/no/no_classmethod_decorator.txt | 6 +- tests/functional/n/no/no_dummy_redefined.txt | 4 +- tests/functional/n/no/no_else_break.txt | 14 +-- tests/functional/n/no/no_else_continue.txt | 14 +-- tests/functional/n/no/no_else_raise.txt | 14 +-- tests/functional/n/no/no_else_return.txt | 14 +-- tests/functional/n/no/no_name_in_module.txt | 22 ++--- tests/functional/n/no/no_self_argument.txt | 4 +- .../functional/n/no/no_self_argument_py37.txt | 2 +- tests/functional/n/no/no_self_use.txt | 4 +- .../n/no/no_staticmethod_decorator.txt | 6 +- tests/functional/n/non/non_ascii_name.txt | 4 +- .../n/non/non_init_parent_called.txt | 6 +- .../n/non/non_iterator_returned.txt | 8 +- .../non/non_str_assignment_to_dunder_name.txt | 16 ++-- tests/functional/n/none_dunder_protocols.txt | 12 +-- tests/functional/n/nonexistent_operator.txt | 12 +-- tests/functional/n/nonlocal_and_global.txt | 2 +- .../functional/n/nonlocal_without_binding.txt | 6 +- .../n/not_async_context_manager.txt | 10 +- tests/functional/n/not_context_manager.txt | 10 +- tests/functional/n/not_in_loop.txt | 16 ++-- .../p/postponed_evaluation_not_activated.txt | 4 +- .../p/postponed_evaluation_pep585_py39.txt | 2 +- tests/functional/p/preferred_module.txt | 4 +- .../functional/p/property_with_parameters.txt | 2 +- ...otected_access_access_different_scopes.txt | 4 +- tests/functional/p/protocol_classes.txt | 4 +- .../functional/r/raise/raise_missing_from.txt | 14 +-- .../r/raise/raising_format_tuple.txt | 14 +-- .../r/raise/raising_non_exception.txt | 2 +- .../functional/r/redeclared_assigned_name.txt | 8 +- tests/functional/r/redefine_loop.txt | 2 +- .../r/redefined_argument_from_local.txt | 14 +-- tests/functional/r/redefined_builtin.txt | 4 +- .../r/redefined_builtin_allowed.txt | 4 +- .../r/redundant_unittest_assert.txt | 12 +-- .../regression_3416_unused_argument_raise.txt | 6 +- .../regression/regression___file___global.txt | 4 +- ...egression_implicit_none_with_no_return.txt | 4 +- .../regression_infer_call_result_3690.txt | 2 +- ...regression_properties_in_class_context.txt | 4 +- tests/functional/r/reimport.txt | 8 +- tests/functional/r/reimported.txt | 18 ++-- .../r/renamed_import_logging_not_lazy.txt | 4 +- tests/functional/r/repeated_keyword.txt | 2 +- tests/functional/r/return_in_init.txt | 2 +- .../functional/r/return_outside_function.txt | 2 +- .../r/reused_outer_loop_variable.txt | 8 +- .../r/reused_outer_loop_variable_py3.txt | 2 +- .../s/self/self_assigning_variable.txt | 4 +- tests/functional/s/signature_differs.txt | 2 +- .../s/simplifiable/simplifiable_condition.txt | 24 ++--- .../simplifiable_if_expression.txt | 8 +- .../simplifiable_if_statement.txt | 8 +- .../simplify_chained_comparison.txt | 36 +++---- .../functional/s/singledispatch_functions.txt | 10 +- tests/functional/s/singleton_comparison.txt | 24 ++--- tests/functional/s/slots_checks.txt | 22 ++--- .../s/star/star_needs_assignment_target.txt | 2 +- .../functional/s/statement_without_effect.txt | 24 ++--- .../s/statement_without_effect_py36.txt | 2 +- .../s/stop_iteration_inside_generator.txt | 14 +-- .../functional/s/string/string_formatting.txt | 94 +++++++++---------- .../s/string/string_formatting_disable.txt | 2 +- .../s/string/string_formatting_error.txt | 30 +++--- .../s/string/string_formatting_py3.txt | 4 +- .../s/string/string_log_formatting.txt | 12 +-- .../s/subprocess_popen_preexec_fn.txt | 2 +- tests/functional/s/subprocess_run_check.txt | 2 +- tests/functional/s/super/super_checks.txt | 26 ++--- .../s/super/super_with_arguments.txt | 2 +- .../s/suspicious_str_strip_call.txt | 6 +- tests/functional/s/syntax_error.txt | 2 +- tests/functional/t/ternary.txt | 16 ++-- tests/functional/t/tokenize_error.txt | 2 +- .../t/too/too_few_public_methods.txt | 2 +- tests/functional/t/too/too_many_ancestors.txt | 4 +- .../too_many_ancestors_ignored_parents.txt | 2 +- tests/functional/t/too/too_many_arguments.txt | 2 +- .../t/too/too_many_boolean_expressions.txt | 8 +- tests/functional/t/too/too_many_branches.txt | 2 +- tests/functional/t/too/too_many_lines.txt | 2 +- tests/functional/t/too/too_many_locals.txt | 6 +- .../t/too/too_many_nested_blocks.txt | 4 +- .../t/too/too_many_public_methods.txt | 2 +- .../t/too/too_many_return_statements.txt | 2 +- .../t/too/too_many_star_expressions.txt | 4 +- tests/functional/t/trailing_comma_tuple.txt | 18 ++-- tests/functional/t/trailing_newlines.txt | 2 +- tests/functional/t/trailing_whitespaces.txt | 6 +- tests/functional/t/try_except_raise.txt | 12 +-- tests/functional/t/try_except_raise_crash.txt | 4 +- tests/functional/t/typing_use.txt | 2 +- .../u/unbalanced_tuple_unpacking.txt | 10 +- .../u/undefined/undefined_loop_variable.txt | 6 +- .../u/unexpected_special_method_signature.txt | 32 +++---- tests/functional/u/ungrouped_imports.txt | 10 +- tests/functional/u/unhashable_dict_key.txt | 8 +- tests/functional/u/unidiomatic_typecheck.txt | 28 +++--- .../unnecessary/unnecessary_comprehension.txt | 26 ++--- .../u/unnecessary/unnecessary_lambda.txt | 14 +-- .../u/unnecessary/unnecessary_not.txt | 28 +++--- .../u/unnecessary/unnecessary_pass.txt | 6 +- .../u/unpacking_generalizations.txt | 12 +-- tests/functional/u/unpacking_non_sequence.txt | 20 ++-- tests/functional/u/unreachable.txt | 10 +- .../u/unrecognized_inline_option.txt | 2 +- tests/functional/u/unsubscriptable_value.txt | 30 +++--- .../u/unsubscriptable_value_py37.txt | 2 +- .../unsupported_assignment_operation.txt | 34 +++---- .../unsupported_delete_operation.txt | 34 +++---- tests/functional/u/unused/unused_argument.txt | 6 +- .../u/unused/unused_argument_py3.txt | 6 +- .../u/unused/unused_global_variable2.txt | 2 +- .../u/unused/unused_global_variable4.txt | 4 +- tests/functional/u/unused/unused_import.txt | 20 ++-- .../u/unused/unused_import_py30.txt | 2 +- tests/functional/u/unused/unused_variable.txt | 48 +++++----- tests/functional/u/use/use_a_generator.txt | 4 +- tests/functional/u/use/use_literal_dict.txt | 2 +- tests/functional/u/use/use_literal_list.txt | 2 +- tests/functional/u/use/use_maxsplit_arg.txt | 42 ++++----- .../use/used_before_assignment_issue1081.txt | 14 +-- .../u/use/used_before_assignment_issue626.txt | 10 +- .../u/use/used_before_assignment_nonlocal.txt | 12 +-- .../u/use/used_prior_global_declaration.txt | 2 +- .../functional/u/use/using_constant_test.txt | 52 +++++----- .../u/useless/useless_else_on_loop.txt | 12 +-- .../u/useless/useless_object_inheritance.txt | 8 +- tests/functional/u/useless/useless_return.txt | 4 +- .../u/useless/useless_super_delegation.txt | 38 ++++---- .../useless/useless_super_delegation_py3.txt | 4 +- .../useless/useless_super_delegation_py35.txt | 2 +- .../useless/useless_super_delegation_py38.txt | 2 +- tests/functional/w/wildcard_import.txt | 4 +- .../functional/w/wildcard_import_allowed.txt | 4 +- .../functional/w/with_used_before_assign.txt | 4 +- tests/functional/w/with_using_generator.txt | 2 +- .../w/wrong_exception_operation.txt | 6 +- tests/functional/w/wrong_import_order.txt | 12 +-- tests/functional/w/wrong_import_position.txt | 8 +- .../functional/w/wrong_import_position11.txt | 2 +- .../functional/w/wrong_import_position12.txt | 2 +- .../functional/w/wrong_import_position13.txt | 2 +- .../functional/w/wrong_import_position14.txt | 2 +- tests/functional/y/yield_from_iterable.txt | 2 +- .../functional/y/yield_from_outside_func.txt | 2 +- tests/functional/y/yield_outside_func.txt | 2 +- 325 files changed, 1758 insertions(+), 1758 deletions(-) diff --git a/tests/functional/a/abstract/abstract_method.txt b/tests/functional/a/abstract/abstract_method.txt index 783242fd51..1bf4fdb152 100644 --- a/tests/functional/a/abstract/abstract_method.txt +++ b/tests/functional/a/abstract/abstract_method.txt @@ -1,16 +1,16 @@ -abstract-method:47:0:Concrete:Method 'bbbb' is abstract in class 'Abstract' but is not overridden -abstract-method:70:0:Container:Method '__hash__' is abstract in class 'Structure' but is not overridden -abstract-method:70:0:Container:Method '__iter__' is abstract in class 'Structure' but is not overridden -abstract-method:70:0:Container:Method '__len__' is abstract in class 'Structure' but is not overridden -abstract-method:76:0:Sizable:Method '__contains__' is abstract in class 'Structure' but is not overridden -abstract-method:76:0:Sizable:Method '__hash__' is abstract in class 'Structure' but is not overridden -abstract-method:76:0:Sizable:Method '__iter__' is abstract in class 'Structure' but is not overridden -abstract-method:82:0:Hashable:Method '__contains__' is abstract in class 'Structure' but is not overridden -abstract-method:82:0:Hashable:Method '__iter__' is abstract in class 'Structure' but is not overridden -abstract-method:82:0:Hashable:Method '__len__' is abstract in class 'Structure' but is not overridden -abstract-method:87:0:Iterator:Method '__contains__' is abstract in class 'Structure' but is not overridden -abstract-method:87:0:Iterator:Method '__hash__' is abstract in class 'Structure' but is not overridden -abstract-method:87:0:Iterator:Method '__len__' is abstract in class 'Structure' but is not overridden -abstract-method:106:0:BadComplexMro:Method '__hash__' is abstract in class 'Structure' but is not overridden -abstract-method:106:0:BadComplexMro:Method '__len__' is abstract in class 'AbstractSizable' but is not overridden -abstract-method:106:0:BadComplexMro:Method 'length' is abstract in class 'AbstractSizable' but is not overridden +abstract-method:47:0:Concrete:Method 'bbbb' is abstract in class 'Abstract' but is not overridden:HIGH +abstract-method:70:0:Container:Method '__hash__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:70:0:Container:Method '__iter__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:70:0:Container:Method '__len__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:76:0:Sizable:Method '__contains__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:76:0:Sizable:Method '__hash__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:76:0:Sizable:Method '__iter__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:82:0:Hashable:Method '__contains__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:82:0:Hashable:Method '__iter__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:82:0:Hashable:Method '__len__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:87:0:Iterator:Method '__contains__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:87:0:Iterator:Method '__hash__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:87:0:Iterator:Method '__len__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:106:0:BadComplexMro:Method '__hash__' is abstract in class 'Structure' but is not overridden:HIGH +abstract-method:106:0:BadComplexMro:Method '__len__' is abstract in class 'AbstractSizable' but is not overridden:HIGH +abstract-method:106:0:BadComplexMro:Method 'length' is abstract in class 'AbstractSizable' but is not overridden:HIGH diff --git a/tests/functional/a/access/access_member_before_definition.txt b/tests/functional/a/access/access_member_before_definition.txt index 76ba5de503..9d07e11b18 100644 --- a/tests/functional/a/access/access_member_before_definition.txt +++ b/tests/functional/a/access/access_member_before_definition.txt @@ -1,2 +1,2 @@ -access-member-before-definition:8:15:Aaaa.__init__:Access to member '_var2' before its definition line 9 -access-member-before-definition:28:19:Bbbb.catchme:Access to member '_repo' before its definition line 30 +access-member-before-definition:8:15:Aaaa.__init__:Access to member '_var2' before its definition line 9:HIGH +access-member-before-definition:28:19:Bbbb.catchme:Access to member '_repo' before its definition line 30:HIGH diff --git a/tests/functional/a/alternative/alternative_union_syntax_error.txt b/tests/functional/a/alternative/alternative_union_syntax_error.txt index d6c1bca789..a9b3ab5b94 100644 --- a/tests/functional/a/alternative/alternative_union_syntax_error.txt +++ b/tests/functional/a/alternative/alternative_union_syntax_error.txt @@ -1,24 +1,24 @@ -unsupported-binary-operation:14:8::unsupported operand type(s) for | -unsupported-binary-operation:15:7::unsupported operand type(s) for | -unsupported-binary-operation:17:23::unsupported operand type(s) for | -unsupported-binary-operation:18:6::unsupported operand type(s) for | -unsupported-binary-operation:19:6::unsupported operand type(s) for | -unsupported-binary-operation:20:18::unsupported operand type(s) for | -unsupported-binary-operation:23:23::unsupported operand type(s) for | -unsupported-binary-operation:25:24::unsupported operand type(s) for | -unsupported-binary-operation:27:14::unsupported operand type(s) for | -unsupported-binary-operation:29:5::unsupported operand type(s) for | -unsupported-binary-operation:31:14:func:unsupported operand type(s) for | -unsupported-binary-operation:34:15:func2:unsupported operand type(s) for | -unsupported-binary-operation:40:9::unsupported operand type(s) for | -unsupported-binary-operation:47:36::unsupported operand type(s) for | -unsupported-binary-operation:50:12:CustomNamedTuple2:unsupported operand type(s) for | -unsupported-binary-operation:53:12:CustomNamedTuple3:unsupported operand type(s) for | -unsupported-binary-operation:57:54::unsupported operand type(s) for | -unsupported-binary-operation:59:60::unsupported operand type(s) for | -unsupported-binary-operation:62:12:CustomTypedDict3:unsupported operand type(s) for | -unsupported-binary-operation:65:12:CustomTypedDict4:unsupported operand type(s) for | -unsupported-binary-operation:76:12:CustomDataClass:unsupported operand type(s) for | -unsupported-binary-operation:80:12:CustomDataClass2:unsupported operand type(s) for | -unsupported-binary-operation:84:12:CustomDataClass3:unsupported operand type(s) for | -unsupported-binary-operation:89:12:CustomDataClass4:unsupported operand type(s) for | +unsupported-binary-operation:14:8::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:15:7::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:17:23::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:18:6::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:19:6::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:20:18::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:23:23::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:25:24::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:27:14::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:29:5::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:31:14:func:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:34:15:func2:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:40:9::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:47:36::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:50:12:CustomNamedTuple2:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:53:12:CustomNamedTuple3:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:57:54::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:59:60::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:62:12:CustomTypedDict3:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:65:12:CustomTypedDict4:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:76:12:CustomDataClass:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:80:12:CustomDataClass2:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:84:12:CustomDataClass3:unsupported operand type(s) for |:HIGH +unsupported-binary-operation:89:12:CustomDataClass4:unsupported operand type(s) for |:HIGH diff --git a/tests/functional/a/alternative/alternative_union_syntax_py37.txt b/tests/functional/a/alternative/alternative_union_syntax_py37.txt index e97793af6a..47e669c9fc 100644 --- a/tests/functional/a/alternative/alternative_union_syntax_py37.txt +++ b/tests/functional/a/alternative/alternative_union_syntax_py37.txt @@ -1,9 +1,9 @@ -unsupported-binary-operation:15:8::unsupported operand type(s) for | -unsupported-binary-operation:16:7::unsupported operand type(s) for | -unsupported-binary-operation:24:23::unsupported operand type(s) for | -unsupported-binary-operation:26:24::unsupported operand type(s) for | -unsupported-binary-operation:28:14::unsupported operand type(s) for | -unsupported-binary-operation:41:9::unsupported operand type(s) for | -unsupported-binary-operation:48:36::unsupported operand type(s) for | -unsupported-binary-operation:58:54::unsupported operand type(s) for | -unsupported-binary-operation:60:60::unsupported operand type(s) for | +unsupported-binary-operation:15:8::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:16:7::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:24:23::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:26:24::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:28:14::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:41:9::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:48:36::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:58:54::unsupported operand type(s) for |:HIGH +unsupported-binary-operation:60:60::unsupported operand type(s) for |:HIGH diff --git a/tests/functional/a/anomalous_backslash_escape.txt b/tests/functional/a/anomalous_backslash_escape.txt index 68cb8556c9..a7542dac1c 100644 --- a/tests/functional/a/anomalous_backslash_escape.txt +++ b/tests/functional/a/anomalous_backslash_escape.txt @@ -1,6 +1,6 @@ -anomalous-backslash-in-string:4:14::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." -anomalous-backslash-in-string:5:27::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." -anomalous-backslash-in-string:6:30::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." -anomalous-backslash-in-string:8:4::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." -anomalous-backslash-in-string:12:4::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." -anomalous-backslash-in-string:15:23::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix." +anomalous-backslash-in-string:4:14::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:5:27::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:6:30::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:8:4::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:12:4::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:15:23::"Anomalous backslash in string: '\z'. String constant might be missing an r prefix.":HIGH diff --git a/tests/functional/a/anomalous_unicode_escape.txt b/tests/functional/a/anomalous_unicode_escape.txt index 3682db8562..4bbdee909c 100644 --- a/tests/functional/a/anomalous_unicode_escape.txt +++ b/tests/functional/a/anomalous_unicode_escape.txt @@ -1,3 +1,3 @@ -anomalous-unicode-escape-in-string:5:16::"Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix." -anomalous-unicode-escape-in-string:6:21::"Anomalous Unicode escape in byte string: '\U'. String constant might be missing an r or u prefix." -anomalous-unicode-escape-in-string:8:22::"Anomalous Unicode escape in byte string: '\N'. String constant might be missing an r or u prefix." +anomalous-unicode-escape-in-string:5:16::"Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix.":HIGH +anomalous-unicode-escape-in-string:6:21::"Anomalous Unicode escape in byte string: '\U'. String constant might be missing an r or u prefix.":HIGH +anomalous-unicode-escape-in-string:8:22::"Anomalous Unicode escape in byte string: '\N'. String constant might be missing an r or u prefix.":HIGH diff --git a/tests/functional/a/arguments.txt b/tests/functional/a/arguments.txt index d17bd4a50a..3601585dba 100644 --- a/tests/functional/a/arguments.txt +++ b/tests/functional/a/arguments.txt @@ -1,39 +1,39 @@ -no-value-for-parameter:46:0::No value for argument 'first_argument' in function call -too-many-function-args:47:0::Too many positional arguments for function call -no-value-for-parameter:49:0::No value for argument 'third_argument' in function call -no-value-for-parameter:51:0::No value for argument 'first_argument' in function call -no-value-for-parameter:51:0::No value for argument 'second_argument' in function call -no-value-for-parameter:51:0::No value for argument 'third_argument' in function call -too-many-function-args:53:0::Too many positional arguments for function call -no-value-for-parameter:58:0::No value for argument 'first_argument' in function call -unexpected-keyword-arg:58:0::Unexpected keyword argument 'bob' in function call -unexpected-keyword-arg:59:0::Unexpected keyword argument 'coin' in function call -redundant-keyword-arg:61:0::Argument 'one' passed by position and keyword in function call -no-value-for-parameter:66:0::No value for argument 'arg' in lambda call -no-value-for-parameter:71:4:method_tests:No value for argument 'arg' in staticmethod call -no-value-for-parameter:72:4:method_tests:No value for argument 'arg' in staticmethod call -no-value-for-parameter:74:4:method_tests:No value for argument 'arg' in classmethod call -no-value-for-parameter:75:4:method_tests:No value for argument 'arg' in classmethod call -no-value-for-parameter:77:4:method_tests:No value for argument 'arg' in method call -no-value-for-parameter:78:4:method_tests:No value for argument 'arg' in unbound method call -no-value-for-parameter:80:4:method_tests:No value for argument 'arg' in method call -no-value-for-parameter:81:4:method_tests:No value for argument 'arg' in unbound method call -no-value-for-parameter:110:8:TestStaticMethod.func:No value for argument 'first' in staticmethod call -too-many-function-args:111:8:TestStaticMethod.func:Too many positional arguments for staticmethod call -too-many-function-args:119:8:TypeCheckConstructor.test:Too many positional arguments for constructor call -no-value-for-parameter:121:8:TypeCheckConstructor.test:No value for argument 'first' in constructor call -no-value-for-parameter:121:8:TypeCheckConstructor.test:No value for argument 'second' in constructor call -no-value-for-parameter:122:8:TypeCheckConstructor.test:No value for argument 'second' in constructor call -unexpected-keyword-arg:122:8:TypeCheckConstructor.test:Unexpected keyword argument 'lala' in constructor call -no-value-for-parameter:133:8:Test.test:No value for argument 'icon' in method call -too-many-function-args:134:8:Test.test:Too many positional arguments for method call -no-value-for-parameter:136:0::No value for argument 'icon' in method call -no-value-for-parameter:163:4:no_context_but_redefined:No value for argument 'three' in function call -no-value-for-parameter:163:4:no_context_but_redefined:No value for argument 'two' in function call -no-value-for-parameter:166:4:no_context_one_elem:No value for argument 'three' in function call -no-value-for-parameter:166:4:no_context_one_elem:No value for argument 'two' in function call -unexpected-keyword-arg:202:23:namedtuple_replace_issue_1036:Unexpected keyword argument 'd' in method call -unexpected-keyword-arg:202:23:namedtuple_replace_issue_1036:Unexpected keyword argument 'e' in method call -no-value-for-parameter:215:0::No value for argument 'third' in function call -no-value-for-parameter:216:0::No value for argument 'second' in function call -unexpected-keyword-arg:217:0::Unexpected keyword argument 'fourth' in function call +no-value-for-parameter:46:0::No value for argument 'first_argument' in function call:HIGH +too-many-function-args:47:0::Too many positional arguments for function call:HIGH +no-value-for-parameter:49:0::No value for argument 'third_argument' in function call:HIGH +no-value-for-parameter:51:0::No value for argument 'first_argument' in function call:HIGH +no-value-for-parameter:51:0::No value for argument 'second_argument' in function call:HIGH +no-value-for-parameter:51:0::No value for argument 'third_argument' in function call:HIGH +too-many-function-args:53:0::Too many positional arguments for function call:HIGH +no-value-for-parameter:58:0::No value for argument 'first_argument' in function call:HIGH +unexpected-keyword-arg:58:0::Unexpected keyword argument 'bob' in function call:HIGH +unexpected-keyword-arg:59:0::Unexpected keyword argument 'coin' in function call:HIGH +redundant-keyword-arg:61:0::Argument 'one' passed by position and keyword in function call:HIGH +no-value-for-parameter:66:0::No value for argument 'arg' in lambda call:HIGH +no-value-for-parameter:71:4:method_tests:No value for argument 'arg' in staticmethod call:HIGH +no-value-for-parameter:72:4:method_tests:No value for argument 'arg' in staticmethod call:HIGH +no-value-for-parameter:74:4:method_tests:No value for argument 'arg' in classmethod call:HIGH +no-value-for-parameter:75:4:method_tests:No value for argument 'arg' in classmethod call:HIGH +no-value-for-parameter:77:4:method_tests:No value for argument 'arg' in method call:HIGH +no-value-for-parameter:78:4:method_tests:No value for argument 'arg' in unbound method call:HIGH +no-value-for-parameter:80:4:method_tests:No value for argument 'arg' in method call:HIGH +no-value-for-parameter:81:4:method_tests:No value for argument 'arg' in unbound method call:HIGH +no-value-for-parameter:110:8:TestStaticMethod.func:No value for argument 'first' in staticmethod call:HIGH +too-many-function-args:111:8:TestStaticMethod.func:Too many positional arguments for staticmethod call:HIGH +too-many-function-args:119:8:TypeCheckConstructor.test:Too many positional arguments for constructor call:HIGH +no-value-for-parameter:121:8:TypeCheckConstructor.test:No value for argument 'first' in constructor call:HIGH +no-value-for-parameter:121:8:TypeCheckConstructor.test:No value for argument 'second' in constructor call:HIGH +no-value-for-parameter:122:8:TypeCheckConstructor.test:No value for argument 'second' in constructor call:HIGH +unexpected-keyword-arg:122:8:TypeCheckConstructor.test:Unexpected keyword argument 'lala' in constructor call:HIGH +no-value-for-parameter:133:8:Test.test:No value for argument 'icon' in method call:HIGH +too-many-function-args:134:8:Test.test:Too many positional arguments for method call:HIGH +no-value-for-parameter:136:0::No value for argument 'icon' in method call:HIGH +no-value-for-parameter:163:4:no_context_but_redefined:No value for argument 'three' in function call:HIGH +no-value-for-parameter:163:4:no_context_but_redefined:No value for argument 'two' in function call:HIGH +no-value-for-parameter:166:4:no_context_one_elem:No value for argument 'three' in function call:HIGH +no-value-for-parameter:166:4:no_context_one_elem:No value for argument 'two' in function call:HIGH +unexpected-keyword-arg:202:23:namedtuple_replace_issue_1036:Unexpected keyword argument 'd' in method call:HIGH +unexpected-keyword-arg:202:23:namedtuple_replace_issue_1036:Unexpected keyword argument 'e' in method call:HIGH +no-value-for-parameter:215:0::No value for argument 'third' in function call:HIGH +no-value-for-parameter:216:0::No value for argument 'second' in function call:HIGH +unexpected-keyword-arg:217:0::Unexpected keyword argument 'fourth' in function call:HIGH diff --git a/tests/functional/a/arguments_differ.txt b/tests/functional/a/arguments_differ.txt index 12b7305038..51f4dba8ca 100644 --- a/tests/functional/a/arguments_differ.txt +++ b/tests/functional/a/arguments_differ.txt @@ -1,11 +1,11 @@ -arguments-differ:12:4:Child.test:Number of parameters was 1 in 'Parent.test' and is now 2 in overridden 'Child.test' method -arguments-differ:23:4:ChildDefaults.test:Number of parameters was 3 in 'ParentDefaults.test' and is now 2 in overridden 'ChildDefaults.test' method -arguments-differ:41:4:ClassmethodChild.func:Number of parameters was 2 in 'Classmethod.func' and is now 0 in overridden 'ClassmethodChild.func' method -arguments-differ:68:4:VarargsChild.has_kwargs:Variadics removed in overridden 'VarargsChild.has_kwargs' method -arguments-renamed:71:4:VarargsChild.no_kwargs:Parameter 'args' has been renamed to 'arg' in overridden 'VarargsChild.no_kwargs' method -arguments-differ:172:4:SecondChangesArgs.test:Number of parameters was 2 in 'FirstHasArgs.test' and is now 4 in overridden 'SecondChangesArgs.test' method -arguments-differ:298:4:Foo.kwonly_1:Number of parameters was 4 in 'AbstractFoo.kwonly_1' and is now 3 in overridden 'Foo.kwonly_1' method -arguments-differ:301:4:Foo.kwonly_2:Number of parameters was 3 in 'AbstractFoo.kwonly_2' and is now 2 in overridden 'Foo.kwonly_2' method -arguments-differ:304:4:Foo.kwonly_3:Number of parameters was 3 in 'AbstractFoo.kwonly_3' and is now 3 in overridden 'Foo.kwonly_3' method -arguments-differ:307:4:Foo.kwonly_4:Number of parameters was 3 in 'AbstractFoo.kwonly_4' and is now 3 in overridden 'Foo.kwonly_4' method -arguments-differ:310:4:Foo.kwonly_5:Variadics removed in overridden 'Foo.kwonly_5' method +arguments-differ:12:4:Child.test:Number of parameters was 1 in 'Parent.test' and is now 2 in overridden 'Child.test' method:HIGH +arguments-differ:23:4:ChildDefaults.test:Number of parameters was 3 in 'ParentDefaults.test' and is now 2 in overridden 'ChildDefaults.test' method:HIGH +arguments-differ:41:4:ClassmethodChild.func:Number of parameters was 2 in 'Classmethod.func' and is now 0 in overridden 'ClassmethodChild.func' method:HIGH +arguments-differ:68:4:VarargsChild.has_kwargs:Variadics removed in overridden 'VarargsChild.has_kwargs' method:HIGH +arguments-renamed:71:4:VarargsChild.no_kwargs:Parameter 'args' has been renamed to 'arg' in overridden 'VarargsChild.no_kwargs' method:HIGH +arguments-differ:172:4:SecondChangesArgs.test:Number of parameters was 2 in 'FirstHasArgs.test' and is now 4 in overridden 'SecondChangesArgs.test' method:HIGH +arguments-differ:298:4:Foo.kwonly_1:Number of parameters was 4 in 'AbstractFoo.kwonly_1' and is now 3 in overridden 'Foo.kwonly_1' method:HIGH +arguments-differ:301:4:Foo.kwonly_2:Number of parameters was 3 in 'AbstractFoo.kwonly_2' and is now 2 in overridden 'Foo.kwonly_2' method:HIGH +arguments-differ:304:4:Foo.kwonly_3:Number of parameters was 3 in 'AbstractFoo.kwonly_3' and is now 3 in overridden 'Foo.kwonly_3' method:HIGH +arguments-differ:307:4:Foo.kwonly_4:Number of parameters was 3 in 'AbstractFoo.kwonly_4' and is now 3 in overridden 'Foo.kwonly_4' method:HIGH +arguments-differ:310:4:Foo.kwonly_5:Variadics removed in overridden 'Foo.kwonly_5' method:HIGH diff --git a/tests/functional/a/arguments_out_of_order.txt b/tests/functional/a/arguments_out_of_order.txt index b912fc999d..9ba0644a59 100644 --- a/tests/functional/a/arguments_out_of_order.txt +++ b/tests/functional/a/arguments_out_of_order.txt @@ -1,4 +1,4 @@ -arguments-out-of-order:22:4:args_out_of_order:Positional arguments appear to be out of order -arguments-out-of-order:23:4:args_out_of_order:Positional arguments appear to be out of order -arguments-out-of-order:25:4:args_out_of_order:Positional arguments appear to be out of order -arguments-out-of-order:51:4:args_out_of_order:Positional arguments appear to be out of order +arguments-out-of-order:22:4:args_out_of_order:Positional arguments appear to be out of order:HIGH +arguments-out-of-order:23:4:args_out_of_order:Positional arguments appear to be out of order:HIGH +arguments-out-of-order:25:4:args_out_of_order:Positional arguments appear to be out of order:HIGH +arguments-out-of-order:51:4:args_out_of_order:Positional arguments appear to be out of order:HIGH diff --git a/tests/functional/a/arguments_renamed.txt b/tests/functional/a/arguments_renamed.txt index 0f3b60c1fe..17dbd3a3db 100644 --- a/tests/functional/a/arguments_renamed.txt +++ b/tests/functional/a/arguments_renamed.txt @@ -1,9 +1,9 @@ -arguments-renamed:17:4:Orange.brew:Parameter 'fruit_name' has been renamed to 'orange_name' in overridden 'Orange.brew' method -arguments-renamed:20:4:Orange.eat_with_condiment:Parameter 'fruit_name' has been renamed to 'orange_name' in overridden 'Orange.eat_with_condiment' method -arguments-differ:27:4:Banana.eat_with_condiment:Number of parameters was 3 in 'Fruit.eat_with_condiment' and is now 4 in overridden 'Banana.eat_with_condiment' method -arguments-renamed:40:4:Child.test:Parameter 'arg' has been renamed to 'arg1' in overridden 'Child.test' method -arguments-renamed:43:4:Child.kwargs_test:Parameter 'var1' has been renamed to 'value1' in overridden 'Child.kwargs_test' method -arguments-renamed:48:4:Child2.test:Parameter 'arg' has been renamed to 'var' in overridden 'Child2.test' method -arguments-differ:51:4:Child2.kwargs_test:Number of parameters was 4 in 'Parent.kwargs_test' and is now 3 in overridden 'Child2.kwargs_test' method -arguments-renamed:51:4:Child2.kwargs_test:Parameter 'var2' has been renamed to 'kw2' in overridden 'Child2.kwargs_test' method -arguments-renamed:67:4:ChildDefaults.test1:Parameter 'barg' has been renamed to 'param2' in overridden 'ChildDefaults.test1' method +arguments-renamed:17:4:Orange.brew:Parameter 'fruit_name' has been renamed to 'orange_name' in overridden 'Orange.brew' method:HIGH +arguments-renamed:20:4:Orange.eat_with_condiment:Parameter 'fruit_name' has been renamed to 'orange_name' in overridden 'Orange.eat_with_condiment' method:HIGH +arguments-differ:27:4:Banana.eat_with_condiment:Number of parameters was 3 in 'Fruit.eat_with_condiment' and is now 4 in overridden 'Banana.eat_with_condiment' method:HIGH +arguments-renamed:40:4:Child.test:Parameter 'arg' has been renamed to 'arg1' in overridden 'Child.test' method:HIGH +arguments-renamed:43:4:Child.kwargs_test:Parameter 'var1' has been renamed to 'value1' in overridden 'Child.kwargs_test' method:HIGH +arguments-renamed:48:4:Child2.test:Parameter 'arg' has been renamed to 'var' in overridden 'Child2.test' method:HIGH +arguments-differ:51:4:Child2.kwargs_test:Number of parameters was 4 in 'Parent.kwargs_test' and is now 3 in overridden 'Child2.kwargs_test' method:HIGH +arguments-renamed:51:4:Child2.kwargs_test:Parameter 'var2' has been renamed to 'kw2' in overridden 'Child2.kwargs_test' method:HIGH +arguments-renamed:67:4:ChildDefaults.test1:Parameter 'barg' has been renamed to 'param2' in overridden 'ChildDefaults.test1' method:HIGH diff --git a/tests/functional/a/assert_on_string_literal.txt b/tests/functional/a/assert_on_string_literal.txt index 5f08165d3a..1304945877 100644 --- a/tests/functional/a/assert_on_string_literal.txt +++ b/tests/functional/a/assert_on_string_literal.txt @@ -1,2 +1,2 @@ -assert-on-string-literal:3:0::Assert statement has a string literal as its first argument. The assert will never fail. -assert-on-string-literal:4:0::Assert statement has a string literal as its first argument. The assert will always fail. +assert-on-string-literal:3:0::Assert statement has a string literal as its first argument. The assert will never fail.:HIGH +assert-on-string-literal:4:0::Assert statement has a string literal as its first argument. The assert will always fail.:HIGH diff --git a/tests/functional/a/assert_on_tuple.txt b/tests/functional/a/assert_on_tuple.txt index c53faf935e..6851dfb80f 100644 --- a/tests/functional/a/assert_on_tuple.txt +++ b/tests/functional/a/assert_on_tuple.txt @@ -1,2 +1,2 @@ -assert-on-tuple:5:0::Assert called on a 2-item-tuple. Did you mean 'assert x,y'? -assert-on-tuple:11:0::Assert called on a 2-item-tuple. Did you mean 'assert x,y'? +assert-on-tuple:5:0::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?:HIGH +assert-on-tuple:11:0::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?:HIGH diff --git a/tests/functional/a/assign/assigning_non_slot.txt b/tests/functional/a/assign/assigning_non_slot.txt index 28bf5d4cf0..c3a1d0e8d3 100644 --- a/tests/functional/a/assign/assigning_non_slot.txt +++ b/tests/functional/a/assign/assigning_non_slot.txt @@ -1,5 +1,5 @@ -assigning-non-slot:18:8:Bad.__init__:Assigning to attribute 'missing' not defined in class slots -assigning-non-slot:26:8:Bad2.__init__:Assigning to attribute 'missing' not defined in class slots -assigning-non-slot:36:8:Bad3.__init__:Assigning to attribute 'missing' not defined in class slots -assigning-non-slot:132:4:dont_emit_for_descriptors:Assigning to attribute 'non_data_descriptor' not defined in class slots -assigning-non-slot:150:8:ClassReassingingInvalidLayoutClass.release:Assigning to attribute '__class__' not defined in class slots +assigning-non-slot:18:8:Bad.__init__:Assigning to attribute 'missing' not defined in class slots:HIGH +assigning-non-slot:26:8:Bad2.__init__:Assigning to attribute 'missing' not defined in class slots:HIGH +assigning-non-slot:36:8:Bad3.__init__:Assigning to attribute 'missing' not defined in class slots:HIGH +assigning-non-slot:132:4:dont_emit_for_descriptors:Assigning to attribute 'non_data_descriptor' not defined in class slots:HIGH +assigning-non-slot:150:8:ClassReassingingInvalidLayoutClass.release:Assigning to attribute '__class__' not defined in class slots:HIGH diff --git a/tests/functional/a/assign/assigning_non_slot_4509.txt b/tests/functional/a/assign/assigning_non_slot_4509.txt index a347f8c957..e5223dc2c1 100644 --- a/tests/functional/a/assign/assigning_non_slot_4509.txt +++ b/tests/functional/a/assign/assigning_non_slot_4509.txt @@ -1 +1 @@ -assigning-non-slot:18:8:Foo.__init__:Assigning to attribute '_bar' not defined in class slots +assigning-non-slot:18:8:Foo.__init__:Assigning to attribute '_bar' not defined in class slots:HIGH diff --git a/tests/functional/a/assign/assignment_expression.txt b/tests/functional/a/assign/assignment_expression.txt index c4b8da483c..bef0958696 100644 --- a/tests/functional/a/assign/assignment_expression.txt +++ b/tests/functional/a/assign/assignment_expression.txt @@ -1,3 +1,3 @@ -used-before-assignment:21:7::Using variable 'err_a' before assignment -used-before-assignment:22:6::Using variable 'err_b' before assignment -used-before-assignment:24:13::Using variable 'err_d' before assignment +used-before-assignment:21:7::Using variable 'err_a' before assignment:HIGH +used-before-assignment:22:6::Using variable 'err_b' before assignment:HIGH +used-before-assignment:24:13::Using variable 'err_d' before assignment:HIGH diff --git a/tests/functional/a/assign/assignment_from_no_return.txt b/tests/functional/a/assign/assignment_from_no_return.txt index 88bcd9a20c..14b2a653ed 100644 --- a/tests/functional/a/assign/assignment_from_no_return.txt +++ b/tests/functional/a/assign/assignment_from_no_return.txt @@ -1,2 +1,2 @@ -assignment-from-no-return:26:8:Class.some_other_method:Assigning result of a function call, where the function has no return -assignment-from-no-return:31:0::Assigning result of a function call, where the function has no return +assignment-from-no-return:26:8:Class.some_other_method:Assigning result of a function call, where the function has no return:HIGH +assignment-from-no-return:31:0::Assigning result of a function call, where the function has no return:HIGH diff --git a/tests/functional/a/assign/assignment_from_no_return_2.txt b/tests/functional/a/assign/assignment_from_no_return_2.txt index 4518109ac4..d3785b3e9b 100644 --- a/tests/functional/a/assign/assignment_from_no_return_2.txt +++ b/tests/functional/a/assign/assignment_from_no_return_2.txt @@ -1,3 +1,3 @@ -assignment-from-no-return:18:0::Assigning result of a function call, where the function has no return -assignment-from-none:26:0::Assigning result of a function call, where the function returns None -assignment-from-none:33:0::Assigning result of a function call, where the function returns None +assignment-from-no-return:18:0::Assigning result of a function call, where the function has no return:HIGH +assignment-from-none:26:0::Assigning result of a function call, where the function returns None:HIGH +assignment-from-none:33:0::Assigning result of a function call, where the function returns None:HIGH diff --git a/tests/functional/a/async_functions.txt b/tests/functional/a/async_functions.txt index cb53248685..534b185dee 100644 --- a/tests/functional/a/async_functions.txt +++ b/tests/functional/a/async_functions.txt @@ -1,11 +1,11 @@ -redefined-builtin:5:0:next:Redefining built-in 'next' -unused-argument:8:30:some_function:Unused argument 'arg2' -bad-super-call:22:8:Class.some_method:Bad first argument 'OtherClass' given to super() -too-many-arguments:26:0:complex_function:Too many arguments (10/5) -too-many-branches:26:0:complex_function:Too many branches (13/12) -too-many-return-statements:26:0:complex_function:Too many return statements (10/6) -dangerous-default-value:57:0:func:Dangerous default value [] as argument -duplicate-argument-name:57:15:func:Duplicate argument name a in function definition -duplicate-argument-name:57:18:func:Duplicate argument name a in function definition -disallowed-name:62:0:foo:Disallowed name "foo" -empty-docstring:62:0:foo:Empty function docstring +redefined-builtin:5:0:next:Redefining built-in 'next':HIGH +unused-argument:8:30:some_function:Unused argument 'arg2':HIGH +bad-super-call:22:8:Class.some_method:Bad first argument 'OtherClass' given to super():HIGH +too-many-arguments:26:0:complex_function:Too many arguments (10/5):HIGH +too-many-branches:26:0:complex_function:Too many branches (13/12):HIGH +too-many-return-statements:26:0:complex_function:Too many return statements (10/6):HIGH +dangerous-default-value:57:0:func:Dangerous default value [] as argument:HIGH +duplicate-argument-name:57:15:func:Duplicate argument name a in function definition:HIGH +duplicate-argument-name:57:18:func:Duplicate argument name a in function definition:HIGH +disallowed-name:62:0:foo:"Disallowed name ""foo""":HIGH +empty-docstring:62:0:foo:Empty function docstring:HIGH diff --git a/tests/functional/a/attribute_defined_outside_init.txt b/tests/functional/a/attribute_defined_outside_init.txt index cc7a9fd351..556030ca02 100644 --- a/tests/functional/a/attribute_defined_outside_init.txt +++ b/tests/functional/a/attribute_defined_outside_init.txt @@ -1,2 +1,2 @@ -attribute-defined-outside-init:16:8:A.set_z:Attribute 'z' defined outside __init__ -attribute-defined-outside-init:26:8:B.test:Attribute 'z' defined outside __init__ +attribute-defined-outside-init:16:8:A.set_z:Attribute 'z' defined outside __init__:HIGH +attribute-defined-outside-init:26:8:B.test:Attribute 'z' defined outside __init__:HIGH diff --git a/tests/functional/a/await_outside_async.txt b/tests/functional/a/await_outside_async.txt index e38a51cd37..d90798c557 100644 --- a/tests/functional/a/await_outside_async.txt +++ b/tests/functional/a/await_outside_async.txt @@ -1,2 +1,2 @@ -await-outside-async:12:10:not_async:'await' should be used within an async function -await-outside-async:25:8:func2.inner_func:'await' should be used within an async function +await-outside-async:12:10:not_async:'await' should be used within an async function:HIGH +await-outside-async:25:8:func2.inner_func:'await' should be used within an async function:HIGH diff --git a/tests/functional/b/bad_except_order.txt b/tests/functional/b/bad_except_order.txt index 1181676a2b..f5d6424aed 100644 --- a/tests/functional/b/bad_except_order.txt +++ b/tests/functional/b/bad_except_order.txt @@ -1,5 +1,5 @@ -bad-except-order:9:7::Bad except clauses order (Exception is an ancestor class of TypeError) -bad-except-order:16:7::Bad except clauses order (LookupError is an ancestor class of IndexError) -bad-except-order:23:7::Bad except clauses order (LookupError is an ancestor class of IndexError) -bad-except-order:23:7::Bad except clauses order (NameError is an ancestor class of UnboundLocalError) -bad-except-order:26:0::Bad except clauses order (empty except clause should always appear last) +bad-except-order:9:7::Bad except clauses order (Exception is an ancestor class of TypeError):HIGH +bad-except-order:16:7::Bad except clauses order (LookupError is an ancestor class of IndexError):HIGH +bad-except-order:23:7::Bad except clauses order (LookupError is an ancestor class of IndexError):HIGH +bad-except-order:23:7::Bad except clauses order (NameError is an ancestor class of UnboundLocalError):HIGH +bad-except-order:26:0::Bad except clauses order (empty except clause should always appear last):HIGH diff --git a/tests/functional/b/bad_exception_context.txt b/tests/functional/b/bad_exception_context.txt index 11f9e404ed..083c61a1bc 100644 --- a/tests/functional/b/bad_exception_context.txt +++ b/tests/functional/b/bad_exception_context.txt @@ -1,3 +1,3 @@ -bad-exception-context:14:4:test:Exception context set to something which is not an exception, nor None -bad-exception-context:17:4:test:Exception context set to something which is not an exception, nor None -bad-exception-context:23:4:test:Exception context set to something which is not an exception, nor None +bad-exception-context:14:4:test:Exception context set to something which is not an exception, nor None:HIGH +bad-exception-context:17:4:test:Exception context set to something which is not an exception, nor None:HIGH +bad-exception-context:23:4:test:Exception context set to something which is not an exception, nor None:HIGH diff --git a/tests/functional/b/bad_indentation.txt b/tests/functional/b/bad_indentation.txt index 3963624fd2..39be0b9206 100644 --- a/tests/functional/b/bad_indentation.txt +++ b/tests/functional/b/bad_indentation.txt @@ -1,2 +1,2 @@ -bad-indentation:6:0::Bad indentation. Found 1 spaces, expected 4 -bad-indentation:12:0::Bad indentation. Found 5 spaces, expected 4 +bad-indentation:6:0::Bad indentation. Found 1 spaces, expected 4:HIGH +bad-indentation:12:0::Bad indentation. Found 5 spaces, expected 4:HIGH diff --git a/tests/functional/b/bad_inline_option.txt b/tests/functional/b/bad_inline_option.txt index 6a97bff615..b591feadc3 100644 --- a/tests/functional/b/bad_inline_option.txt +++ b/tests/functional/b/bad_inline_option.txt @@ -1 +1 @@ -bad-inline-option:3:0::Unable to consider inline option 'disable' +bad-inline-option:3:0::Unable to consider inline option 'disable':HIGH diff --git a/tests/functional/b/bad_open_mode.txt b/tests/functional/b/bad_open_mode.txt index 1ea232598b..ca92098040 100644 --- a/tests/functional/b/bad_open_mode.txt +++ b/tests/functional/b/bad_open_mode.txt @@ -1,6 +1,6 @@ -bad-open-mode:12:0::"""rwx"" is not a valid mode for open." -bad-open-mode:13:0::"""rr"" is not a valid mode for open." -bad-open-mode:14:0::"""+"" is not a valid mode for open." -bad-open-mode:15:0::"""xw"" is not a valid mode for open." -bad-open-mode:21:0::"""Ua"" is not a valid mode for open." -bad-open-mode:22:0::"""Ur++"" is not a valid mode for open." +bad-open-mode:12:0::"""rwx"" is not a valid mode for open.":HIGH +bad-open-mode:13:0::"""rr"" is not a valid mode for open.":HIGH +bad-open-mode:14:0::"""+"" is not a valid mode for open.":HIGH +bad-open-mode:15:0::"""xw"" is not a valid mode for open.":HIGH +bad-open-mode:21:0::"""Ua"" is not a valid mode for open.":HIGH +bad-open-mode:22:0::"""Ur++"" is not a valid mode for open.":HIGH diff --git a/tests/functional/b/bad_option_value.txt b/tests/functional/b/bad_option_value.txt index 48eb852645..6a201439fe 100644 --- a/tests/functional/b/bad_option_value.txt +++ b/tests/functional/b/bad_option_value.txt @@ -1 +1 @@ -bad-option-value:1:0::Bad option value 'W04044' +bad-option-value:1:0::Bad option value 'W04044':HIGH diff --git a/tests/functional/b/bad_reversed_sequence.txt b/tests/functional/b/bad_reversed_sequence.txt index f0597356cc..afd5ef7958 100644 --- a/tests/functional/b/bad_reversed_sequence.txt +++ b/tests/functional/b/bad_reversed_sequence.txt @@ -1,6 +1,6 @@ -bad-reversed-sequence:40:10:test:The first reversed() argument is not a sequence -bad-reversed-sequence:43:10:test:The first reversed() argument is not a sequence -bad-reversed-sequence:44:10:test:The first reversed() argument is not a sequence -bad-reversed-sequence:47:10:test:The first reversed() argument is not a sequence -bad-reversed-sequence:48:10:test:The first reversed() argument is not a sequence -bad-reversed-sequence:50:10:test:The first reversed() argument is not a sequence +bad-reversed-sequence:40:10:test:The first reversed() argument is not a sequence:HIGH +bad-reversed-sequence:43:10:test:The first reversed() argument is not a sequence:HIGH +bad-reversed-sequence:44:10:test:The first reversed() argument is not a sequence:HIGH +bad-reversed-sequence:47:10:test:The first reversed() argument is not a sequence:HIGH +bad-reversed-sequence:48:10:test:The first reversed() argument is not a sequence:HIGH +bad-reversed-sequence:50:10:test:The first reversed() argument is not a sequence:HIGH diff --git a/tests/functional/b/bad_staticmethod_argument.txt b/tests/functional/b/bad_staticmethod_argument.txt index c2e0c5b0ec..65ab4cd5f0 100644 --- a/tests/functional/b/bad_staticmethod_argument.txt +++ b/tests/functional/b/bad_staticmethod_argument.txt @@ -1,2 +1,2 @@ -bad-staticmethod-argument:5:4:Abcd.method1:Static method with 'self' as first argument -bad-staticmethod-argument:10:4:Abcd.method2:Static method with 'cls' as first argument +bad-staticmethod-argument:5:4:Abcd.method1:Static method with 'self' as first argument:HIGH +bad-staticmethod-argument:10:4:Abcd.method2:Static method with 'cls' as first argument:HIGH diff --git a/tests/functional/b/bad_thread_instantiation.txt b/tests/functional/b/bad_thread_instantiation.txt index 59f606aeeb..ec4104f0e5 100644 --- a/tests/functional/b/bad_thread_instantiation.txt +++ b/tests/functional/b/bad_thread_instantiation.txt @@ -1,2 +1,2 @@ -bad-thread-instantiation:5:0::threading.Thread needs the target function -bad-thread-instantiation:8:0::threading.Thread needs the target function +bad-thread-instantiation:5:0::threading.Thread needs the target function:HIGH +bad-thread-instantiation:8:0::threading.Thread needs the target function:HIGH diff --git a/tests/functional/b/bare_except.txt b/tests/functional/b/bare_except.txt index 514ffe1d6a..4c805aeeba 100644 --- a/tests/functional/b/bare_except.txt +++ b/tests/functional/b/bare_except.txt @@ -1 +1 @@ -bare-except:5:0::No exception type(s) specified +bare-except:5:0::No exception type(s) specified:HIGH diff --git a/tests/functional/b/blacklisted_name.txt b/tests/functional/b/blacklisted_name.txt index 747d71a959..6e131a3793 100644 --- a/tests/functional/b/blacklisted_name.txt +++ b/tests/functional/b/blacklisted_name.txt @@ -1 +1 @@ -disallowed-name:3:0:baz:Disallowed name "baz" +disallowed-name:3:0:baz:"Disallowed name ""baz""":HIGH diff --git a/tests/functional/b/broad_except.txt b/tests/functional/b/broad_except.txt index 388457b403..dc1248c831 100644 --- a/tests/functional/b/broad_except.txt +++ b/tests/functional/b/broad_except.txt @@ -1,2 +1,2 @@ -broad-except:7:7::Catching too general exception Exception -broad-except:13:7::Catching too general exception BaseException +broad-except:7:7::Catching too general exception Exception:HIGH +broad-except:13:7::Catching too general exception BaseException:HIGH diff --git a/tests/functional/c/cached_property.txt b/tests/functional/c/cached_property.txt index 6c3a6d1073..213cf192a9 100644 --- a/tests/functional/c/cached_property.txt +++ b/tests/functional/c/cached_property.txt @@ -1 +1 @@ -invalid-overridden-method:22:4:Child.func:Method 'func' was expected to be 'method', found it instead as 'property' +invalid-overridden-method:22:4:Child.func:Method 'func' was expected to be 'method', found it instead as 'property':HIGH diff --git a/tests/functional/c/class_scope.txt b/tests/functional/c/class_scope.txt index a45d232631..8eb07e37e8 100644 --- a/tests/functional/c/class_scope.txt +++ b/tests/functional/c/class_scope.txt @@ -1,7 +1,7 @@ -undefined-variable:11:39:Well.:Undefined variable 'revattr' -used-before-assignment:11:30:Well.:Using variable 'revattr' before assignment -undefined-variable:13:25:Well.:Undefined variable 'get_attr_bad' -undefined-variable:14:19:Well:Undefined variable 'attr' -undefined-variable:20:15:Well.Sub:Undefined variable 'Data' -undefined-variable:23:15:Well.func:Undefined variable 'Sub' -undefined-variable:41:22:Wrong.work:Undefined variable 'self' +undefined-variable:11:39:Well.:Undefined variable 'revattr':HIGH +used-before-assignment:11:30:Well.:Using variable 'revattr' before assignment:HIGH +undefined-variable:13:25:Well.:Undefined variable 'get_attr_bad':HIGH +undefined-variable:14:19:Well:Undefined variable 'attr':HIGH +undefined-variable:20:15:Well.Sub:Undefined variable 'Data':HIGH +undefined-variable:23:15:Well.func:Undefined variable 'Sub':HIGH +undefined-variable:41:22:Wrong.work:Undefined variable 'self':HIGH diff --git a/tests/functional/c/comparison_with_callable.txt b/tests/functional/c/comparison_with_callable.txt index a87f0b57e1..957587da89 100644 --- a/tests/functional/c/comparison_with_callable.txt +++ b/tests/functional/c/comparison_with_callable.txt @@ -1,4 +1,4 @@ -comparison-with-callable:8:3::Comparing against a callable, did you omit the parenthesis? -comparison-with-callable:11:3::Comparing against a callable, did you omit the parenthesis? -comparison-with-callable:48:3::Comparing against a callable, did you omit the parenthesis? -comparison-with-callable:51:3::Comparing against a callable, did you omit the parenthesis? +comparison-with-callable:8:3::Comparing against a callable, did you omit the parenthesis?:HIGH +comparison-with-callable:11:3::Comparing against a callable, did you omit the parenthesis?:HIGH +comparison-with-callable:48:3::Comparing against a callable, did you omit the parenthesis?:HIGH +comparison-with-callable:51:3::Comparing against a callable, did you omit the parenthesis?:HIGH diff --git a/tests/functional/c/condition_evals_to_constant.txt b/tests/functional/c/condition_evals_to_constant.txt index 04d8deb8cc..fe43f706a9 100644 --- a/tests/functional/c/condition_evals_to_constant.txt +++ b/tests/functional/c/condition_evals_to_constant.txt @@ -1,15 +1,15 @@ -condition-evals-to-constant:14:5::Boolean condition 'CONSTANT or True' will always evaluate to 'True' -condition-evals-to-constant:15:7::Boolean condition 'CONSTANT or True' will always evaluate to 'True' -condition-evals-to-constant:16:3::Boolean condition 'CONSTANT and False' will always evaluate to 'False' -condition-evals-to-constant:18:5::Boolean condition 'CONSTANT and False' will always evaluate to 'False' -condition-evals-to-constant:20:6::Boolean condition 'CONSTANT and False' will always evaluate to 'False' -condition-evals-to-constant:22:5::Boolean condition 'CONSTANT or True' will always evaluate to 'True' -condition-evals-to-constant:23:29::Boolean condition 'x or True' will always evaluate to 'True' -condition-evals-to-constant:26:7::Boolean condition 'True or CONSTANT or OTHER' will always evaluate to 'True' -condition-evals-to-constant:27:7::Boolean condition 'CONSTANT or True or CONSTANT or True' will always evaluate to 'True' -condition-evals-to-constant:30:7::Boolean condition '3 + 4 or CONSTANT' will always evaluate to '3 + 4' -condition-evals-to-constant:31:7::Boolean condition 'Unknown or True' will always evaluate to 'True' -condition-evals-to-constant:33:7::Boolean condition 'True or True' will always evaluate to 'True' -condition-evals-to-constant:34:7::Boolean condition 'False or False' will always evaluate to 'False' -condition-evals-to-constant:35:7::Boolean condition 'True and True' will always evaluate to 'True' -condition-evals-to-constant:36:7::Boolean condition 'False and False' will always evaluate to 'False' +condition-evals-to-constant:14:5::Boolean condition 'CONSTANT or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:15:7::Boolean condition 'CONSTANT or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:16:3::Boolean condition 'CONSTANT and False' will always evaluate to 'False':HIGH +condition-evals-to-constant:18:5::Boolean condition 'CONSTANT and False' will always evaluate to 'False':HIGH +condition-evals-to-constant:20:6::Boolean condition 'CONSTANT and False' will always evaluate to 'False':HIGH +condition-evals-to-constant:22:5::Boolean condition 'CONSTANT or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:23:29::Boolean condition 'x or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:26:7::Boolean condition 'True or CONSTANT or OTHER' will always evaluate to 'True':HIGH +condition-evals-to-constant:27:7::Boolean condition 'CONSTANT or True or CONSTANT or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:30:7::Boolean condition '3 + 4 or CONSTANT' will always evaluate to '3 + 4':HIGH +condition-evals-to-constant:31:7::Boolean condition 'Unknown or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:33:7::Boolean condition 'True or True' will always evaluate to 'True':HIGH +condition-evals-to-constant:34:7::Boolean condition 'False or False' will always evaluate to 'False':HIGH +condition-evals-to-constant:35:7::Boolean condition 'True and True' will always evaluate to 'True':HIGH +condition-evals-to-constant:36:7::Boolean condition 'False and False' will always evaluate to 'False':HIGH diff --git a/tests/functional/c/confusing_with_statement.txt b/tests/functional/c/confusing_with_statement.txt index 5ac2e7a50a..bb42e69ede 100644 --- a/tests/functional/c/confusing_with_statement.txt +++ b/tests/functional/c/confusing_with_statement.txt @@ -1 +1 @@ -confusing-with-statement:26:0::"Following ""as"" with another context manager looks like a tuple." +confusing-with-statement:26:0::"Following ""as"" with another context manager looks like a tuple.":HIGH diff --git a/tests/functional/c/consider/consider_join.txt b/tests/functional/c/consider/consider_join.txt index f544e55b87..4b34397250 100644 --- a/tests/functional/c/consider/consider_join.txt +++ b/tests/functional/c/consider/consider_join.txt @@ -1,11 +1,11 @@ -consider-using-join:6:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:10:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:14:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:18:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:58:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:62:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:66:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:71:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:75:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:79:4::Consider using str.join(sequence) for concatenating strings from an iterable -consider-using-join:110:31::Consider using str.join(sequence) for concatenating strings from an iterable +consider-using-join:6:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:10:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:14:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:18:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:58:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:62:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:66:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:71:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:75:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:79:4::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH +consider-using-join:110:31::Consider using str.join(sequence) for concatenating strings from an iterable:HIGH diff --git a/tests/functional/c/consider/consider_merging_isinstance.txt b/tests/functional/c/consider/consider_merging_isinstance.txt index 9728f1e15d..4883cdf66b 100644 --- a/tests/functional/c/consider/consider_merging_isinstance.txt +++ b/tests/functional/c/consider/consider_merging_isinstance.txt @@ -1,7 +1,7 @@ -consider-merging-isinstance:15:7:isinstances:Consider merging these isinstance calls to isinstance(var[3], (float, int)) -consider-merging-isinstance:17:13:isinstances:Consider merging these isinstance calls to isinstance(var[4], (float, int)) -consider-merging-isinstance:19:13:isinstances:Consider merging these isinstance calls to isinstance(var[5], (float, int)) -consider-merging-isinstance:22:13:isinstances:Consider merging these isinstance calls to isinstance(var[6], (float, int)) -consider-merging-isinstance:23:13:isinstances:Consider merging these isinstance calls to isinstance(var[10], (list, str)) -consider-merging-isinstance:24:13:isinstances:Consider merging these isinstance calls to isinstance(var[11], (float, int)) -consider-merging-isinstance:30:13:isinstances:Consider merging these isinstance calls to isinstance(var[12], (float, int, list)) +consider-merging-isinstance:15:7:isinstances:Consider merging these isinstance calls to isinstance(var[3], (float, int)):HIGH +consider-merging-isinstance:17:13:isinstances:Consider merging these isinstance calls to isinstance(var[4], (float, int)):HIGH +consider-merging-isinstance:19:13:isinstances:Consider merging these isinstance calls to isinstance(var[5], (float, int)):HIGH +consider-merging-isinstance:22:13:isinstances:Consider merging these isinstance calls to isinstance(var[6], (float, int)):HIGH +consider-merging-isinstance:23:13:isinstances:Consider merging these isinstance calls to isinstance(var[10], (list, str)):HIGH +consider-merging-isinstance:24:13:isinstances:Consider merging these isinstance calls to isinstance(var[11], (float, int)):HIGH +consider-merging-isinstance:30:13:isinstances:Consider merging these isinstance calls to isinstance(var[12], (float, int, list)):HIGH diff --git a/tests/functional/c/consider/consider_swap_variables.txt b/tests/functional/c/consider/consider_swap_variables.txt index 3e099d6718..345ac4a888 100644 --- a/tests/functional/c/consider/consider_swap_variables.txt +++ b/tests/functional/c/consider/consider_swap_variables.txt @@ -1,2 +1,2 @@ -consider-swap-variables:5:0::Consider using tuple unpacking for swapping variables -consider-swap-variables:22:0::Consider using tuple unpacking for swapping variables +consider-swap-variables:5:0::Consider using tuple unpacking for swapping variables:HIGH +consider-swap-variables:22:0::Consider using tuple unpacking for swapping variables:HIGH diff --git a/tests/functional/c/consider/consider_using_dict_comprehension.txt b/tests/functional/c/consider/consider_using_dict_comprehension.txt index ea2bb31aea..623d3edc2b 100644 --- a/tests/functional/c/consider/consider_using_dict_comprehension.txt +++ b/tests/functional/c/consider/consider_using_dict_comprehension.txt @@ -1 +1 @@ -consider-using-dict-comprehension:9:0::Consider using a dictionary comprehension +consider-using-dict-comprehension:9:0::Consider using a dictionary comprehension:HIGH diff --git a/tests/functional/c/consider/consider_using_enumerate.txt b/tests/functional/c/consider/consider_using_enumerate.txt index 4a4738838a..585532bd9d 100644 --- a/tests/functional/c/consider/consider_using_enumerate.txt +++ b/tests/functional/c/consider/consider_using_enumerate.txt @@ -1,5 +1,5 @@ -consider-using-enumerate:7:4:bad:Consider using enumerate instead of iterating with range and len -consider-using-enumerate:9:4:bad:Consider using enumerate instead of iterating with range and len -consider-using-enumerate:17:8:Bad.__iter__:Consider using enumerate instead of iterating with range and len -consider-using-enumerate:21:8:Bad.test:Consider using enumerate instead of iterating with range and len -consider-using-enumerate:83:4:my_function:Consider using enumerate instead of iterating with range and len +consider-using-enumerate:7:4:bad:Consider using enumerate instead of iterating with range and len:HIGH +consider-using-enumerate:9:4:bad:Consider using enumerate instead of iterating with range and len:HIGH +consider-using-enumerate:17:8:Bad.__iter__:Consider using enumerate instead of iterating with range and len:HIGH +consider-using-enumerate:21:8:Bad.test:Consider using enumerate instead of iterating with range and len:HIGH +consider-using-enumerate:83:4:my_function:Consider using enumerate instead of iterating with range and len:HIGH diff --git a/tests/functional/c/consider/consider_using_generator.txt b/tests/functional/c/consider/consider_using_generator.txt index 3d3c5a4947..1742bbd1d3 100644 --- a/tests/functional/c/consider/consider_using_generator.txt +++ b/tests/functional/c/consider/consider_using_generator.txt @@ -1,2 +1,2 @@ -consider-using-generator:7:0::Consider using a generator instead 'list(0 for y in list(range(10)))' -consider-using-generator:8:0::Consider using a generator instead 'tuple(0 for y in list(range(10)))' +consider-using-generator:7:0::Consider using a generator instead 'list(0 for y in list(range(10)))':HIGH +consider-using-generator:8:0::Consider using a generator instead 'tuple(0 for y in list(range(10)))':HIGH diff --git a/tests/functional/c/consider/consider_using_get.txt b/tests/functional/c/consider/consider_using_get.txt index d57b4a2693..56efdb359b 100644 --- a/tests/functional/c/consider/consider_using_get.txt +++ b/tests/functional/c/consider/consider_using_get.txt @@ -1,4 +1,4 @@ -consider-using-get:5:0::Consider using dict.get for getting values from a dict if a key is present or a default if not -consider-using-get:8:0::Consider using dict.get for getting values from a dict if a key is present or a default if not -consider-using-get:13:0::Consider using dict.get for getting values from a dict if a key is present or a default if not -consider-using-get:67:0::Consider using dict.get for getting values from a dict if a key is present or a default if not +consider-using-get:5:0::Consider using dict.get for getting values from a dict if a key is present or a default if not:HIGH +consider-using-get:8:0::Consider using dict.get for getting values from a dict if a key is present or a default if not:HIGH +consider-using-get:13:0::Consider using dict.get for getting values from a dict if a key is present or a default if not:HIGH +consider-using-get:67:0::Consider using dict.get for getting values from a dict if a key is present or a default if not:HIGH diff --git a/tests/functional/c/consider/consider_using_min_max_builtin.txt b/tests/functional/c/consider/consider_using_min_max_builtin.txt index 9ed5e0559d..1fef84f408 100644 --- a/tests/functional/c/consider/consider_using_min_max_builtin.txt +++ b/tests/functional/c/consider/consider_using_min_max_builtin.txt @@ -1,11 +1,11 @@ -consider-using-max-builtin:8:0::"Consider using 'value = max(value, 10)' instead of unnecessary if block" -consider-using-min-builtin:11:0::"Consider using 'value = min(value, 10)' instead of unnecessary if block" -consider-using-max-builtin:14:0::"Consider using 'value = max(value, 10)' instead of unnecessary if block" -consider-using-min-builtin:17:0::"Consider using 'value = min(value, 10)' instead of unnecessary if block" -consider-using-max-builtin:20:0::"Consider using 'value = max(value, value2)' instead of unnecessary if block" -consider-using-min-builtin:23:0::"Consider using 'value = min(value, value2)' instead of unnecessary if block" -consider-using-min-builtin:33:0::"Consider using 'value = min(value, 10)' instead of unnecessary if block" -consider-using-min-builtin:57:0::"Consider using 'A1 = min(A1, A2)' instead of unnecessary if block" -consider-using-max-builtin:60:0::"Consider using 'A2 = max(A2, A1)' instead of unnecessary if block" -consider-using-min-builtin:63:0::"Consider using 'A1 = min(A1, A2)' instead of unnecessary if block" -consider-using-max-builtin:66:0::"Consider using 'A2 = max(A2, A1)' instead of unnecessary if block" +consider-using-max-builtin:8:0::Consider using 'value = max(value, 10)' instead of unnecessary if block:HIGH +consider-using-min-builtin:11:0::Consider using 'value = min(value, 10)' instead of unnecessary if block:HIGH +consider-using-max-builtin:14:0::Consider using 'value = max(value, 10)' instead of unnecessary if block:HIGH +consider-using-min-builtin:17:0::Consider using 'value = min(value, 10)' instead of unnecessary if block:HIGH +consider-using-max-builtin:20:0::Consider using 'value = max(value, value2)' instead of unnecessary if block:HIGH +consider-using-min-builtin:23:0::Consider using 'value = min(value, value2)' instead of unnecessary if block:HIGH +consider-using-min-builtin:33:0::Consider using 'value = min(value, 10)' instead of unnecessary if block:HIGH +consider-using-min-builtin:57:0::Consider using 'A1 = min(A1, A2)' instead of unnecessary if block:HIGH +consider-using-max-builtin:60:0::Consider using 'A2 = max(A2, A1)' instead of unnecessary if block:HIGH +consider-using-min-builtin:63:0::Consider using 'A1 = min(A1, A2)' instead of unnecessary if block:HIGH +consider-using-max-builtin:66:0::Consider using 'A2 = max(A2, A1)' instead of unnecessary if block:HIGH diff --git a/tests/functional/c/consider/consider_using_set_comprehension.txt b/tests/functional/c/consider/consider_using_set_comprehension.txt index 4839a7a62c..124a1f7886 100644 --- a/tests/functional/c/consider/consider_using_set_comprehension.txt +++ b/tests/functional/c/consider/consider_using_set_comprehension.txt @@ -1 +1 @@ -consider-using-set-comprehension:9:0::Consider using a set comprehension +consider-using-set-comprehension:9:0::Consider using a set comprehension:HIGH diff --git a/tests/functional/c/consider/consider_using_sys_exit.txt b/tests/functional/c/consider/consider_using_sys_exit.txt index c429c652e6..92901e0f84 100644 --- a/tests/functional/c/consider/consider_using_sys_exit.txt +++ b/tests/functional/c/consider/consider_using_sys_exit.txt @@ -1,3 +1,3 @@ -consider-using-sys-exit:5:4:foo:Consider using sys.exit() -consider-using-sys-exit:8:4:foo_1:Consider using sys.exit() -consider-using-sys-exit:14:0::Consider using sys.exit() +consider-using-sys-exit:5:4:foo:Consider using sys.exit():HIGH +consider-using-sys-exit:8:4:foo_1:Consider using sys.exit():HIGH +consider-using-sys-exit:14:0::Consider using sys.exit():HIGH diff --git a/tests/functional/c/ctor_arguments.txt b/tests/functional/c/ctor_arguments.txt index 781715c0a5..1a7c97a70a 100644 --- a/tests/functional/c/ctor_arguments.txt +++ b/tests/functional/c/ctor_arguments.txt @@ -1,24 +1,24 @@ -no-value-for-parameter:35:0::No value for argument 'first_argument' in constructor call -too-many-function-args:36:0::Too many positional arguments for constructor call -no-value-for-parameter:38:0::No value for argument 'third_argument' in constructor call -no-value-for-parameter:40:0::No value for argument 'first_argument' in constructor call -no-value-for-parameter:40:0::No value for argument 'second_argument' in constructor call -no-value-for-parameter:40:0::No value for argument 'third_argument' in constructor call -too-many-function-args:42:0::Too many positional arguments for constructor call -no-value-for-parameter:47:0::No value for argument 'first_argument' in constructor call -unexpected-keyword-arg:47:0::Unexpected keyword argument 'bob' in constructor call -unexpected-keyword-arg:48:0::Unexpected keyword argument 'coin' in constructor call -redundant-keyword-arg:50:0::Argument 'one' passed by position and keyword in constructor call -no-value-for-parameter:53:0::No value for argument 'first_argument' in constructor call -too-many-function-args:54:0::Too many positional arguments for constructor call -too-many-function-args:60:0::Too many positional arguments for constructor call -too-many-function-args:63:0::Too many positional arguments for constructor call -no-value-for-parameter:64:0::No value for argument 'first_argument' in constructor call -unexpected-keyword-arg:64:0::Unexpected keyword argument 'one' in constructor call -too-many-function-args:85:0::Too many positional arguments for constructor call -unexpected-keyword-arg:85:0::Unexpected keyword argument 'badarg' in constructor call -too-many-function-args:95:15:Clsmethod.from_nothing:Too many positional arguments for constructor call -no-value-for-parameter:99:15:Clsmethod.from_nothing1:No value for argument 'first' in constructor call -no-value-for-parameter:99:15:Clsmethod.from_nothing1:No value for argument 'second' in constructor call -no-value-for-parameter:104:15:Clsmethod.from_nothing2:No value for argument 'second' in constructor call -unexpected-keyword-arg:104:15:Clsmethod.from_nothing2:Unexpected keyword argument 'not_argument' in constructor call +no-value-for-parameter:35:0::No value for argument 'first_argument' in constructor call:HIGH +too-many-function-args:36:0::Too many positional arguments for constructor call:HIGH +no-value-for-parameter:38:0::No value for argument 'third_argument' in constructor call:HIGH +no-value-for-parameter:40:0::No value for argument 'first_argument' in constructor call:HIGH +no-value-for-parameter:40:0::No value for argument 'second_argument' in constructor call:HIGH +no-value-for-parameter:40:0::No value for argument 'third_argument' in constructor call:HIGH +too-many-function-args:42:0::Too many positional arguments for constructor call:HIGH +no-value-for-parameter:47:0::No value for argument 'first_argument' in constructor call:HIGH +unexpected-keyword-arg:47:0::Unexpected keyword argument 'bob' in constructor call:HIGH +unexpected-keyword-arg:48:0::Unexpected keyword argument 'coin' in constructor call:HIGH +redundant-keyword-arg:50:0::Argument 'one' passed by position and keyword in constructor call:HIGH +no-value-for-parameter:53:0::No value for argument 'first_argument' in constructor call:HIGH +too-many-function-args:54:0::Too many positional arguments for constructor call:HIGH +too-many-function-args:60:0::Too many positional arguments for constructor call:HIGH +too-many-function-args:63:0::Too many positional arguments for constructor call:HIGH +no-value-for-parameter:64:0::No value for argument 'first_argument' in constructor call:HIGH +unexpected-keyword-arg:64:0::Unexpected keyword argument 'one' in constructor call:HIGH +too-many-function-args:85:0::Too many positional arguments for constructor call:HIGH +unexpected-keyword-arg:85:0::Unexpected keyword argument 'badarg' in constructor call:HIGH +too-many-function-args:95:15:Clsmethod.from_nothing:Too many positional arguments for constructor call:HIGH +no-value-for-parameter:99:15:Clsmethod.from_nothing1:No value for argument 'first' in constructor call:HIGH +no-value-for-parameter:99:15:Clsmethod.from_nothing1:No value for argument 'second' in constructor call:HIGH +no-value-for-parameter:104:15:Clsmethod.from_nothing2:No value for argument 'second' in constructor call:HIGH +unexpected-keyword-arg:104:15:Clsmethod.from_nothing2:Unexpected keyword argument 'not_argument' in constructor call:HIGH diff --git a/tests/functional/d/dangerous_default_value.txt b/tests/functional/d/dangerous_default_value.txt index 8f4dd7e47f..67c071833a 100644 --- a/tests/functional/d/dangerous_default_value.txt +++ b/tests/functional/d/dangerous_default_value.txt @@ -1,22 +1,22 @@ -dangerous-default-value:6:0:function1:Dangerous default value [] as argument -dangerous-default-value:10:0:function2:Dangerous default value HEHE (builtins.dict) as argument -dangerous-default-value:18:0:function4:Dangerous default value set() (builtins.set) as argument -dangerous-default-value:28:0:function6:Dangerous default value GLOBAL_SET (builtins.set) as argument -dangerous-default-value:32:0:function7:Dangerous default value dict() (builtins.dict) as argument -dangerous-default-value:36:0:function8:Dangerous default value list() (builtins.list) as argument -dangerous-default-value:40:0:function9:Dangerous default value [] as argument -dangerous-default-value:44:0:function10:Dangerous default value {} as argument -dangerous-default-value:48:0:function11:Dangerous default value list() (builtins.list) as argument -dangerous-default-value:52:0:function12:Dangerous default value dict() (builtins.dict) as argument -dangerous-default-value:61:0:function13:Dangerous default value OINK (builtins.dict) as argument -dangerous-default-value:65:0:function14:Dangerous default value dict() (builtins.dict) as argument -dangerous-default-value:73:0:function15:Dangerous default value INVALID_DICT (builtins.dict) as argument -dangerous-default-value:77:0:function16:Dangerous default value set() as argument -dangerous-default-value:81:0:function17:Dangerous default value deque() (collections.deque) as argument -dangerous-default-value:85:0:function18:Dangerous default value ChainMap() (collections.ChainMap) as argument -dangerous-default-value:89:0:function19:Dangerous default value Counter() (collections.Counter) as argument -dangerous-default-value:93:0:function20:Dangerous default value OrderedDict() (collections.OrderedDict) as argument -dangerous-default-value:97:0:function21:Dangerous default value defaultdict() (collections.defaultdict) as argument -dangerous-default-value:101:0:function22:Dangerous default value UserDict() (collections.UserDict) as argument -dangerous-default-value:105:0:function23:Dangerous default value UserList() (collections.UserList) as argument -dangerous-default-value:109:0:function24:Dangerous default value [] as argument +dangerous-default-value:6:0:function1:Dangerous default value [] as argument:HIGH +dangerous-default-value:10:0:function2:Dangerous default value HEHE (builtins.dict) as argument:HIGH +dangerous-default-value:18:0:function4:Dangerous default value set() (builtins.set) as argument:HIGH +dangerous-default-value:28:0:function6:Dangerous default value GLOBAL_SET (builtins.set) as argument:HIGH +dangerous-default-value:32:0:function7:Dangerous default value dict() (builtins.dict) as argument:HIGH +dangerous-default-value:36:0:function8:Dangerous default value list() (builtins.list) as argument:HIGH +dangerous-default-value:40:0:function9:Dangerous default value [] as argument:HIGH +dangerous-default-value:44:0:function10:Dangerous default value {} as argument:HIGH +dangerous-default-value:48:0:function11:Dangerous default value list() (builtins.list) as argument:HIGH +dangerous-default-value:52:0:function12:Dangerous default value dict() (builtins.dict) as argument:HIGH +dangerous-default-value:61:0:function13:Dangerous default value OINK (builtins.dict) as argument:HIGH +dangerous-default-value:65:0:function14:Dangerous default value dict() (builtins.dict) as argument:HIGH +dangerous-default-value:73:0:function15:Dangerous default value INVALID_DICT (builtins.dict) as argument:HIGH +dangerous-default-value:77:0:function16:Dangerous default value set() as argument:HIGH +dangerous-default-value:81:0:function17:Dangerous default value deque() (collections.deque) as argument:HIGH +dangerous-default-value:85:0:function18:Dangerous default value ChainMap() (collections.ChainMap) as argument:HIGH +dangerous-default-value:89:0:function19:Dangerous default value Counter() (collections.Counter) as argument:HIGH +dangerous-default-value:93:0:function20:Dangerous default value OrderedDict() (collections.OrderedDict) as argument:HIGH +dangerous-default-value:97:0:function21:Dangerous default value defaultdict() (collections.defaultdict) as argument:HIGH +dangerous-default-value:101:0:function22:Dangerous default value UserDict() (collections.UserDict) as argument:HIGH +dangerous-default-value:105:0:function23:Dangerous default value UserList() (collections.UserList) as argument:HIGH +dangerous-default-value:109:0:function24:Dangerous default value [] as argument:HIGH diff --git a/tests/functional/d/deprecated/deprecated_decorators.txt b/tests/functional/d/deprecated/deprecated_decorators.txt index a696c8bfe6..1f0be3d9fb 100644 --- a/tests/functional/d/deprecated/deprecated_decorators.txt +++ b/tests/functional/d/deprecated/deprecated_decorators.txt @@ -1 +1 @@ -deprecated-decorator:7:4:MyClass.my_method:Using deprecated decorator abc.abstractclassmethod() +deprecated-decorator:7:4:MyClass.my_method:Using deprecated decorator abc.abstractclassmethod():HIGH diff --git a/tests/functional/d/deprecated/deprecated_methods_py36.txt b/tests/functional/d/deprecated/deprecated_methods_py36.txt index 801d24b6ee..3fdb1b34ce 100644 --- a/tests/functional/d/deprecated/deprecated_methods_py36.txt +++ b/tests/functional/d/deprecated/deprecated_methods_py36.txt @@ -1,2 +1,2 @@ -deprecated-method:6:0::Using deprecated method load_module() -deprecated-method:7:0::Using deprecated method load_module() +deprecated-method:6:0::Using deprecated method load_module():HIGH +deprecated-method:7:0::Using deprecated method load_module():HIGH diff --git a/tests/functional/d/deprecated/deprecated_module_py36.txt b/tests/functional/d/deprecated/deprecated_module_py36.txt index ab5f489963..8f1b95f941 100644 --- a/tests/functional/d/deprecated/deprecated_module_py36.txt +++ b/tests/functional/d/deprecated/deprecated_module_py36.txt @@ -1 +1 @@ -deprecated-module:4:0::Uses of a deprecated module 'optparse' +deprecated-module:4:0::Uses of a deprecated module 'optparse':HIGH diff --git a/tests/functional/d/deprecated/deprecated_module_py4.txt b/tests/functional/d/deprecated/deprecated_module_py4.txt index f4800d0b9a..430e7fb678 100644 --- a/tests/functional/d/deprecated/deprecated_module_py4.txt +++ b/tests/functional/d/deprecated/deprecated_module_py4.txt @@ -1,2 +1,2 @@ -deprecated-module:3:0::Uses of a deprecated module 'deprecated' -deprecated-module:4:0::Uses of a deprecated module 'deprecated' +deprecated-module:3:0::Uses of a deprecated module 'deprecated':HIGH +deprecated-module:4:0::Uses of a deprecated module 'deprecated':HIGH diff --git a/tests/functional/d/deprecated/deprecated_module_uninstalled.txt b/tests/functional/d/deprecated/deprecated_module_uninstalled.txt index 7d9f01afa3..707a67e657 100644 --- a/tests/functional/d/deprecated/deprecated_module_uninstalled.txt +++ b/tests/functional/d/deprecated/deprecated_module_uninstalled.txt @@ -1,2 +1,2 @@ -deprecated-module:4:0::Uses of a deprecated module 'uninstalled' -deprecated-module:5:0::Uses of a deprecated module 'uninstalled' +deprecated-module:4:0::Uses of a deprecated module 'uninstalled':HIGH +deprecated-module:5:0::Uses of a deprecated module 'uninstalled':HIGH diff --git a/tests/functional/d/dict_iter_missing_items.txt b/tests/functional/d/dict_iter_missing_items.txt index c3eb12f2c9..18a66993d9 100644 --- a/tests/functional/d/dict_iter_missing_items.txt +++ b/tests/functional/d/dict_iter_missing_items.txt @@ -1 +1 @@ -dict-iter-missing-items:11:0::Unpacking a dictionary in iteration without calling .items() +dict-iter-missing-items:11:0::Unpacking a dictionary in iteration without calling .items():HIGH diff --git a/tests/functional/d/disable_msg_next_line.txt b/tests/functional/d/disable_msg_next_line.txt index bfd0adeae5..6aec634502 100644 --- a/tests/functional/d/disable_msg_next_line.txt +++ b/tests/functional/d/disable_msg_next_line.txt @@ -1,5 +1,5 @@ invalid-name:15:4:function_C:"Variable name ""x"" doesn't conform to snake_case naming style":HIGH -unused-variable:15:4:function_C:"Unused variable 'x'":HIGH -f-string-without-interpolation:16:11:function_C:"Using an f-string that does not have any interpolated variables":HIGH +unused-variable:15:4:function_C:Unused variable 'x':HIGH +f-string-without-interpolation:16:11:function_C:Using an f-string that does not have any interpolated variables:HIGH invalid-name:19:0:function_D:"Function name ""function_D"" doesn't conform to snake_case naming style":HIGH -unused-argument:19:21:function_D:"Unused argument 'arg2'":HIGH +unused-argument:19:21:function_D:Unused argument 'arg2':HIGH diff --git a/tests/functional/d/disable_ungrouped_imports.txt b/tests/functional/d/disable_ungrouped_imports.txt index a5a0e02a21..430332036b 100644 --- a/tests/functional/d/disable_ungrouped_imports.txt +++ b/tests/functional/d/disable_ungrouped_imports.txt @@ -1,2 +1,2 @@ -ungrouped-imports:9:0::Imports from package os are not grouped -ungrouped-imports:10:0::Imports from package logging are not grouped +ungrouped-imports:9:0::Imports from package os are not grouped:HIGH +ungrouped-imports:10:0::Imports from package logging are not grouped:HIGH diff --git a/tests/functional/d/disable_wrong_import_order.txt b/tests/functional/d/disable_wrong_import_order.txt index d0fcafbc40..327ad13f0f 100644 --- a/tests/functional/d/disable_wrong_import_order.txt +++ b/tests/functional/d/disable_wrong_import_order.txt @@ -1 +1 @@ -ungrouped-imports:11:0::Imports from package first_party are not grouped +ungrouped-imports:11:0::Imports from package first_party are not grouped:HIGH diff --git a/tests/functional/d/docstrings.txt b/tests/functional/d/docstrings.txt index e8bb2f3de4..d7dec5cb89 100644 --- a/tests/functional/d/docstrings.txt +++ b/tests/functional/d/docstrings.txt @@ -1,7 +1,7 @@ -missing-module-docstring:1:0::Missing module docstring -empty-docstring:6:0:function0:Empty function docstring -missing-function-docstring:10:0:function1:Missing function or method docstring -missing-class-docstring:23:0:AAAA:Missing class docstring +missing-module-docstring:1:0::Missing module docstring:HIGH +empty-docstring:6:0:function0:Empty function docstring:HIGH +missing-function-docstring:10:0:function1:Missing function or method docstring:HIGH +missing-class-docstring:23:0:AAAA:Missing class docstring:HIGH missing-function-docstring:40:4:AAAA.method1:Missing function or method docstring:INFERENCE empty-docstring:48:4:AAAA.method3:Empty method docstring:INFERENCE empty-docstring:62:4:DDDD.method2:Empty method docstring:INFERENCE diff --git a/tests/functional/d/duplicate_argument_name.txt b/tests/functional/d/duplicate_argument_name.txt index a8321d9ceb..25e885abff 100644 --- a/tests/functional/d/duplicate_argument_name.txt +++ b/tests/functional/d/duplicate_argument_name.txt @@ -1,8 +1,8 @@ -duplicate-argument-name:4:9:foo1:Duplicate argument name _ in function definition -duplicate-argument-name:4:12:foo1:Duplicate argument name _ in function definition -duplicate-argument-name:7:9:foo2:Duplicate argument name _abc in function definition -duplicate-argument-name:7:18:foo2:Duplicate argument name _abc in function definition -duplicate-argument-name:10:9:foo3:Duplicate argument name _ in function definition -duplicate-argument-name:10:12:foo3:Duplicate argument name _ in function definition -duplicate-argument-name:13:9:foo4:Duplicate argument name _ in function definition -duplicate-argument-name:13:15:foo4:Duplicate argument name _ in function definition +duplicate-argument-name:4:9:foo1:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:4:12:foo1:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:7:9:foo2:Duplicate argument name _abc in function definition:HIGH +duplicate-argument-name:7:18:foo2:Duplicate argument name _abc in function definition:HIGH +duplicate-argument-name:10:9:foo3:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:10:12:foo3:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:13:9:foo4:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:13:15:foo4:Duplicate argument name _ in function definition:HIGH diff --git a/tests/functional/d/duplicate_argument_name_py3.txt b/tests/functional/d/duplicate_argument_name_py3.txt index 6942faaae5..1077ca7117 100644 --- a/tests/functional/d/duplicate_argument_name_py3.txt +++ b/tests/functional/d/duplicate_argument_name_py3.txt @@ -1,2 +1,2 @@ -duplicate-argument-name:4:9:foo1:Duplicate argument name _ in function definition -duplicate-argument-name:4:16:foo1:Duplicate argument name _ in function definition +duplicate-argument-name:4:9:foo1:Duplicate argument name _ in function definition:HIGH +duplicate-argument-name:4:16:foo1:Duplicate argument name _ in function definition:HIGH diff --git a/tests/functional/d/duplicate_bases.txt b/tests/functional/d/duplicate_bases.txt index 651086fd9a..4d3d060fb4 100644 --- a/tests/functional/d/duplicate_bases.txt +++ b/tests/functional/d/duplicate_bases.txt @@ -1 +1 @@ -duplicate-bases:5:0:Duplicates:Duplicate bases for class 'Duplicates' +duplicate-bases:5:0:Duplicates:Duplicate bases for class 'Duplicates':HIGH diff --git a/tests/functional/d/duplicate_except.txt b/tests/functional/d/duplicate_except.txt index cf8df9e3f6..4d1d211fed 100644 --- a/tests/functional/d/duplicate_except.txt +++ b/tests/functional/d/duplicate_except.txt @@ -1 +1 @@ -duplicate-except:9:11:main:Catching previously caught exception type ValueError +duplicate-except:9:11:main:Catching previously caught exception type ValueError:HIGH diff --git a/tests/functional/d/duplicate_string_formatting_argument.txt b/tests/functional/d/duplicate_string_formatting_argument.txt index fdc4386242..ca42eb2815 100644 --- a/tests/functional/d/duplicate_string_formatting_argument.txt +++ b/tests/functional/d/duplicate_string_formatting_argument.txt @@ -1,2 +1,2 @@ -duplicate-string-formatting-argument:8:8::Duplicate string formatting argument 'NAME', consider passing as named argument -duplicate-string-formatting-argument:8:8::Duplicate string formatting argument 'OTHER_NAME', consider passing as named argument +duplicate-string-formatting-argument:8:8::Duplicate string formatting argument 'NAME', consider passing as named argument:HIGH +duplicate-string-formatting-argument:8:8::Duplicate string formatting argument 'OTHER_NAME', consider passing as named argument:HIGH diff --git a/tests/functional/e/eval_used.txt b/tests/functional/e/eval_used.txt index f8cdc5f537..602dbe5d34 100644 --- a/tests/functional/e/eval_used.txt +++ b/tests/functional/e/eval_used.txt @@ -1,4 +1,4 @@ -eval-used:3:0::Use of eval -eval-used:4:0::Use of eval -eval-used:6:0::Use of eval -eval-used:10:4:func:Use of eval +eval-used:3:0::Use of eval:HIGH +eval-used:4:0::Use of eval:HIGH +eval-used:6:0::Use of eval:HIGH +eval-used:10:4:func:Use of eval:HIGH diff --git a/tests/functional/e/exception_is_binary_op.txt b/tests/functional/e/exception_is_binary_op.txt index 1395c67a19..1796f72d04 100644 --- a/tests/functional/e/exception_is_binary_op.txt +++ b/tests/functional/e/exception_is_binary_op.txt @@ -1,4 +1,4 @@ -binary-op-exception:5:0::"Exception to catch is the result of a binary ""or"" operation" -binary-op-exception:7:0::"Exception to catch is the result of a binary ""and"" operation" -binary-op-exception:9:0::"Exception to catch is the result of a binary ""or"" operation" -binary-op-exception:11:0::"Exception to catch is the result of a binary ""or"" operation" +binary-op-exception:5:0::"Exception to catch is the result of a binary ""or"" operation":HIGH +binary-op-exception:7:0::"Exception to catch is the result of a binary ""and"" operation":HIGH +binary-op-exception:9:0::"Exception to catch is the result of a binary ""or"" operation":HIGH +binary-op-exception:11:0::"Exception to catch is the result of a binary ""or"" operation":HIGH diff --git a/tests/functional/e/excess_escapes.txt b/tests/functional/e/excess_escapes.txt index 4082e47095..be990564c1 100644 --- a/tests/functional/e/excess_escapes.txt +++ b/tests/functional/e/excess_escapes.txt @@ -1,9 +1,9 @@ -anomalous-backslash-in-string:8:5::"Anomalous backslash in string: '\['. String constant might be missing an r prefix." -anomalous-backslash-in-string:8:7::"Anomalous backslash in string: '\]'. String constant might be missing an r prefix." -anomalous-backslash-in-string:9:8::"Anomalous backslash in string: '\/'. String constant might be missing an r prefix." -anomalous-backslash-in-string:10:20::"Anomalous backslash in string: '\`'. String constant might be missing an r prefix." -anomalous-backslash-in-string:17:15::"Anomalous backslash in string: '\o'. String constant might be missing an r prefix." -anomalous-backslash-in-string:17:20::"Anomalous backslash in string: '\o'. String constant might be missing an r prefix." -anomalous-backslash-in-string:19:13::"Anomalous backslash in string: '\8'. String constant might be missing an r prefix." -anomalous-backslash-in-string:19:17::"Anomalous backslash in string: '\9'. String constant might be missing an r prefix." -anomalous-backslash-in-string:32:42::"Anomalous backslash in string: '\P'. String constant might be missing an r prefix." +anomalous-backslash-in-string:8:5::"Anomalous backslash in string: '\['. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:8:7::"Anomalous backslash in string: '\]'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:9:8::"Anomalous backslash in string: '\/'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:10:20::"Anomalous backslash in string: '\`'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:17:15::"Anomalous backslash in string: '\o'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:17:20::"Anomalous backslash in string: '\o'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:19:13::"Anomalous backslash in string: '\8'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:19:17::"Anomalous backslash in string: '\9'. String constant might be missing an r prefix.":HIGH +anomalous-backslash-in-string:32:42::"Anomalous backslash in string: '\P'. String constant might be missing an r prefix.":HIGH diff --git a/tests/functional/e/exec_used.txt b/tests/functional/e/exec_used.txt index ebfab1c09d..e337e0020a 100644 --- a/tests/functional/e/exec_used.txt +++ b/tests/functional/e/exec_used.txt @@ -1,4 +1,4 @@ -exec-used:3:0::Use of exec -exec-used:4:0::Use of exec -exec-used:6:0::Use of exec -exec-used:9:4:func:Use of exec +exec-used:3:0::Use of exec:HIGH +exec-used:4:0::Use of exec:HIGH +exec-used:6:0::Use of exec:HIGH +exec-used:9:4:func:Use of exec:HIGH diff --git a/tests/functional/ext/bad_builtins.txt b/tests/functional/ext/bad_builtins.txt index 093b1d1e52..04083e709a 100644 --- a/tests/functional/ext/bad_builtins.txt +++ b/tests/functional/ext/bad_builtins.txt @@ -1,4 +1,4 @@ -bad-builtin:2:0::Used builtin function 'input' -bad-builtin:3:15::Used builtin function 'filter'. Using a list comprehension can be clearer. -bad-builtin:3:6::Used builtin function 'map'. Using a list comprehension can be clearer. -bad-builtin:3:0::Used builtin function 'print' +bad-builtin:2:0::Used builtin function 'input':HIGH +bad-builtin:3:15::Used builtin function 'filter'. Using a list comprehension can be clearer.:HIGH +bad-builtin:3:6::Used builtin function 'map'. Using a list comprehension can be clearer.:HIGH +bad-builtin:3:0::Used builtin function 'print':HIGH diff --git a/tests/functional/ext/code_style/code_style_consider_using_namedtuple_or_dataclass.txt b/tests/functional/ext/code_style/code_style_consider_using_namedtuple_or_dataclass.txt index 6c471db96a..f65456f9e4 100644 --- a/tests/functional/ext/code_style/code_style_consider_using_namedtuple_or_dataclass.txt +++ b/tests/functional/ext/code_style/code_style_consider_using_namedtuple_or_dataclass.txt @@ -1,5 +1,5 @@ -consider-using-namedtuple-or-dataclass:11:12::Consider using namedtuple or dataclass for dictionary values -consider-using-namedtuple-or-dataclass:15:12::Consider using namedtuple or dataclass for dictionary values -consider-using-namedtuple-or-dataclass:34:23:func:Consider using namedtuple or dataclass for dictionary values -consider-using-namedtuple-or-dataclass:41:12::Consider using namedtuple or dataclass for dictionary values -consider-using-namedtuple-or-dataclass:53:12::Consider using namedtuple or dataclass for dictionary values +consider-using-namedtuple-or-dataclass:11:12::Consider using namedtuple or dataclass for dictionary values:HIGH +consider-using-namedtuple-or-dataclass:15:12::Consider using namedtuple or dataclass for dictionary values:HIGH +consider-using-namedtuple-or-dataclass:34:23:func:Consider using namedtuple or dataclass for dictionary values:HIGH +consider-using-namedtuple-or-dataclass:41:12::Consider using namedtuple or dataclass for dictionary values:HIGH +consider-using-namedtuple-or-dataclass:53:12::Consider using namedtuple or dataclass for dictionary values:HIGH diff --git a/tests/functional/ext/code_style/code_style_consider_using_tuple.txt b/tests/functional/ext/code_style/code_style_consider_using_tuple.txt index 167c8c0371..6afb206c34 100644 --- a/tests/functional/ext/code_style/code_style_consider_using_tuple.txt +++ b/tests/functional/ext/code_style/code_style_consider_using_tuple.txt @@ -1,8 +1,8 @@ -consider-using-tuple:9:9::Consider using an in-place tuple instead of list -consider-using-tuple:14:12::Consider using an in-place tuple instead of list -consider-using-tuple:18:12::Consider using an in-place tuple instead of list -consider-using-tuple:21:9::Consider using an in-place tuple instead of list -consider-using-tuple:23:9::Consider using an in-place tuple instead of list -consider-using-tuple:26:12::Consider using an in-place tuple instead of list -use-sequence-for-iteration:30:12::Use a sequence type when iterating over values -use-sequence-for-iteration:31:12::Use a sequence type when iterating over values +consider-using-tuple:9:9::Consider using an in-place tuple instead of list:HIGH +consider-using-tuple:14:12::Consider using an in-place tuple instead of list:HIGH +consider-using-tuple:18:12::Consider using an in-place tuple instead of list:HIGH +consider-using-tuple:21:9::Consider using an in-place tuple instead of list:HIGH +consider-using-tuple:23:9::Consider using an in-place tuple instead of list:HIGH +consider-using-tuple:26:12::Consider using an in-place tuple instead of list:HIGH +use-sequence-for-iteration:30:12::Use a sequence type when iterating over values:HIGH +use-sequence-for-iteration:31:12::Use a sequence type when iterating over values:HIGH diff --git a/tests/functional/ext/confusing_elif.txt b/tests/functional/ext/confusing_elif.txt index 55cc0d13f8..99a14c7a40 100644 --- a/tests/functional/ext/confusing_elif.txt +++ b/tests/functional/ext/confusing_elif.txt @@ -1 +1 @@ -confusing-consecutive-elif:11:4:check_config:Consecutive elif with differing indentation level, consider creating a function to separate the inner elif +confusing-consecutive-elif:11:4:check_config:Consecutive elif with differing indentation level, consider creating a function to separate the inner elif:HIGH diff --git a/tests/functional/ext/consider_ternary_expression.txt b/tests/functional/ext/consider_ternary_expression.txt index 08e51e61d9..f31af60ab0 100644 --- a/tests/functional/ext/consider_ternary_expression.txt +++ b/tests/functional/ext/consider_ternary_expression.txt @@ -1,2 +1,2 @@ -consider-ternary-expression:1:0::Consider rewriting as a ternary expression -consider-ternary-expression:14:4:a:Consider rewriting as a ternary expression +consider-ternary-expression:1:0::Consider rewriting as a ternary expression:HIGH +consider-ternary-expression:14:4:a:Consider rewriting as a ternary expression:HIGH diff --git a/tests/functional/ext/docparams.txt b/tests/functional/ext/docparams.txt index 7aa6631ed3..3b2044426d 100644 --- a/tests/functional/ext/docparams.txt +++ b/tests/functional/ext/docparams.txt @@ -1,12 +1,12 @@ -missing-return-doc:4:0:_private_func1:Missing return documentation -missing-return-type-doc:4:0:_private_func1:Missing return type documentation -missing-yield-doc:9:0:_private_func2:Missing yield documentation -missing-yield-type-doc:9:0:_private_func2:Missing yield type documentation -missing-raises-doc:14:0:_private_func3:"""Exception""" not documented as being raised -missing-any-param-doc:19:0:public_func1:"Missing any documentation in ""public_func1""" -missing-return-doc:24:0:_async_private_func1:Missing return documentation -missing-return-type-doc:24:0:_async_private_func1:Missing return type documentation -missing-yield-doc:29:0:_async_private_func2:Missing yield documentation -missing-yield-type-doc:29:0:_async_private_func2:Missing yield type documentation -missing-raises-doc:34:0:_async_private_func3:"""Exception""" not documented as being raised -missing-any-param-doc:39:0:async_public_func1:"Missing any documentation in ""async_public_func1""" +missing-return-doc:4:0:_private_func1:Missing return documentation:HIGH +missing-return-type-doc:4:0:_private_func1:Missing return type documentation:HIGH +missing-yield-doc:9:0:_private_func2:Missing yield documentation:HIGH +missing-yield-type-doc:9:0:_private_func2:Missing yield type documentation:HIGH +missing-raises-doc:14:0:_private_func3:"""Exception"" not documented as being raised":HIGH +missing-any-param-doc:19:0:public_func1:"Missing any documentation in ""public_func1""":HIGH +missing-return-doc:24:0:_async_private_func1:Missing return documentation:HIGH +missing-return-type-doc:24:0:_async_private_func1:Missing return type documentation:HIGH +missing-yield-doc:29:0:_async_private_func2:Missing yield documentation:HIGH +missing-yield-type-doc:29:0:_async_private_func2:Missing yield type documentation:HIGH +missing-raises-doc:34:0:_async_private_func3:"""Exception"" not documented as being raised":HIGH +missing-any-param-doc:39:0:async_public_func1:"Missing any documentation in ""async_public_func1""":HIGH diff --git a/tests/functional/ext/for_any_all.txt b/tests/functional/ext/for_any_all.txt index da01f06fdd..4eb7ea0599 100644 --- a/tests/functional/ext/for_any_all.txt +++ b/tests/functional/ext/for_any_all.txt @@ -1,8 +1,8 @@ -consider-using-any-or-all:5:4:any_even:`for` loop could be `any(item % 2 == 0 for item in items)` -consider-using-any-or-all:12:4:all_even:`for` loop could be `all(item % 2 == 0 for item in items)` -consider-using-any-or-all:19:4:any_uneven:`for` loop could be `not all(item % 2 == 0 for item in items)` -consider-using-any-or-all:26:4:all_uneven:`for` loop could be `not any(item % 2 == 0 for item in items)` -consider-using-any-or-all:33:4:is_from_string:`for` loop could be `any(isinstance(parent, str) for parent in item.parents())` -consider-using-any-or-all:40:4:is_not_from_string:`for` loop could be `not all(isinstance(parent, str) for parent in item.parents())` -consider-using-any-or-all:49:8:nested_check:`for` loop could be `not any(item in (1, 2, 3) for item in items)` -consider-using-any-or-all:58:4:words_contains_word:`for` loop could be `any(word == 'word' for word in words)` +consider-using-any-or-all:5:4:any_even:`for` loop could be `any(item % 2 == 0 for item in items)`:HIGH +consider-using-any-or-all:12:4:all_even:`for` loop could be `all(item % 2 == 0 for item in items)`:HIGH +consider-using-any-or-all:19:4:any_uneven:`for` loop could be `not all(item % 2 == 0 for item in items)`:HIGH +consider-using-any-or-all:26:4:all_uneven:`for` loop could be `not any(item % 2 == 0 for item in items)`:HIGH +consider-using-any-or-all:33:4:is_from_string:`for` loop could be `any(isinstance(parent, str) for parent in item.parents())`:HIGH +consider-using-any-or-all:40:4:is_not_from_string:`for` loop could be `not all(isinstance(parent, str) for parent in item.parents())`:HIGH +consider-using-any-or-all:49:8:nested_check:`for` loop could be `not any(item in (1, 2, 3) for item in items)`:HIGH +consider-using-any-or-all:58:4:words_contains_word:`for` loop could be `any(word == 'word' for word in words)`:HIGH diff --git a/tests/functional/ext/typing/typing_consider_using_alias.txt b/tests/functional/ext/typing/typing_consider_using_alias.txt index e3deddf7e8..4405e7d594 100644 --- a/tests/functional/ext/typing/typing_consider_using_alias.txt +++ b/tests/functional/ext/typing/typing_consider_using_alias.txt @@ -1,20 +1,20 @@ -consider-using-alias:16:6::'typing.Dict' will be deprecated with PY39, consider using 'dict' instead -consider-using-alias:17:6::'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:19:6::'typing.OrderedDict' will be deprecated with PY39, consider using 'collections.OrderedDict' instead -consider-using-alias:20:6::'typing.Awaitable' will be deprecated with PY39, consider using 'collections.abc.Awaitable' instead -consider-using-alias:21:6::'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead -consider-using-alias:22:6::'typing.Hashable' will be deprecated with PY39, consider using 'collections.abc.Hashable' instead -consider-using-alias:23:6::'typing.ContextManager' will be deprecated with PY39, consider using 'contextlib.AbstractContextManager' instead -consider-using-alias:24:6::'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead -consider-using-alias:25:7::'typing.Match' will be deprecated with PY39, consider using 're.Match' instead -consider-using-alias:34:9::'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:36:7::'typing.Type' will be deprecated with PY39, consider using 'type' instead -consider-using-alias:37:7::'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead -consider-using-alias:38:7::'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead -consider-using-alias:44:74:func1:'typing.Dict' will be deprecated with PY39, consider using 'dict' instead -consider-using-alias:44:16:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:44:37:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:44:93:func1:'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead -consider-using-alias:60:12:CustomNamedTuple:'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:65:12:CustomTypedDict2:'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:69:12:CustomDataClass:'typing.List' will be deprecated with PY39, consider using 'list' instead +consider-using-alias:16:6::'typing.Dict' will be deprecated with PY39, consider using 'dict' instead:HIGH +consider-using-alias:17:6::'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:19:6::'typing.OrderedDict' will be deprecated with PY39, consider using 'collections.OrderedDict' instead:HIGH +consider-using-alias:20:6::'typing.Awaitable' will be deprecated with PY39, consider using 'collections.abc.Awaitable' instead:HIGH +consider-using-alias:21:6::'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead:HIGH +consider-using-alias:22:6::'typing.Hashable' will be deprecated with PY39, consider using 'collections.abc.Hashable' instead:HIGH +consider-using-alias:23:6::'typing.ContextManager' will be deprecated with PY39, consider using 'contextlib.AbstractContextManager' instead:HIGH +consider-using-alias:24:6::'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead:HIGH +consider-using-alias:25:7::'typing.Match' will be deprecated with PY39, consider using 're.Match' instead:HIGH +consider-using-alias:34:9::'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:36:7::'typing.Type' will be deprecated with PY39, consider using 'type' instead:HIGH +consider-using-alias:37:7::'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead:HIGH +consider-using-alias:38:7::'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead:HIGH +consider-using-alias:44:74:func1:'typing.Dict' will be deprecated with PY39, consider using 'dict' instead:HIGH +consider-using-alias:44:16:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:44:37:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:44:93:func1:'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead:HIGH +consider-using-alias:60:12:CustomNamedTuple:'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:65:12:CustomTypedDict2:'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:69:12:CustomDataClass:'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH diff --git a/tests/functional/ext/typing/typing_consider_using_alias_without_future.txt b/tests/functional/ext/typing/typing_consider_using_alias_without_future.txt index f60436dc85..df1a2c3036 100644 --- a/tests/functional/ext/typing/typing_consider_using_alias_without_future.txt +++ b/tests/functional/ext/typing/typing_consider_using_alias_without_future.txt @@ -1,20 +1,20 @@ -consider-using-alias:13:6::'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from __future__ import annotations' as well -consider-using-alias:14:6::'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well -consider-using-alias:16:6::'typing.OrderedDict' will be deprecated with PY39, consider using 'collections.OrderedDict' instead. Add 'from __future__ import annotations' as well -consider-using-alias:17:6::'typing.Awaitable' will be deprecated with PY39, consider using 'collections.abc.Awaitable' instead. Add 'from __future__ import annotations' as well -consider-using-alias:18:6::'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from __future__ import annotations' as well -consider-using-alias:19:6::'typing.Hashable' will be deprecated with PY39, consider using 'collections.abc.Hashable' instead -consider-using-alias:20:6::'typing.ContextManager' will be deprecated with PY39, consider using 'contextlib.AbstractContextManager' instead. Add 'from __future__ import annotations' as well -consider-using-alias:21:6::'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead. Add 'from __future__ import annotations' as well -consider-using-alias:22:7::'typing.Match' will be deprecated with PY39, consider using 're.Match' instead. Add 'from __future__ import annotations' as well -consider-using-alias:31:9::'typing.List' will be deprecated with PY39, consider using 'list' instead -consider-using-alias:33:7::'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from __future__ import annotations' as well -consider-using-alias:34:7::'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from __future__ import annotations' as well -consider-using-alias:35:7::'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from __future__ import annotations' as well -consider-using-alias:41:74:func1:'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from __future__ import annotations' as well -consider-using-alias:41:16:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well -consider-using-alias:41:37:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well -consider-using-alias:41:93:func1:'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from __future__ import annotations' as well -consider-using-alias:57:12:CustomNamedTuple:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well -consider-using-alias:62:12:CustomTypedDict2:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well -consider-using-alias:66:12:CustomDataClass:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well +consider-using-alias:13:6::'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:14:6::'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:16:6::'typing.OrderedDict' will be deprecated with PY39, consider using 'collections.OrderedDict' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:17:6::'typing.Awaitable' will be deprecated with PY39, consider using 'collections.abc.Awaitable' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:18:6::'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:19:6::'typing.Hashable' will be deprecated with PY39, consider using 'collections.abc.Hashable' instead:HIGH +consider-using-alias:20:6::'typing.ContextManager' will be deprecated with PY39, consider using 'contextlib.AbstractContextManager' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:21:6::'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:22:7::'typing.Match' will be deprecated with PY39, consider using 're.Match' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:31:9::'typing.List' will be deprecated with PY39, consider using 'list' instead:HIGH +consider-using-alias:33:7::'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:34:7::'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:35:7::'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:41:74:func1:'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:41:16:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:41:37:func1:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:41:93:func1:'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:57:12:CustomNamedTuple:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:62:12:CustomTypedDict2:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH +consider-using-alias:66:12:CustomDataClass:'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from __future__ import annotations' as well:HIGH diff --git a/tests/functional/ext/typing/typing_consider_using_union.txt b/tests/functional/ext/typing/typing_consider_using_union.txt index 330a7165f6..40402699e1 100644 --- a/tests/functional/ext/typing/typing_consider_using_union.txt +++ b/tests/functional/ext/typing/typing_consider_using_union.txt @@ -1,10 +1,10 @@ -consider-alternative-union-syntax:13:6::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:14:11::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:15:16::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:16:6::Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:24:10:func1:Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:25:24:func1:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:26:5:func1:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:38:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:43:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:47:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional' +consider-alternative-union-syntax:13:6::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:14:11::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:15:16::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:16:6::Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:24:10:func1:Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:25:24:func1:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:26:5:func1:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:38:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:43:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:47:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional':HIGH diff --git a/tests/functional/ext/typing/typing_consider_using_union_py310.txt b/tests/functional/ext/typing/typing_consider_using_union_py310.txt index 4402eb2188..a69befaf8b 100644 --- a/tests/functional/ext/typing/typing_consider_using_union_py310.txt +++ b/tests/functional/ext/typing/typing_consider_using_union_py310.txt @@ -1,18 +1,18 @@ -consider-alternative-union-syntax:11:6::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:12:11::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:13:16::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:14:6::Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:16:9::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:17:14::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:18:19::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:19:9::Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:22:10:func1:Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:23:24:func1:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:24:5:func1:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:27:19:Custom1:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:31:28::Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:33:14::Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:36:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:38:56::Consider using alternative Union syntax instead of 'Optional' -consider-alternative-union-syntax:41:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union' -consider-alternative-union-syntax:45:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional' +consider-alternative-union-syntax:11:6::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:12:11::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:13:16::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:14:6::Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:16:9::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:17:14::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:18:19::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:19:9::Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:22:10:func1:Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:23:24:func1:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:24:5:func1:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:27:19:Custom1:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:31:28::Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:33:14::Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:36:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:38:56::Consider using alternative Union syntax instead of 'Optional':HIGH +consider-alternative-union-syntax:41:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union':HIGH +consider-alternative-union-syntax:45:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional':HIGH diff --git a/tests/functional/ext/typing/typing_consider_using_union_without_future.txt b/tests/functional/ext/typing/typing_consider_using_union_without_future.txt index c43cbc3ce1..5d036b5d86 100644 --- a/tests/functional/ext/typing/typing_consider_using_union_without_future.txt +++ b/tests/functional/ext/typing/typing_consider_using_union_without_future.txt @@ -1,10 +1,10 @@ -consider-alternative-union-syntax:11:6::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:12:11::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:13:16::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:14:6::Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:22:10:func1:Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:23:24:func1:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:24:5:func1:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:36:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:41:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well -consider-alternative-union-syntax:45:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well +consider-alternative-union-syntax:11:6::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:12:11::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:13:16::Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:14:6::Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:22:10:func1:Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:23:24:func1:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:24:5:func1:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:36:12:CustomNamedTuple:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:41:27:CustomTypedDict2:Consider using alternative Union syntax instead of 'Union'. Add 'from __future__ import annotations' as well:HIGH +consider-alternative-union-syntax:45:12:CustomDataClass:Consider using alternative Union syntax instead of 'Optional'. Add 'from __future__ import annotations' as well:HIGH diff --git a/tests/functional/ext/typing/typing_deprecated_alias.txt b/tests/functional/ext/typing/typing_deprecated_alias.txt index 3da7cfefe7..722ee61b2a 100644 --- a/tests/functional/ext/typing/typing_deprecated_alias.txt +++ b/tests/functional/ext/typing/typing_deprecated_alias.txt @@ -1,28 +1,28 @@ -deprecated-typing-alias:13:6::'typing.Dict' is deprecated, use 'dict' instead -deprecated-typing-alias:14:6::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:16:6::'typing.OrderedDict' is deprecated, use 'collections.OrderedDict' instead -deprecated-typing-alias:17:6::'typing.Awaitable' is deprecated, use 'collections.abc.Awaitable' instead -deprecated-typing-alias:18:6::'typing.Iterable' is deprecated, use 'collections.abc.Iterable' instead -deprecated-typing-alias:19:6::'typing.Hashable' is deprecated, use 'collections.abc.Hashable' instead -deprecated-typing-alias:20:6::'typing.ContextManager' is deprecated, use 'contextlib.AbstractContextManager' instead -deprecated-typing-alias:21:6::'typing.Pattern' is deprecated, use 're.Pattern' instead -deprecated-typing-alias:22:7::'typing.Match' is deprecated, use 're.Match' instead -deprecated-typing-alias:28:9::'typing.Set' is deprecated, use 'set' instead -deprecated-typing-alias:29:9::'typing.Dict' is deprecated, use 'dict' instead -deprecated-typing-alias:29:19::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:30:20::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:31:9::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:33:7::'typing.Type' is deprecated, use 'type' instead -deprecated-typing-alias:34:7::'typing.Tuple' is deprecated, use 'tuple' instead -deprecated-typing-alias:35:7::'typing.Callable' is deprecated, use 'collections.abc.Callable' instead -deprecated-typing-alias:41:74:func1:'typing.Dict' is deprecated, use 'dict' instead -deprecated-typing-alias:41:16:func1:'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:41:37:func1:'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:41:93:func1:'typing.Tuple' is deprecated, use 'tuple' instead -deprecated-typing-alias:48:20:CustomIntList:'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:52:28::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:54:14::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:57:12:CustomNamedTuple:'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:59:56::'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:62:12:CustomTypedDict2:'typing.List' is deprecated, use 'list' instead -deprecated-typing-alias:66:12:CustomDataClass:'typing.List' is deprecated, use 'list' instead +deprecated-typing-alias:13:6::'typing.Dict' is deprecated, use 'dict' instead:HIGH +deprecated-typing-alias:14:6::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:16:6::'typing.OrderedDict' is deprecated, use 'collections.OrderedDict' instead:HIGH +deprecated-typing-alias:17:6::'typing.Awaitable' is deprecated, use 'collections.abc.Awaitable' instead:HIGH +deprecated-typing-alias:18:6::'typing.Iterable' is deprecated, use 'collections.abc.Iterable' instead:HIGH +deprecated-typing-alias:19:6::'typing.Hashable' is deprecated, use 'collections.abc.Hashable' instead:HIGH +deprecated-typing-alias:20:6::'typing.ContextManager' is deprecated, use 'contextlib.AbstractContextManager' instead:HIGH +deprecated-typing-alias:21:6::'typing.Pattern' is deprecated, use 're.Pattern' instead:HIGH +deprecated-typing-alias:22:7::'typing.Match' is deprecated, use 're.Match' instead:HIGH +deprecated-typing-alias:28:9::'typing.Set' is deprecated, use 'set' instead:HIGH +deprecated-typing-alias:29:9::'typing.Dict' is deprecated, use 'dict' instead:HIGH +deprecated-typing-alias:29:19::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:30:20::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:31:9::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:33:7::'typing.Type' is deprecated, use 'type' instead:HIGH +deprecated-typing-alias:34:7::'typing.Tuple' is deprecated, use 'tuple' instead:HIGH +deprecated-typing-alias:35:7::'typing.Callable' is deprecated, use 'collections.abc.Callable' instead:HIGH +deprecated-typing-alias:41:74:func1:'typing.Dict' is deprecated, use 'dict' instead:HIGH +deprecated-typing-alias:41:16:func1:'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:41:37:func1:'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:41:93:func1:'typing.Tuple' is deprecated, use 'tuple' instead:HIGH +deprecated-typing-alias:48:20:CustomIntList:'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:52:28::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:54:14::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:57:12:CustomNamedTuple:'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:59:56::'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:62:12:CustomTypedDict2:'typing.List' is deprecated, use 'list' instead:HIGH +deprecated-typing-alias:66:12:CustomDataClass:'typing.List' is deprecated, use 'list' instead:HIGH diff --git a/tests/functional/ext/while_used.txt b/tests/functional/ext/while_used.txt index 80ca84d568..3ff1378863 100644 --- a/tests/functional/ext/while_used.txt +++ b/tests/functional/ext/while_used.txt @@ -1,2 +1,2 @@ -while-used:3:0::Used `while` loop -while-used:9:4:fff:Used `while` loop +while-used:3:0::Used `while` loop:HIGH +while-used:9:4:fff:Used `while` loop:HIGH diff --git a/tests/functional/f/f_string_without_interpolation.txt b/tests/functional/f/f_string_without_interpolation.txt index 38df260d14..d6a4cebae3 100644 --- a/tests/functional/f/f_string_without_interpolation.txt +++ b/tests/functional/f/f_string_without_interpolation.txt @@ -1 +1 @@ -f-string-without-interpolation:9:6::Using an f-string that does not have any interpolated variables +f-string-without-interpolation:9:6::Using an f-string that does not have any interpolated variables:HIGH diff --git a/tests/functional/f/fallback_import_enabled.txt b/tests/functional/f/fallback_import_enabled.txt index b5ef596955..2627c5521c 100644 --- a/tests/functional/f/fallback_import_enabled.txt +++ b/tests/functional/f/fallback_import_enabled.txt @@ -1,2 +1,2 @@ -no-name-in-module:3:4::No name 'missing' in module 'collections' -no-name-in-module:5:4::No name 'missing' in module 'collections' +no-name-in-module:3:4::No name 'missing' in module 'collections':HIGH +no-name-in-module:5:4::No name 'missing' in module 'collections':HIGH diff --git a/tests/functional/f/first_arg.txt b/tests/functional/f/first_arg.txt index 8344fa8dd6..d0bd0db70b 100644 --- a/tests/functional/f/first_arg.txt +++ b/tests/functional/f/first_arg.txt @@ -1,9 +1,9 @@ -bad-classmethod-argument:10:4:Obj.__new__:Class method __new__ should have 'cls' as first argument -no-classmethod-decorator:16:4:Obj:Consider using a decorator instead of calling classmethod -bad-classmethod-argument:18:4:Obj.class2:Class method class2 should have 'cls' as first argument -no-classmethod-decorator:20:4:Obj:Consider using a decorator instead of calling classmethod -bad-mcs-classmethod-argument:25:4:Meta.__new__:Metaclass class method __new__ should have 'cls' as first argument -bad-mcs-method-argument:32:4:Meta.method2:Metaclass method method2 should have 'cls' as first argument -no-classmethod-decorator:38:4:Meta:Consider using a decorator instead of calling classmethod -bad-mcs-classmethod-argument:40:4:Meta.class2:Metaclass class method class2 should have 'cls' as first argument -no-classmethod-decorator:42:4:Meta:Consider using a decorator instead of calling classmethod +bad-classmethod-argument:10:4:Obj.__new__:Class method __new__ should have 'cls' as first argument:HIGH +no-classmethod-decorator:16:4:Obj:Consider using a decorator instead of calling classmethod:HIGH +bad-classmethod-argument:18:4:Obj.class2:Class method class2 should have 'cls' as first argument:HIGH +no-classmethod-decorator:20:4:Obj:Consider using a decorator instead of calling classmethod:HIGH +bad-mcs-classmethod-argument:25:4:Meta.__new__:Metaclass class method __new__ should have 'cls' as first argument:HIGH +bad-mcs-method-argument:32:4:Meta.method2:Metaclass method method2 should have 'cls' as first argument:HIGH +no-classmethod-decorator:38:4:Meta:Consider using a decorator instead of calling classmethod:HIGH +bad-mcs-classmethod-argument:40:4:Meta.class2:Metaclass class method class2 should have 'cls' as first argument:HIGH +no-classmethod-decorator:42:4:Meta:Consider using a decorator instead of calling classmethod:HIGH diff --git a/tests/functional/f/fixme.txt b/tests/functional/f/fixme.txt index 198e08a4b4..5ca5a0a9da 100644 --- a/tests/functional/f/fixme.txt +++ b/tests/functional/f/fixme.txt @@ -1,9 +1,9 @@ -fixme:5:1::"FIXME: beep" -fixme:11:20::"FIXME: Valid test" -fixme:14:5::"TODO: Do something with the variables" -fixme:16:18::"XXX: Fix this later" -fixme:18:5::"FIXME: no space after hash" -fixme:20:5::"todo: no space after hash" -fixme:23:2::"FIXME: this is broken" -fixme:25:5::"./TODO: find with notes" -fixme:27:5::"TO make something DO: find with regex" +fixme:5:1::"FIXME: beep":HIGH +fixme:11:20::"FIXME: Valid test":HIGH +fixme:14:5::"TODO: Do something with the variables":HIGH +fixme:16:18::"XXX: Fix this later":HIGH +fixme:18:5::"FIXME: no space after hash":HIGH +fixme:20:5::"todo: no space after hash":HIGH +fixme:23:2::"FIXME: this is broken":HIGH +fixme:25:5::"./TODO: find with notes":HIGH +fixme:27:5::"TO make something DO: find with regex":HIGH diff --git a/tests/functional/f/fixme_bad_formatting_1139.txt b/tests/functional/f/fixme_bad_formatting_1139.txt index 4da0264f2f..a391e721c4 100644 --- a/tests/functional/f/fixme_bad_formatting_1139.txt +++ b/tests/functional/f/fixme_bad_formatting_1139.txt @@ -1 +1 @@ -fixme:6:1::TODO Lorem ipsum dolor sit amet consectetur adipiscing elit # [fixme] +fixme:6:1::TODO Lorem ipsum dolor sit amet consectetur adipiscing elit # [fixme]:HIGH diff --git a/tests/functional/f/forgotten_debug_statement_py37.txt b/tests/functional/f/forgotten_debug_statement_py37.txt index 40e8914a67..2d769f3ffd 100644 --- a/tests/functional/f/forgotten_debug_statement_py37.txt +++ b/tests/functional/f/forgotten_debug_statement_py37.txt @@ -1,4 +1,4 @@ -forgotten-debug-statement:6:0::"Leaving functions creating breakpoints in production code is not recommended" -forgotten-debug-statement:7:0::"Leaving functions creating breakpoints in production code is not recommended" -forgotten-debug-statement:8:0::"Leaving functions creating breakpoints in production code is not recommended" -forgotten-debug-statement:10:0::"Leaving functions creating breakpoints in production code is not recommended" +forgotten-debug-statement:6:0::Leaving functions creating breakpoints in production code is not recommended:HIGH +forgotten-debug-statement:7:0::Leaving functions creating breakpoints in production code is not recommended:HIGH +forgotten-debug-statement:8:0::Leaving functions creating breakpoints in production code is not recommended:HIGH +forgotten-debug-statement:10:0::Leaving functions creating breakpoints in production code is not recommended:HIGH diff --git a/tests/functional/f/func_disable_linebased.txt b/tests/functional/f/func_disable_linebased.txt index 6c64556951..4d7571cf7a 100644 --- a/tests/functional/f/func_disable_linebased.txt +++ b/tests/functional/f/func_disable_linebased.txt @@ -1,2 +1,2 @@ -line-too-long:1:0::Line too long (146/100) -line-too-long:15:0::Line too long (133/100) +line-too-long:1:0::Line too long (146/100):HIGH +line-too-long:15:0::Line too long (133/100):HIGH diff --git a/tests/functional/f/future_unicode_literals.txt b/tests/functional/f/future_unicode_literals.txt index 3956b69f9d..181e8e5c13 100644 --- a/tests/functional/f/future_unicode_literals.txt +++ b/tests/functional/f/future_unicode_literals.txt @@ -1 +1 @@ -anomalous-unicode-escape-in-string:5:15::"Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix." +anomalous-unicode-escape-in-string:5:15::"Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix.":HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_collections.txt b/tests/functional/g/generic_alias/generic_alias_collections.txt index d9ce1f4432..d70d9a43b5 100644 --- a/tests/functional/g/generic_alias/generic_alias_collections.txt +++ b/tests/functional/g/generic_alias/generic_alias_collections.txt @@ -1,16 +1,16 @@ -unsubscriptable-object:66:0::Value 'collections.abc.Hashable' is unsubscriptable -unsubscriptable-object:67:0::Value 'collections.abc.Sized' is unsubscriptable -abstract-method:74:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden -abstract-method:77:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:80:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden -abstract-method:80:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:80:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:99:0:DerivedMultiple:Method '__hash__' is abstract in class 'Hashable' but is not overridden -abstract-method:99:0:DerivedMultiple:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:104:0:CustomAbstractCls2:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:104:0:CustomAbstractCls2:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:106:0:CustomImplementation:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:106:0:CustomImplementation:Method '__len__' is abstract in class 'Sized' but is not overridden -unsubscriptable-object:125:9::Value 'int' is unsubscriptable -unsubscriptable-object:126:15::Value 'collections.abc.Hashable' is unsubscriptable -unsubscriptable-object:127:12::Value 'collections.abc.Sized' is unsubscriptable +unsubscriptable-object:66:0::Value 'collections.abc.Hashable' is unsubscriptable:HIGH +unsubscriptable-object:67:0::Value 'collections.abc.Sized' is unsubscriptable:HIGH +abstract-method:74:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden:HIGH +abstract-method:77:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:80:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden:HIGH +abstract-method:80:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:80:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:99:0:DerivedMultiple:Method '__hash__' is abstract in class 'Hashable' but is not overridden:HIGH +abstract-method:99:0:DerivedMultiple:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:104:0:CustomAbstractCls2:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:104:0:CustomAbstractCls2:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:106:0:CustomImplementation:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:106:0:CustomImplementation:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +unsubscriptable-object:125:9::Value 'int' is unsubscriptable:HIGH +unsubscriptable-object:126:15::Value 'collections.abc.Hashable' is unsubscriptable:HIGH +unsubscriptable-object:127:12::Value 'collections.abc.Sized' is unsubscriptable:HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_mixed_py39.txt b/tests/functional/g/generic_alias/generic_alias_mixed_py39.txt index 2247c127f2..e92d73ac6c 100644 --- a/tests/functional/g/generic_alias/generic_alias_mixed_py39.txt +++ b/tests/functional/g/generic_alias/generic_alias_mixed_py39.txt @@ -1,5 +1,5 @@ -abstract-method:29:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden -abstract-method:32:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:35:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden -abstract-method:35:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:35:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden +abstract-method:29:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden:HIGH +abstract-method:32:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:35:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden:HIGH +abstract-method:35:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:35:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_related.txt b/tests/functional/g/generic_alias/generic_alias_related.txt index b10f66f304..0770907502 100644 --- a/tests/functional/g/generic_alias/generic_alias_related.txt +++ b/tests/functional/g/generic_alias/generic_alias_related.txt @@ -1,5 +1,5 @@ -unsubscriptable-object:34:0::Value 'ClsUnsubscriptable()' is unsubscriptable -unsubscriptable-object:35:0::Value 'ClsUnsubscriptable' is unsubscriptable -unsubscriptable-object:38:0::Value 'ClsGetItem' is unsubscriptable -unsubscriptable-object:40:0::Value 'ClsClassGetItem()' is unsubscriptable -abstract-method:53:0:Derived:Method 'abstract_method' is abstract in class 'ClsAbstract' but is not overridden +unsubscriptable-object:34:0::Value 'ClsUnsubscriptable()' is unsubscriptable:HIGH +unsubscriptable-object:35:0::Value 'ClsUnsubscriptable' is unsubscriptable:HIGH +unsubscriptable-object:38:0::Value 'ClsGetItem' is unsubscriptable:HIGH +unsubscriptable-object:40:0::Value 'ClsClassGetItem()' is unsubscriptable:HIGH +abstract-method:53:0:Derived:Method 'abstract_method' is abstract in class 'ClsAbstract' but is not overridden:HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_related_py39.txt b/tests/functional/g/generic_alias/generic_alias_related_py39.txt index be51879d61..76c4e976af 100644 --- a/tests/functional/g/generic_alias/generic_alias_related_py39.txt +++ b/tests/functional/g/generic_alias/generic_alias_related_py39.txt @@ -1,5 +1,5 @@ -unsubscriptable-object:36:0::Value 'ClsUnsubscriptable()' is unsubscriptable -unsubscriptable-object:37:0::Value 'ClsUnsubscriptable' is unsubscriptable -unsubscriptable-object:40:0::Value 'ClsGetItem' is unsubscriptable -unsubscriptable-object:42:0::Value 'ClsClassGetItem()' is unsubscriptable -abstract-method:55:0:Derived:Method 'abstract_method' is abstract in class 'ClsAbstract' but is not overridden +unsubscriptable-object:36:0::Value 'ClsUnsubscriptable()' is unsubscriptable:HIGH +unsubscriptable-object:37:0::Value 'ClsUnsubscriptable' is unsubscriptable:HIGH +unsubscriptable-object:40:0::Value 'ClsGetItem' is unsubscriptable:HIGH +unsubscriptable-object:42:0::Value 'ClsClassGetItem()' is unsubscriptable:HIGH +abstract-method:55:0:Derived:Method 'abstract_method' is abstract in class 'ClsAbstract' but is not overridden:HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_side_effects.txt b/tests/functional/g/generic_alias/generic_alias_side_effects.txt index bbd64c12ae..13cb2c78e5 100644 --- a/tests/functional/g/generic_alias/generic_alias_side_effects.txt +++ b/tests/functional/g/generic_alias/generic_alias_side_effects.txt @@ -1,8 +1,8 @@ -dangerous-default-value:19:0:function4:Dangerous default value set() (builtins.set) as argument -dangerous-default-value:27:0:function7:Dangerous default value dict() (builtins.dict) as argument -dangerous-default-value:31:0:function8:Dangerous default value list() (builtins.list) as argument -dangerous-default-value:35:0:function17:Dangerous default value deque() (collections.deque) as argument -dangerous-default-value:39:0:function18:Dangerous default value ChainMap() (collections.ChainMap) as argument -dangerous-default-value:43:0:function19:Dangerous default value Counter() (collections.Counter) as argument -dangerous-default-value:47:0:function20:Dangerous default value OrderedDict() (collections.OrderedDict) as argument -dangerous-default-value:51:0:function21:Dangerous default value defaultdict() (collections.defaultdict) as argument +dangerous-default-value:19:0:function4:Dangerous default value set() (builtins.set) as argument:HIGH +dangerous-default-value:27:0:function7:Dangerous default value dict() (builtins.dict) as argument:HIGH +dangerous-default-value:31:0:function8:Dangerous default value list() (builtins.list) as argument:HIGH +dangerous-default-value:35:0:function17:Dangerous default value deque() (collections.deque) as argument:HIGH +dangerous-default-value:39:0:function18:Dangerous default value ChainMap() (collections.ChainMap) as argument:HIGH +dangerous-default-value:43:0:function19:Dangerous default value Counter() (collections.Counter) as argument:HIGH +dangerous-default-value:47:0:function20:Dangerous default value OrderedDict() (collections.OrderedDict) as argument:HIGH +dangerous-default-value:51:0:function21:Dangerous default value defaultdict() (collections.defaultdict) as argument:HIGH diff --git a/tests/functional/g/generic_alias/generic_alias_typing.txt b/tests/functional/g/generic_alias/generic_alias_typing.txt index 8942ca71a2..ce36473366 100644 --- a/tests/functional/g/generic_alias/generic_alias_typing.txt +++ b/tests/functional/g/generic_alias/generic_alias_typing.txt @@ -1,19 +1,19 @@ -unsubscriptable-object:66:0::Value 'typing.ByteString' is unsubscriptable -unsubscriptable-object:67:0::Value 'typing.Hashable' is unsubscriptable -unsubscriptable-object:68:0::Value 'typing.Sized' is unsubscriptable -abstract-method:72:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden -abstract-method:75:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:78:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden -abstract-method:78:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:78:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:100:0:DerivedMultiple:Method '__hash__' is abstract in class 'Hashable' but is not overridden -abstract-method:100:0:DerivedMultiple:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:105:0:CustomAbstractCls2:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:105:0:CustomAbstractCls2:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:107:0:CustomImplementation:Method '__iter__' is abstract in class 'Iterable' but is not overridden -abstract-method:107:0:CustomImplementation:Method '__len__' is abstract in class 'Sized' but is not overridden -abstract-method:118:0:DerivedIterable2:Method '__iter__' is abstract in class 'Iterable' but is not overridden -unsubscriptable-object:138:9::Value 'int' is unsubscriptable -unsubscriptable-object:139:17::Value 'typing.ByteString' is unsubscriptable -unsubscriptable-object:140:15::Value 'typing.Hashable' is unsubscriptable -unsubscriptable-object:141:12::Value 'typing.Sized' is unsubscriptable +unsubscriptable-object:66:0::Value 'typing.ByteString' is unsubscriptable:HIGH +unsubscriptable-object:67:0::Value 'typing.Hashable' is unsubscriptable:HIGH +unsubscriptable-object:68:0::Value 'typing.Sized' is unsubscriptable:HIGH +abstract-method:72:0:DerivedHashable:Method '__hash__' is abstract in class 'Hashable' but is not overridden:HIGH +abstract-method:75:0:DerivedIterable:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:78:0:DerivedCollection:Method '__contains__' is abstract in class 'Container' but is not overridden:HIGH +abstract-method:78:0:DerivedCollection:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:78:0:DerivedCollection:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:100:0:DerivedMultiple:Method '__hash__' is abstract in class 'Hashable' but is not overridden:HIGH +abstract-method:100:0:DerivedMultiple:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:105:0:CustomAbstractCls2:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:105:0:CustomAbstractCls2:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:107:0:CustomImplementation:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +abstract-method:107:0:CustomImplementation:Method '__len__' is abstract in class 'Sized' but is not overridden:HIGH +abstract-method:118:0:DerivedIterable2:Method '__iter__' is abstract in class 'Iterable' but is not overridden:HIGH +unsubscriptable-object:138:9::Value 'int' is unsubscriptable:HIGH +unsubscriptable-object:139:17::Value 'typing.ByteString' is unsubscriptable:HIGH +unsubscriptable-object:140:15::Value 'typing.Hashable' is unsubscriptable:HIGH +unsubscriptable-object:141:12::Value 'typing.Sized' is unsubscriptable:HIGH diff --git a/tests/functional/g/genexpr_variable_scope.txt b/tests/functional/g/genexpr_variable_scope.txt index 4567d7fc9b..78b2643661 100644 --- a/tests/functional/g/genexpr_variable_scope.txt +++ b/tests/functional/g/genexpr_variable_scope.txt @@ -1 +1 @@ -undefined-variable:5:6::Undefined variable 'n' +undefined-variable:5:6::Undefined variable 'n':HIGH diff --git a/tests/functional/i/implicit/implicit_str_concat.txt b/tests/functional/i/implicit/implicit_str_concat.txt index 11cecd7779..b74b4973ba 100644 --- a/tests/functional/i/implicit/implicit_str_concat.txt +++ b/tests/functional/i/implicit/implicit_str_concat.txt @@ -1,5 +1,5 @@ -implicit-str-concat:4:0::Implicit string concatenation found in list -implicit-str-concat:6:0::Implicit string concatenation found in tuple -implicit-str-concat:8:0::Implicit string concatenation found in set -implicit-str-concat:11:0::Implicit string concatenation found in list -implicit-str-concat:27:0::Implicit string concatenation found in assignment +implicit-str-concat:4:0::Implicit string concatenation found in list:HIGH +implicit-str-concat:6:0::Implicit string concatenation found in tuple:HIGH +implicit-str-concat:8:0::Implicit string concatenation found in set:HIGH +implicit-str-concat:11:0::Implicit string concatenation found in list:HIGH +implicit-str-concat:27:0::Implicit string concatenation found in assignment:HIGH diff --git a/tests/functional/i/implicit/implicit_str_concat_multiline.txt b/tests/functional/i/implicit/implicit_str_concat_multiline.txt index c796269e42..10af8c0a19 100644 --- a/tests/functional/i/implicit/implicit_str_concat_multiline.txt +++ b/tests/functional/i/implicit/implicit_str_concat_multiline.txt @@ -1 +1 @@ -implicit-str-concat:3:0::Implicit string concatenation found in tuple +implicit-str-concat:3:0::Implicit string concatenation found in tuple:HIGH diff --git a/tests/functional/i/import_aliasing.txt b/tests/functional/i/import_aliasing.txt index 6b5e7d3607..b9a746a3b7 100644 --- a/tests/functional/i/import_aliasing.txt +++ b/tests/functional/i/import_aliasing.txt @@ -1,10 +1,10 @@ -useless-import-alias:6:0::Import alias does not rename original package -consider-using-from-import:8:0::Use 'from os import path' instead -consider-using-from-import:10:0::Use 'from foo.bar import foobar' instead -useless-import-alias:14:0::Import alias does not rename original package -useless-import-alias:17:0::Import alias does not rename original package -useless-import-alias:18:0::Import alias does not rename original package -useless-import-alias:20:0::Import alias does not rename original package -useless-import-alias:21:0::Import alias does not rename original package -useless-import-alias:23:0::Import alias does not rename original package -relative-beyond-top-level:26:0::Attempted relative import beyond top-level package +useless-import-alias:6:0::Import alias does not rename original package:HIGH +consider-using-from-import:8:0::Use 'from os import path' instead:HIGH +consider-using-from-import:10:0::Use 'from foo.bar import foobar' instead:HIGH +useless-import-alias:14:0::Import alias does not rename original package:HIGH +useless-import-alias:17:0::Import alias does not rename original package:HIGH +useless-import-alias:18:0::Import alias does not rename original package:HIGH +useless-import-alias:20:0::Import alias does not rename original package:HIGH +useless-import-alias:21:0::Import alias does not rename original package:HIGH +useless-import-alias:23:0::Import alias does not rename original package:HIGH +relative-beyond-top-level:26:0::Attempted relative import beyond top-level package:HIGH diff --git a/tests/functional/i/import_error.txt b/tests/functional/i/import_error.txt index 8a63cacc30..119b88f308 100644 --- a/tests/functional/i/import_error.txt +++ b/tests/functional/i/import_error.txt @@ -1,4 +1,4 @@ -import-error:3:0::Unable to import 'totally_missing' -import-error:21:4::Unable to import 'maybe_missing_2' -no-name-in-module:33:0::No name 'syntax_error' in module 'functional.s' -syntax-error:33:0::Cannot import 'functional.s.syntax_error' due to syntax error 'invalid syntax (, line 1)' +import-error:3:0::Unable to import 'totally_missing':HIGH +import-error:21:4::Unable to import 'maybe_missing_2':HIGH +no-name-in-module:33:0::No name 'syntax_error' in module 'functional.s':HIGH +syntax-error:33:0::Cannot import 'functional.s.syntax_error' due to syntax error 'invalid syntax (, line 1)':HIGH diff --git a/tests/functional/i/import_itself.txt b/tests/functional/i/import_itself.txt index 4dd361096f..a9fe8a2046 100644 --- a/tests/functional/i/import_itself.txt +++ b/tests/functional/i/import_itself.txt @@ -1 +1 @@ -import-self:4:0::Module import itself +import-self:4:0::Module import itself:HIGH diff --git a/tests/functional/i/import_outside_toplevel.txt b/tests/functional/i/import_outside_toplevel.txt index d4b1786ea3..4f8c3fc004 100644 --- a/tests/functional/i/import_outside_toplevel.txt +++ b/tests/functional/i/import_outside_toplevel.txt @@ -1,9 +1,9 @@ -import-outside-toplevel:10:4:f:Import outside toplevel (symtable) -import-outside-toplevel:14:4:g:Import outside toplevel (os, sys) -import-outside-toplevel:18:4:h:Import outside toplevel (time) -import-outside-toplevel:22:4:i:Import outside toplevel (random, socket) -import-outside-toplevel:26:4:C:Import outside toplevel (tokenize) -import-outside-toplevel:29:8:C.j:Import outside toplevel (turtle) -import-outside-toplevel:34:8:k:Import outside toplevel (tabnanny) -import-outside-toplevel:38:4:j:Import outside toplevel (collections.defaultdict) -import-outside-toplevel:42:4:m:Import outside toplevel (math.sin, math.cos) +import-outside-toplevel:10:4:f:Import outside toplevel (symtable):HIGH +import-outside-toplevel:14:4:g:Import outside toplevel (os, sys):HIGH +import-outside-toplevel:18:4:h:Import outside toplevel (time):HIGH +import-outside-toplevel:22:4:i:Import outside toplevel (random, socket):HIGH +import-outside-toplevel:26:4:C:Import outside toplevel (tokenize):HIGH +import-outside-toplevel:29:8:C.j:Import outside toplevel (turtle):HIGH +import-outside-toplevel:34:8:k:Import outside toplevel (tabnanny):HIGH +import-outside-toplevel:38:4:j:Import outside toplevel (collections.defaultdict):HIGH +import-outside-toplevel:42:4:m:Import outside toplevel (math.sin, math.cos):HIGH diff --git a/tests/functional/i/inconsistent/inconsistent_mro.txt b/tests/functional/i/inconsistent/inconsistent_mro.txt index a0708be85c..295f5bcb79 100644 --- a/tests/functional/i/inconsistent/inconsistent_mro.txt +++ b/tests/functional/i/inconsistent/inconsistent_mro.txt @@ -1 +1 @@ -inconsistent-mro:8:0:Inconsistent:Inconsistent method resolution order for class 'Inconsistent' +inconsistent-mro:8:0:Inconsistent:Inconsistent method resolution order for class 'Inconsistent':HIGH diff --git a/tests/functional/i/inconsistent/inconsistent_quotes.txt b/tests/functional/i/inconsistent/inconsistent_quotes.txt index 042fe85c25..d4395d5ed6 100644 --- a/tests/functional/i/inconsistent/inconsistent_quotes.txt +++ b/tests/functional/i/inconsistent/inconsistent_quotes.txt @@ -1 +1 @@ -inconsistent-quotes:7:0::Quote delimiter ' is inconsistent with the rest of the file +inconsistent-quotes:7:0::Quote delimiter ' is inconsistent with the rest of the file:HIGH diff --git a/tests/functional/i/inconsistent/inconsistent_quotes2.txt b/tests/functional/i/inconsistent/inconsistent_quotes2.txt index 0f2f77bf83..ab35c458d4 100644 --- a/tests/functional/i/inconsistent/inconsistent_quotes2.txt +++ b/tests/functional/i/inconsistent/inconsistent_quotes2.txt @@ -1 +1 @@ -inconsistent-quotes:6:0::"Quote delimiter "" is inconsistent with the rest of the file" +inconsistent-quotes:6:0::"Quote delimiter "" is inconsistent with the rest of the file":HIGH diff --git a/tests/functional/i/inconsistent/inconsistent_returns.txt b/tests/functional/i/inconsistent/inconsistent_returns.txt index d0a6dd1338..7a95c6a365 100644 --- a/tests/functional/i/inconsistent/inconsistent_returns.txt +++ b/tests/functional/i/inconsistent/inconsistent_returns.txt @@ -1,17 +1,17 @@ -inconsistent-return-statements:160:0:explicit_implicit_returns:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:164:0:empty_explicit_returns:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:169:0:explicit_implicit_returns2:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:177:0:explicit_implicit_returns3:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:185:0:returns_missing_in_catched_exceptions:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:195:0:complex_func:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:203:4:inconsistent_returns_in_nested_function.not_consistent_returns_inner:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:211:0:bug_1771_counter_example:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:229:0:bug_1772_counter_example:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:237:0:bug_1794_inner_func_in_if_counter_example_1:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:246:0:bug_1794_inner_func_in_if_counter_example_2:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:255:0:bug_1794_inner_func_in_if_counter_example_3:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:262:8:bug_1794_inner_func_in_if_counter_example_3._inner2:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:267:0:bug_3468:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:277:0:bug_3468_variant:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:322:0:bug_pylint_3873_1:Either all return statements in a function should return an expression, or none of them should. -inconsistent-return-statements:349:0:bug_pylint_4019_wrong:Either all return statements in a function should return an expression, or none of them should. +inconsistent-return-statements:160:0:explicit_implicit_returns:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:164:0:empty_explicit_returns:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:169:0:explicit_implicit_returns2:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:177:0:explicit_implicit_returns3:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:185:0:returns_missing_in_catched_exceptions:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:195:0:complex_func:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:203:4:inconsistent_returns_in_nested_function.not_consistent_returns_inner:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:211:0:bug_1771_counter_example:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:229:0:bug_1772_counter_example:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:237:0:bug_1794_inner_func_in_if_counter_example_1:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:246:0:bug_1794_inner_func_in_if_counter_example_2:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:255:0:bug_1794_inner_func_in_if_counter_example_3:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:262:8:bug_1794_inner_func_in_if_counter_example_3._inner2:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:267:0:bug_3468:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:277:0:bug_3468_variant:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:322:0:bug_pylint_3873_1:Either all return statements in a function should return an expression, or none of them should.:HIGH +inconsistent-return-statements:349:0:bug_pylint_4019_wrong:Either all return statements in a function should return an expression, or none of them should.:HIGH diff --git a/tests/functional/i/inconsistent/inconsistent_returns_noreturn.txt b/tests/functional/i/inconsistent/inconsistent_returns_noreturn.txt index 9b23552d19..1d50368842 100644 --- a/tests/functional/i/inconsistent/inconsistent_returns_noreturn.txt +++ b/tests/functional/i/inconsistent/inconsistent_returns_noreturn.txt @@ -1 +1 @@ -inconsistent-return-statements:32:0:bug_pylint_4122_wrong:Either all return statements in a function should return an expression, or none of them should. +inconsistent-return-statements:32:0:bug_pylint_4122_wrong:Either all return statements in a function should return an expression, or none of them should.:HIGH diff --git a/tests/functional/i/inherit_non_class.txt b/tests/functional/i/inherit_non_class.txt index 9252c2fbf4..40266532d5 100644 --- a/tests/functional/i/inherit_non_class.txt +++ b/tests/functional/i/inherit_non_class.txt @@ -1,9 +1,9 @@ -inherit-non-class:21:0:Bad:Inheriting '1', which is not a class. -inherit-non-class:24:0:Bad1:"Inheriting 'lambda abc: 42', which is not a class." -inherit-non-class:27:0:Bad2:Inheriting 'object()', which is not a class. -inherit-non-class:30:0:Bad3:Inheriting 'return_class', which is not a class. -inherit-non-class:33:0:Bad4:Inheriting 'Empty()', which is not a class. -inherit-non-class:68:0:NotInheritableBool:Inheriting 'bool', which is not a class. -inherit-non-class:72:0:NotInheritableRange:Inheriting 'range', which is not a class. -inherit-non-class:76:0:NotInheritableSlice:Inheriting 'slice', which is not a class. -inherit-non-class:80:0:NotInheritableMemoryView:Inheriting 'memoryview', which is not a class. +inherit-non-class:21:0:Bad:Inheriting '1', which is not a class.:HIGH +inherit-non-class:24:0:Bad1:"Inheriting 'lambda abc: 42', which is not a class.":HIGH +inherit-non-class:27:0:Bad2:Inheriting 'object()', which is not a class.:HIGH +inherit-non-class:30:0:Bad3:Inheriting 'return_class', which is not a class.:HIGH +inherit-non-class:33:0:Bad4:Inheriting 'Empty()', which is not a class.:HIGH +inherit-non-class:68:0:NotInheritableBool:Inheriting 'bool', which is not a class.:HIGH +inherit-non-class:72:0:NotInheritableRange:Inheriting 'range', which is not a class.:HIGH +inherit-non-class:76:0:NotInheritableSlice:Inheriting 'slice', which is not a class.:HIGH +inherit-non-class:80:0:NotInheritableMemoryView:Inheriting 'memoryview', which is not a class.:HIGH diff --git a/tests/functional/i/init_is_generator.txt b/tests/functional/i/init_is_generator.txt index b341a07a82..c6d23b456f 100644 --- a/tests/functional/i/init_is_generator.txt +++ b/tests/functional/i/init_is_generator.txt @@ -1 +1 @@ -init-is-generator:4:4:SomeClass.__init__:__init__ method is a generator +init-is-generator:4:4:SomeClass.__init__:__init__ method is a generator:HIGH diff --git a/tests/functional/i/init_not_called.txt b/tests/functional/i/init_not_called.txt index 332f1db674..58e4352cd7 100644 --- a/tests/functional/i/init_not_called.txt +++ b/tests/functional/i/init_not_called.txt @@ -1,2 +1,2 @@ -super-init-not-called:25:4:ZZZZ.__init__:__init__ method from base class 'BBBB' is not called -super-init-not-called:58:4:AssignedInit.__init__:__init__ method from base class 'NewStyleC' is not called +super-init-not-called:25:4:ZZZZ.__init__:__init__ method from base class 'BBBB' is not called:HIGH +super-init-not-called:58:4:AssignedInit.__init__:__init__ method from base class 'NewStyleC' is not called:HIGH diff --git a/tests/functional/i/invalid/b/invalid_bool_returned.txt b/tests/functional/i/invalid/b/invalid_bool_returned.txt index 9af5b182cb..a969434d2e 100644 --- a/tests/functional/i/invalid/b/invalid_bool_returned.txt +++ b/tests/functional/i/invalid/b/invalid_bool_returned.txt @@ -1,3 +1,3 @@ -invalid-bool-returned:36:4:FirstBadBool.__bool__:__bool__ does not return bool -invalid-bool-returned:43:4:SecondBadBool.__bool__:__bool__ does not return bool -invalid-bool-returned:50:4:ThirdBadBool.__bool__:__bool__ does not return bool +invalid-bool-returned:36:4:FirstBadBool.__bool__:__bool__ does not return bool:HIGH +invalid-bool-returned:43:4:SecondBadBool.__bool__:__bool__ does not return bool:HIGH +invalid-bool-returned:50:4:ThirdBadBool.__bool__:__bool__ does not return bool:HIGH diff --git a/tests/functional/i/invalid/b/invalid_bytes_returned.txt b/tests/functional/i/invalid/b/invalid_bytes_returned.txt index 63440cbbc8..74503e8db1 100644 --- a/tests/functional/i/invalid/b/invalid_bytes_returned.txt +++ b/tests/functional/i/invalid/b/invalid_bytes_returned.txt @@ -1,3 +1,3 @@ -invalid-bytes-returned:36:4:FirstBadBytes.__bytes__:__bytes__ does not return bytes -invalid-bytes-returned:43:4:SecondBadBytes.__bytes__:__bytes__ does not return bytes -invalid-bytes-returned:50:4:ThirdBadBytes.__bytes__:__bytes__ does not return bytes +invalid-bytes-returned:36:4:FirstBadBytes.__bytes__:__bytes__ does not return bytes:HIGH +invalid-bytes-returned:43:4:SecondBadBytes.__bytes__:__bytes__ does not return bytes:HIGH +invalid-bytes-returned:50:4:ThirdBadBytes.__bytes__:__bytes__ does not return bytes:HIGH diff --git a/tests/functional/i/invalid/e/invalid_envvar_value.txt b/tests/functional/i/invalid/e/invalid_envvar_value.txt index cec352b61e..3ecfee379c 100644 --- a/tests/functional/i/invalid/e/invalid_envvar_value.txt +++ b/tests/functional/i/invalid/e/invalid_envvar_value.txt @@ -1,31 +1,31 @@ -invalid-envvar-value:30:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:32:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-value:33:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:34:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:35:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:36:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:37:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-value:41:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:43:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-value:44:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:45:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:46:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:47:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-value:50:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:52:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-value:53:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:54:0::os.getenv does not support builtins.bytes type argument -invalid-envvar-value:55:0::os.getenv does not support builtins.list type argument -invalid-envvar-value:56:0::os.getenv does not support builtins.NoneType type argument -invalid-envvar-default:60:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:62:0::os.getenv default type is builtins.bytes. Expected str or None. -invalid-envvar-default:63:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:66:0::os.getenv default type is builtins.bytes. Expected str or None. -invalid-envvar-default:69:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:71:0::os.getenv default type is builtins.bytes. Expected str or None. -invalid-envvar-default:72:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:75:0::os.getenv default type is builtins.bytes. Expected str or None. -invalid-envvar-default:79:0::os.getenv default type is builtins.bytes. Expected str or None. -invalid-envvar-default:80:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:81:0::os.getenv default type is builtins.list. Expected str or None. -invalid-envvar-default:84:0::os.getenv default type is builtins.bytes. Expected str or None. +invalid-envvar-value:30:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:32:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-value:33:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:34:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:35:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:36:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:37:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-value:41:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:43:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-value:44:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:45:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:46:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:47:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-value:50:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:52:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-value:53:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:54:0::os.getenv does not support builtins.bytes type argument:HIGH +invalid-envvar-value:55:0::os.getenv does not support builtins.list type argument:HIGH +invalid-envvar-value:56:0::os.getenv does not support builtins.NoneType type argument:HIGH +invalid-envvar-default:60:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:62:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH +invalid-envvar-default:63:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:66:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH +invalid-envvar-default:69:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:71:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH +invalid-envvar-default:72:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:75:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH +invalid-envvar-default:79:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH +invalid-envvar-default:80:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:81:0::os.getenv default type is builtins.list. Expected str or None.:HIGH +invalid-envvar-default:84:0::os.getenv default type is builtins.bytes. Expected str or None.:HIGH diff --git a/tests/functional/i/invalid/e/invalid_exceptions_caught.txt b/tests/functional/i/invalid/e/invalid_exceptions_caught.txt index 4beed611c3..d122a6560e 100644 --- a/tests/functional/i/invalid/e/invalid_exceptions_caught.txt +++ b/tests/functional/i/invalid/e/invalid_exceptions_caught.txt @@ -1,12 +1,12 @@ -catching-non-exception:27:7::"Catching an exception which doesn't inherit from Exception: MyException" -catching-non-exception:33:7::"Catching an exception which doesn't inherit from Exception: MyException" -catching-non-exception:33:7::"Catching an exception which doesn't inherit from Exception: MySecondException" -catching-non-exception:54:7::"Catching an exception which doesn't inherit from Exception: None" -catching-non-exception:54:7::"Catching an exception which doesn't inherit from Exception: list()" -catching-non-exception:59:7::"Catching an exception which doesn't inherit from Exception: None" -catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: 4" -catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: None" -catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: list([4, 5, 6])" -catching-non-exception:85:7::"Catching an exception which doesn't inherit from Exception: NON_EXCEPTION_TUPLE" -catching-non-exception:103:7::"Catching an exception which doesn't inherit from Exception: object" -catching-non-exception:108:7::"Catching an exception which doesn't inherit from Exception: range" +catching-non-exception:27:7::"Catching an exception which doesn't inherit from Exception: MyException":HIGH +catching-non-exception:33:7::"Catching an exception which doesn't inherit from Exception: MyException":HIGH +catching-non-exception:33:7::"Catching an exception which doesn't inherit from Exception: MySecondException":HIGH +catching-non-exception:54:7::"Catching an exception which doesn't inherit from Exception: None":HIGH +catching-non-exception:54:7::"Catching an exception which doesn't inherit from Exception: list()":HIGH +catching-non-exception:59:7::"Catching an exception which doesn't inherit from Exception: None":HIGH +catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: 4":HIGH +catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: None":HIGH +catching-non-exception:72:7::"Catching an exception which doesn't inherit from Exception: list([4, 5, 6])":HIGH +catching-non-exception:85:7::"Catching an exception which doesn't inherit from Exception: NON_EXCEPTION_TUPLE":HIGH +catching-non-exception:103:7::"Catching an exception which doesn't inherit from Exception: object":HIGH +catching-non-exception:108:7::"Catching an exception which doesn't inherit from Exception: range":HIGH diff --git a/tests/functional/i/invalid/e/invalid_exceptions_raised.txt b/tests/functional/i/invalid/e/invalid_exceptions_raised.txt index c857eab77b..0ee8401ff8 100644 --- a/tests/functional/i/invalid/e/invalid_exceptions_raised.txt +++ b/tests/functional/i/invalid/e/invalid_exceptions_raised.txt @@ -1,11 +1,11 @@ -raising-non-exception:38:4:bad_case0:Raising a new style class which doesn't inherit from BaseException -raising-non-exception:42:4:bad_case1:Raising a new style class which doesn't inherit from BaseException -raising-non-exception:48:4:bad_case2:Raising a new style class which doesn't inherit from BaseException -raising-non-exception:52:4:bad_case3:Raising a new style class which doesn't inherit from BaseException -notimplemented-raised:56:4:bad_case4:NotImplemented raised - should raise NotImplementedError -raising-bad-type:60:4:bad_case5:Raising int while only classes or instances are allowed -raising-bad-type:64:4:bad_case6:Raising NoneType while only classes or instances are allowed -raising-non-exception:68:4:bad_case7:Raising a new style class which doesn't inherit from BaseException -raising-non-exception:72:4:bad_case8:Raising a new style class which doesn't inherit from BaseException -raising-non-exception:76:4:bad_case9:Raising a new style class which doesn't inherit from BaseException -raising-bad-type:110:4:bad_case10:Raising str while only classes or instances are allowed +raising-non-exception:38:4:bad_case0:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-non-exception:42:4:bad_case1:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-non-exception:48:4:bad_case2:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-non-exception:52:4:bad_case3:Raising a new style class which doesn't inherit from BaseException:HIGH +notimplemented-raised:56:4:bad_case4:NotImplemented raised - should raise NotImplementedError:HIGH +raising-bad-type:60:4:bad_case5:Raising int while only classes or instances are allowed:HIGH +raising-bad-type:64:4:bad_case6:Raising NoneType while only classes or instances are allowed:HIGH +raising-non-exception:68:4:bad_case7:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-non-exception:72:4:bad_case8:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-non-exception:76:4:bad_case9:Raising a new style class which doesn't inherit from BaseException:HIGH +raising-bad-type:110:4:bad_case10:Raising str while only classes or instances are allowed:HIGH diff --git a/tests/functional/i/invalid/g/invalid_getnewargs_ex_returned.txt b/tests/functional/i/invalid/g/invalid_getnewargs_ex_returned.txt index ea8c1703fb..a2dd51ad92 100644 --- a/tests/functional/i/invalid/g/invalid_getnewargs_ex_returned.txt +++ b/tests/functional/i/invalid/g/invalid_getnewargs_ex_returned.txt @@ -1,6 +1,6 @@ -invalid-getnewargs-ex-returned:36:4:FirstBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) -invalid-getnewargs-ex-returned:43:4:SecondBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) -invalid-getnewargs-ex-returned:50:4:ThirdBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) -invalid-getnewargs-ex-returned:57:4:FourthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) -invalid-getnewargs-ex-returned:64:4:FifthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) -invalid-getnewargs-ex-returned:71:4:SixthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict) +invalid-getnewargs-ex-returned:36:4:FirstBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH +invalid-getnewargs-ex-returned:43:4:SecondBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH +invalid-getnewargs-ex-returned:50:4:ThirdBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH +invalid-getnewargs-ex-returned:57:4:FourthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH +invalid-getnewargs-ex-returned:64:4:FifthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH +invalid-getnewargs-ex-returned:71:4:SixthBadGetNewArgsEx.__getnewargs_ex__:__getnewargs_ex__ does not return a tuple containing (tuple, dict):HIGH diff --git a/tests/functional/i/invalid/g/invalid_getnewargs_returned.txt b/tests/functional/i/invalid/g/invalid_getnewargs_returned.txt index 3560a80f95..026deebb62 100644 --- a/tests/functional/i/invalid/g/invalid_getnewargs_returned.txt +++ b/tests/functional/i/invalid/g/invalid_getnewargs_returned.txt @@ -1,3 +1,3 @@ -invalid-getnewargs-returned:36:4:FirstBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple -invalid-getnewargs-returned:43:4:SecondBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple -invalid-getnewargs-returned:50:4:ThirdBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple +invalid-getnewargs-returned:36:4:FirstBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple:HIGH +invalid-getnewargs-returned:43:4:SecondBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple:HIGH +invalid-getnewargs-returned:50:4:ThirdBadGetNewArgs.__getnewargs__:__getnewargs__ does not return a tuple:HIGH diff --git a/tests/functional/i/invalid/invalid_all_object.txt b/tests/functional/i/invalid/invalid_all_object.txt index ebcdb8d355..fa84fd1aa1 100644 --- a/tests/functional/i/invalid/invalid_all_object.txt +++ b/tests/functional/i/invalid/invalid_all_object.txt @@ -1,3 +1,3 @@ -invalid-all-object:3:4::Invalid object '1' in __all__, must contain only strings -invalid-all-object:4:4::"Invalid object 'lambda: None' in __all__, must contain only strings" -invalid-all-object:5:4::Invalid object 'None' in __all__, must contain only strings +invalid-all-object:3:4::Invalid object '1' in __all__, must contain only strings:HIGH +invalid-all-object:4:4::"Invalid object 'lambda: None' in __all__, must contain only strings":HIGH +invalid-all-object:5:4::Invalid object 'None' in __all__, must contain only strings:HIGH diff --git a/tests/functional/i/invalid/invalid_class_object.txt b/tests/functional/i/invalid/invalid_class_object.txt index 0c09dd3341..59046f7e92 100644 --- a/tests/functional/i/invalid/invalid_class_object.txt +++ b/tests/functional/i/invalid/invalid_class_object.txt @@ -1,2 +1,2 @@ -invalid-class-object:17:0::Invalid __class__ object -invalid-class-object:18:0::Invalid __class__ object +invalid-class-object:17:0::Invalid __class__ object:HIGH +invalid-class-object:18:0::Invalid __class__ object:HIGH diff --git a/tests/functional/i/invalid/invalid_format_returned.txt b/tests/functional/i/invalid/invalid_format_returned.txt index 3a3e1ae67b..00b137dcd2 100644 --- a/tests/functional/i/invalid/invalid_format_returned.txt +++ b/tests/functional/i/invalid/invalid_format_returned.txt @@ -1,3 +1,3 @@ -invalid-format-returned:36:4:FirstBadFormat.__format__:__format__ does not return str -invalid-format-returned:43:4:SecondBadFormat.__format__:__format__ does not return str -invalid-format-returned:50:4:ThirdBadFormat.__format__:__format__ does not return str +invalid-format-returned:36:4:FirstBadFormat.__format__:__format__ does not return str:HIGH +invalid-format-returned:43:4:SecondBadFormat.__format__:__format__ does not return str:HIGH +invalid-format-returned:50:4:ThirdBadFormat.__format__:__format__ does not return str:HIGH diff --git a/tests/functional/i/invalid/invalid_hash_returned.txt b/tests/functional/i/invalid/invalid_hash_returned.txt index f30e514170..dc5d34d62a 100644 --- a/tests/functional/i/invalid/invalid_hash_returned.txt +++ b/tests/functional/i/invalid/invalid_hash_returned.txt @@ -1,4 +1,4 @@ -invalid-hash-returned:36:4:FirstBadHash.__hash__:__hash__ does not return int -invalid-hash-returned:43:4:SecondBadHash.__hash__:__hash__ does not return int -invalid-hash-returned:50:4:ThirdBadHash.__hash__:__hash__ does not return int -invalid-hash-returned:57:4:FourthBadHash.__hash__:__hash__ does not return int +invalid-hash-returned:36:4:FirstBadHash.__hash__:__hash__ does not return int:HIGH +invalid-hash-returned:43:4:SecondBadHash.__hash__:__hash__ does not return int:HIGH +invalid-hash-returned:50:4:ThirdBadHash.__hash__:__hash__ does not return int:HIGH +invalid-hash-returned:57:4:FourthBadHash.__hash__:__hash__ does not return int:HIGH diff --git a/tests/functional/i/invalid/invalid_index_returned.txt b/tests/functional/i/invalid/invalid_index_returned.txt index 840d74a917..ae88c1c65a 100644 --- a/tests/functional/i/invalid/invalid_index_returned.txt +++ b/tests/functional/i/invalid/invalid_index_returned.txt @@ -1,4 +1,4 @@ -invalid-index-returned:36:4:FirstBadIndex.__index__:__index__ does not return int -invalid-index-returned:43:4:SecondBadIndex.__index__:__index__ does not return int -invalid-index-returned:50:4:ThirdBadIndex.__index__:__index__ does not return int -invalid-index-returned:57:4:FourthBadIndex.__index__:__index__ does not return int +invalid-index-returned:36:4:FirstBadIndex.__index__:__index__ does not return int:HIGH +invalid-index-returned:43:4:SecondBadIndex.__index__:__index__ does not return int:HIGH +invalid-index-returned:50:4:ThirdBadIndex.__index__:__index__ does not return int:HIGH +invalid-index-returned:57:4:FourthBadIndex.__index__:__index__ does not return int:HIGH diff --git a/tests/functional/i/invalid/invalid_overridden_method.txt b/tests/functional/i/invalid/invalid_overridden_method.txt index 8e09d98839..e3701497be 100644 --- a/tests/functional/i/invalid/invalid_overridden_method.txt +++ b/tests/functional/i/invalid/invalid_overridden_method.txt @@ -1,6 +1,6 @@ -invalid-overridden-method:38:4:InvalidDerived.prop:Method 'prop' was expected to be 'property', found it instead as 'method' -invalid-overridden-method:41:4:InvalidDerived.async_method:Method 'async_method' was expected to be 'async', found it instead as 'non-async' -invalid-overridden-method:45:4:InvalidDerived.method_a:Method 'method_a' was expected to be 'method', found it instead as 'property' -invalid-overridden-method:48:4:InvalidDerived.method_b:Method 'method_b' was expected to be 'non-async', found it instead as 'async' -invalid-overridden-method:122:4:B.bar:Method 'bar' was expected to be 'property', found it instead as 'method' -invalid-overridden-method:126:4:B.bar2:Method 'bar2' was expected to be 'property', found it instead as 'method' +invalid-overridden-method:38:4:InvalidDerived.prop:Method 'prop' was expected to be 'property', found it instead as 'method':HIGH +invalid-overridden-method:41:4:InvalidDerived.async_method:Method 'async_method' was expected to be 'async', found it instead as 'non-async':HIGH +invalid-overridden-method:45:4:InvalidDerived.method_a:Method 'method_a' was expected to be 'method', found it instead as 'property':HIGH +invalid-overridden-method:48:4:InvalidDerived.method_b:Method 'method_b' was expected to be 'non-async', found it instead as 'async':HIGH +invalid-overridden-method:122:4:B.bar:Method 'bar' was expected to be 'property', found it instead as 'method':HIGH +invalid-overridden-method:126:4:B.bar2:Method 'bar2' was expected to be 'property', found it instead as 'method':HIGH diff --git a/tests/functional/i/invalid/invalid_repr_returned.txt b/tests/functional/i/invalid/invalid_repr_returned.txt index 4be375f1f2..7b09446037 100644 --- a/tests/functional/i/invalid/invalid_repr_returned.txt +++ b/tests/functional/i/invalid/invalid_repr_returned.txt @@ -1,3 +1,3 @@ -invalid-repr-returned:36:4:FirstBadRepr.__repr__:__repr__ does not return str -invalid-repr-returned:43:4:SecondBadRepr.__repr__:__repr__ does not return str -invalid-repr-returned:50:4:ThirdBadRepr.__repr__:__repr__ does not return str +invalid-repr-returned:36:4:FirstBadRepr.__repr__:__repr__ does not return str:HIGH +invalid-repr-returned:43:4:SecondBadRepr.__repr__:__repr__ does not return str:HIGH +invalid-repr-returned:50:4:ThirdBadRepr.__repr__:__repr__ does not return str:HIGH diff --git a/tests/functional/i/invalid/invalid_unary_operand_type.txt b/tests/functional/i/invalid/invalid_unary_operand_type.txt index 6a3dd591d0..3d9213a5e1 100644 --- a/tests/functional/i/invalid/invalid_unary_operand_type.txt +++ b/tests/functional/i/invalid/invalid_unary_operand_type.txt @@ -1,14 +1,14 @@ -invalid-unary-operand-type:36:18:these_are_bad:"bad operand type for unary ~: list" -invalid-unary-operand-type:37:19:these_are_bad:"bad operand type for unary ~: tuple" -invalid-unary-operand-type:38:18:these_are_bad:"bad operand type for unary ~: dict" -invalid-unary-operand-type:39:20:these_are_bad:"bad operand type for unary ~: dict" -invalid-unary-operand-type:40:17:these_are_bad:"bad operand type for unary ~: set" -invalid-unary-operand-type:41:14:these_are_bad:"bad operand type for unary -: set" -invalid-unary-operand-type:42:14:these_are_bad:"bad operand type for unary -: str" -invalid-unary-operand-type:43:17:these_are_bad:"bad operand type for unary ~: str" -invalid-unary-operand-type:44:14:these_are_bad:"bad operand type for unary +: str" -invalid-unary-operand-type:47:18:these_are_bad:"bad operand type for unary ~: " -invalid-unary-operand-type:48:19:these_are_bad:"bad operand type for unary ~: A" -invalid-unary-operand-type:49:22:these_are_bad:"bad operand type for unary ~: A" -invalid-unary-operand-type:50:20:these_are_bad:"bad operand type for unary ~: collections" -invalid-unary-operand-type:51:19:these_are_bad:"bad operand type for unary ~: float" +invalid-unary-operand-type:36:18:these_are_bad:"bad operand type for unary ~: list":HIGH +invalid-unary-operand-type:37:19:these_are_bad:"bad operand type for unary ~: tuple":HIGH +invalid-unary-operand-type:38:18:these_are_bad:"bad operand type for unary ~: dict":HIGH +invalid-unary-operand-type:39:20:these_are_bad:"bad operand type for unary ~: dict":HIGH +invalid-unary-operand-type:40:17:these_are_bad:"bad operand type for unary ~: set":HIGH +invalid-unary-operand-type:41:14:these_are_bad:"bad operand type for unary -: set":HIGH +invalid-unary-operand-type:42:14:these_are_bad:"bad operand type for unary -: str":HIGH +invalid-unary-operand-type:43:17:these_are_bad:"bad operand type for unary ~: str":HIGH +invalid-unary-operand-type:44:14:these_are_bad:"bad operand type for unary +: str":HIGH +invalid-unary-operand-type:47:18:these_are_bad:"bad operand type for unary ~: ":HIGH +invalid-unary-operand-type:48:19:these_are_bad:"bad operand type for unary ~: A":HIGH +invalid-unary-operand-type:49:22:these_are_bad:"bad operand type for unary ~: A":HIGH +invalid-unary-operand-type:50:20:these_are_bad:"bad operand type for unary ~: collections":HIGH +invalid-unary-operand-type:51:19:these_are_bad:"bad operand type for unary ~: float":HIGH diff --git a/tests/functional/i/invalid/l/invalid_length_hint_returned.txt b/tests/functional/i/invalid/l/invalid_length_hint_returned.txt index dd31af76e9..79ea95f29f 100644 --- a/tests/functional/i/invalid/l/invalid_length_hint_returned.txt +++ b/tests/functional/i/invalid/l/invalid_length_hint_returned.txt @@ -1,3 +1,3 @@ -invalid-length-hint-returned:38:4:FirstBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer -invalid-length-hint-returned:45:4:SecondBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer -invalid-length-hint-returned:52:4:ThirdBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer +invalid-length-hint-returned:38:4:FirstBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer:HIGH +invalid-length-hint-returned:45:4:SecondBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer:HIGH +invalid-length-hint-returned:52:4:ThirdBadLengthHint.__length_hint__:__length_hint__ does not return non-negative integer:HIGH diff --git a/tests/functional/i/invalid/l/invalid_length_returned.txt b/tests/functional/i/invalid/l/invalid_length_returned.txt index 27b86cd13e..852b46df36 100644 --- a/tests/functional/i/invalid/l/invalid_length_returned.txt +++ b/tests/functional/i/invalid/l/invalid_length_returned.txt @@ -1,4 +1,4 @@ -invalid-length-returned:38:4:FirstBadLen.__len__:__len__ does not return non-negative integer -invalid-length-returned:45:4:SecondBadLen.__len__:__len__ does not return non-negative integer -invalid-length-returned:52:4:ThirdBadLen.__len__:__len__ does not return non-negative integer -invalid-length-returned:59:4:NonRegression.__len__:__len__ does not return non-negative integer +invalid-length-returned:38:4:FirstBadLen.__len__:__len__ does not return non-negative integer:HIGH +invalid-length-returned:45:4:SecondBadLen.__len__:__len__ does not return non-negative integer:HIGH +invalid-length-returned:52:4:ThirdBadLen.__len__:__len__ does not return non-negative integer:HIGH +invalid-length-returned:59:4:NonRegression.__len__:__len__ does not return non-negative integer:HIGH diff --git a/tests/functional/i/invalid/s/invalid_sequence_index.txt b/tests/functional/i/invalid/s/invalid_sequence_index.txt index baf1b2167b..7c2615e9c6 100644 --- a/tests/functional/i/invalid/s/invalid_sequence_index.txt +++ b/tests/functional/i/invalid/s/invalid_sequence_index.txt @@ -1,19 +1,19 @@ -invalid-sequence-index:13:11:function1:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:17:11:function2:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:21:11:function3:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:25:11:function4:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:33:11:function5:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:37:11:function6:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:41:11:function7:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:48:11:function8:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:128:4:function19:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:133:8:function20:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:144:4:function21:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:145:8:function21:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:160:4:function22:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:162:8:function22:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:178:4:function23:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:180:4:function23:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:196:4:function24:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:198:8:function24:Sequence index is not an int, slice, or instance with __index__ -invalid-sequence-index:208:11:function25:Sequence index is not an int, slice, or instance with __index__ +invalid-sequence-index:13:11:function1:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:17:11:function2:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:21:11:function3:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:25:11:function4:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:33:11:function5:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:37:11:function6:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:41:11:function7:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:48:11:function8:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:128:4:function19:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:133:8:function20:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:144:4:function21:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:145:8:function21:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:160:4:function22:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:162:8:function22:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:178:4:function23:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:180:4:function23:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:196:4:function24:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:198:8:function24:Sequence index is not an int, slice, or instance with __index__:HIGH +invalid-sequence-index:208:11:function25:Sequence index is not an int, slice, or instance with __index__:HIGH diff --git a/tests/functional/i/invalid/s/invalid_slice_index.txt b/tests/functional/i/invalid/s/invalid_slice_index.txt index e715138b4c..43892fc2c2 100644 --- a/tests/functional/i/invalid/s/invalid_slice_index.txt +++ b/tests/functional/i/invalid/s/invalid_slice_index.txt @@ -1,5 +1,5 @@ -invalid-slice-index:10:0:function1:Slice index is not an int, None, or instance with __index__ -invalid-slice-index:10:0:function1:Slice index is not an int, None, or instance with __index__ -invalid-slice-index:14:0:function2:Slice index is not an int, None, or instance with __index__ -invalid-slice-index:14:0:function2:Slice index is not an int, None, or instance with __index__ -invalid-slice-index:23:0:function3:Slice index is not an int, None, or instance with __index__ +invalid-slice-index:10:0:function1:Slice index is not an int, None, or instance with __index__:HIGH +invalid-slice-index:10:0:function1:Slice index is not an int, None, or instance with __index__:HIGH +invalid-slice-index:14:0:function2:Slice index is not an int, None, or instance with __index__:HIGH +invalid-slice-index:14:0:function2:Slice index is not an int, None, or instance with __index__:HIGH +invalid-slice-index:23:0:function3:Slice index is not an int, None, or instance with __index__:HIGH diff --git a/tests/functional/i/invalid/s/invalid_star_assignment_target.txt b/tests/functional/i/invalid/s/invalid_star_assignment_target.txt index eb9f27c901..065c6d8df1 100644 --- a/tests/functional/i/invalid/s/invalid_star_assignment_target.txt +++ b/tests/functional/i/invalid/s/invalid_star_assignment_target.txt @@ -1 +1 @@ -invalid-star-assignment-target:3:0::Starred assignment target must be in a list or tuple +invalid-star-assignment-target:3:0::Starred assignment target must be in a list or tuple:HIGH diff --git a/tests/functional/i/invalid/s/invalid_str_returned.txt b/tests/functional/i/invalid/s/invalid_str_returned.txt index 36b7ec57c7..7988432176 100644 --- a/tests/functional/i/invalid/s/invalid_str_returned.txt +++ b/tests/functional/i/invalid/s/invalid_str_returned.txt @@ -1,3 +1,3 @@ -invalid-str-returned:36:4:FirstBadStr.__str__:__str__ does not return str -invalid-str-returned:43:4:SecondBadStr.__str__:__str__ does not return str -invalid-str-returned:50:4:ThirdBadStr.__str__:__str__ does not return str +invalid-str-returned:36:4:FirstBadStr.__str__:__str__ does not return str:HIGH +invalid-str-returned:43:4:SecondBadStr.__str__:__str__ does not return str:HIGH +invalid-str-returned:50:4:ThirdBadStr.__str__:__str__ does not return str:HIGH diff --git a/tests/functional/i/isinstance_second_argument.txt b/tests/functional/i/isinstance_second_argument.txt index aef0dcc074..e6ca43bb2a 100644 --- a/tests/functional/i/isinstance_second_argument.txt +++ b/tests/functional/i/isinstance_second_argument.txt @@ -1,5 +1,5 @@ -isinstance-second-argument-not-valid-type:27:0::Second argument of isinstance is not a type -isinstance-second-argument-not-valid-type:28:0::Second argument of isinstance is not a type -isinstance-second-argument-not-valid-type:29:0::Second argument of isinstance is not a type -isinstance-second-argument-not-valid-type:30:0::Second argument of isinstance is not a type -isinstance-second-argument-not-valid-type:31:0::Second argument of isinstance is not a type +isinstance-second-argument-not-valid-type:27:0::Second argument of isinstance is not a type:HIGH +isinstance-second-argument-not-valid-type:28:0::Second argument of isinstance is not a type:HIGH +isinstance-second-argument-not-valid-type:29:0::Second argument of isinstance is not a type:HIGH +isinstance-second-argument-not-valid-type:30:0::Second argument of isinstance is not a type:HIGH +isinstance-second-argument-not-valid-type:31:0::Second argument of isinstance is not a type:HIGH diff --git a/tests/functional/i/iterable_context.txt b/tests/functional/i/iterable_context.txt index 2ec91a4b9a..9d8118f76f 100644 --- a/tests/functional/i/iterable_context.txt +++ b/tests/functional/i/iterable_context.txt @@ -1,10 +1,10 @@ -not-an-iterable:58:9::Non-iterable value powers_of_two is used in an iterating context -not-an-iterable:93:6::Non-iterable value A() is used in an iterating context -not-an-iterable:95:6::Non-iterable value B is used in an iterating context -not-an-iterable:96:9::Non-iterable value A() is used in an iterating context -not-an-iterable:100:9::Non-iterable value B is used in an iterating context -not-an-iterable:103:9::Non-iterable value range is used in an iterating context -not-an-iterable:107:9::Non-iterable value True is used in an iterating context -not-an-iterable:110:9::Non-iterable value None is used in an iterating context -not-an-iterable:113:9::Non-iterable value 8.5 is used in an iterating context -not-an-iterable:116:9::Non-iterable value 10 is used in an iterating context +not-an-iterable:58:9::Non-iterable value powers_of_two is used in an iterating context:HIGH +not-an-iterable:93:6::Non-iterable value A() is used in an iterating context:HIGH +not-an-iterable:95:6::Non-iterable value B is used in an iterating context:HIGH +not-an-iterable:96:9::Non-iterable value A() is used in an iterating context:HIGH +not-an-iterable:100:9::Non-iterable value B is used in an iterating context:HIGH +not-an-iterable:103:9::Non-iterable value range is used in an iterating context:HIGH +not-an-iterable:107:9::Non-iterable value True is used in an iterating context:HIGH +not-an-iterable:110:9::Non-iterable value None is used in an iterating context:HIGH +not-an-iterable:113:9::Non-iterable value 8.5 is used in an iterating context:HIGH +not-an-iterable:116:9::Non-iterable value 10 is used in an iterating context:HIGH diff --git a/tests/functional/i/iterable_context_py3.txt b/tests/functional/i/iterable_context_py3.txt index b3849d467e..584488cfad 100644 --- a/tests/functional/i/iterable_context_py3.txt +++ b/tests/functional/i/iterable_context_py3.txt @@ -1 +1 @@ -not-an-iterable:17:9::Non-iterable value SomeClass() is used in an iterating context +not-an-iterable:17:9::Non-iterable value SomeClass() is used in an iterating context:HIGH diff --git a/tests/functional/i/iterable_context_py36.txt b/tests/functional/i/iterable_context_py36.txt index b4a7c1fe16..8cca2b9f9c 100644 --- a/tests/functional/i/iterable_context_py36.txt +++ b/tests/functional/i/iterable_context_py36.txt @@ -1,2 +1,2 @@ -not-an-iterable:11:35:AIter.to_list:Non-iterable value self is used in an iterating context -not-an-iterable:12:21:AIter.to_list:Non-iterable value self is used in an iterating context +not-an-iterable:11:35:AIter.to_list:Non-iterable value self is used in an iterating context:HIGH +not-an-iterable:12:21:AIter.to_list:Non-iterable value self is used in an iterating context:HIGH diff --git a/tests/functional/k/keyword_arg_before_vararg.txt b/tests/functional/k/keyword_arg_before_vararg.txt index 874c094978..002e5f40f0 100644 --- a/tests/functional/k/keyword_arg_before_vararg.txt +++ b/tests/functional/k/keyword_arg_before_vararg.txt @@ -1,4 +1,4 @@ -keyword-arg-before-vararg:5:0:check_kwargs_before_args:Keyword argument before variable positional arguments list in the definition of check_kwargs_before_args function -keyword-arg-before-vararg:14:4:AAAA.func_in_class:Keyword argument before variable positional arguments list in the definition of func_in_class function -keyword-arg-before-vararg:19:4:AAAA.static_method_in_class:Keyword argument before variable positional arguments list in the definition of static_method_in_class function -keyword-arg-before-vararg:24:4:AAAA.class_method_in_class:Keyword argument before variable positional arguments list in the definition of class_method_in_class function +keyword-arg-before-vararg:5:0:check_kwargs_before_args:Keyword argument before variable positional arguments list in the definition of check_kwargs_before_args function:HIGH +keyword-arg-before-vararg:14:4:AAAA.func_in_class:Keyword argument before variable positional arguments list in the definition of func_in_class function:HIGH +keyword-arg-before-vararg:19:4:AAAA.static_method_in_class:Keyword argument before variable positional arguments list in the definition of static_method_in_class function:HIGH +keyword-arg-before-vararg:24:4:AAAA.class_method_in_class:Keyword argument before variable positional arguments list in the definition of class_method_in_class function:HIGH diff --git a/tests/functional/l/line_endings.txt b/tests/functional/l/line_endings.txt index 9d45f4ad66..24b3716304 100644 --- a/tests/functional/l/line_endings.txt +++ b/tests/functional/l/line_endings.txt @@ -1,2 +1,2 @@ -mixed-line-endings:3:0::Mixed line endings LF and CRLF -unexpected-line-ending-format:3:0::Unexpected line ending format. There is 'CRLF' while it should be 'LF'. +mixed-line-endings:3:0::Mixed line endings LF and CRLF:HIGH +unexpected-line-ending-format:3:0::Unexpected line ending format. There is 'CRLF' while it should be 'LF'.:HIGH diff --git a/tests/functional/l/line_too_long.txt b/tests/functional/l/line_too_long.txt index 57719ce6d8..40c06e75dd 100644 --- a/tests/functional/l/line_too_long.txt +++ b/tests/functional/l/line_too_long.txt @@ -1,11 +1,11 @@ -line-too-long:3:0::Line too long (101/100) -line-too-long:5:0::Line too long (104/100) -line-too-long:18:0::Line too long (102/100) -line-too-long:24:0::Line too long (109/100) -line-too-long:27:0::Line too long (115/100) -line-too-long:34:0::Line too long (105/100) -line-too-long:62:0::Line too long (112/100) -line-too-long:64:0::Line too long (122/100) -line-too-long:71:0::Line too long (131/100) -line-too-long:72:0::Line too long (135/100) -line-too-long:76:0::Line too long (135/100) +line-too-long:3:0::Line too long (101/100):HIGH +line-too-long:5:0::Line too long (104/100):HIGH +line-too-long:18:0::Line too long (102/100):HIGH +line-too-long:24:0::Line too long (109/100):HIGH +line-too-long:27:0::Line too long (115/100):HIGH +line-too-long:34:0::Line too long (105/100):HIGH +line-too-long:62:0::Line too long (112/100):HIGH +line-too-long:64:0::Line too long (122/100):HIGH +line-too-long:71:0::Line too long (131/100):HIGH +line-too-long:72:0::Line too long (135/100):HIGH +line-too-long:76:0::Line too long (135/100):HIGH diff --git a/tests/functional/l/logging_format_interpolation.txt b/tests/functional/l/logging_format_interpolation.txt index 6437b71762..23561e7375 100644 --- a/tests/functional/l/logging_format_interpolation.txt +++ b/tests/functional/l/logging_format_interpolation.txt @@ -1,7 +1,7 @@ -logging-format-interpolation:16:22::Use lazy % formatting in logging functions -logging-format-interpolation:17:43::Use lazy % formatting in logging functions -logging-format-interpolation:18:22::Use lazy % formatting in logging functions -logging-format-interpolation:19:43::Use lazy % formatting in logging functions -logging-format-interpolation:20:21::Use lazy % formatting in logging functions -logging-format-interpolation:36:19::Use lazy % formatting in logging functions -logging-not-lazy:37:0::Use lazy % formatting in logging functions +logging-format-interpolation:16:22::Use lazy % formatting in logging functions:HIGH +logging-format-interpolation:17:43::Use lazy % formatting in logging functions:HIGH +logging-format-interpolation:18:22::Use lazy % formatting in logging functions:HIGH +logging-format-interpolation:19:43::Use lazy % formatting in logging functions:HIGH +logging-format-interpolation:20:21::Use lazy % formatting in logging functions:HIGH +logging-format-interpolation:36:19::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:37:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/l/logging_format_interpolation_py36.txt b/tests/functional/l/logging_format_interpolation_py36.txt index a0de664a64..4a5a1d3da4 100644 --- a/tests/functional/l/logging_format_interpolation_py36.txt +++ b/tests/functional/l/logging_format_interpolation_py36.txt @@ -1 +1 @@ -logging-fstring-interpolation:5:0::Use lazy % formatting in logging functions +logging-fstring-interpolation:5:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/l/logging_fstring_interpolation_py36.txt b/tests/functional/l/logging_fstring_interpolation_py36.txt index 5529b338ed..7e8ab8a4f8 100644 --- a/tests/functional/l/logging_fstring_interpolation_py36.txt +++ b/tests/functional/l/logging_fstring_interpolation_py36.txt @@ -1,5 +1,5 @@ -logging-fstring-interpolation:17:0::Use lazy % formatting in logging functions -logging-fstring-interpolation:18:0::Use lazy % formatting in logging functions -logging-fstring-interpolation:19:0::Use lazy % formatting in logging functions -logging-fstring-interpolation:20:0::Use lazy % formatting in logging functions -logging-fstring-interpolation:21:0::Use lazy % formatting in logging functions +logging-fstring-interpolation:17:0::Use lazy % formatting in logging functions:HIGH +logging-fstring-interpolation:18:0::Use lazy % formatting in logging functions:HIGH +logging-fstring-interpolation:19:0::Use lazy % formatting in logging functions:HIGH +logging-fstring-interpolation:20:0::Use lazy % formatting in logging functions:HIGH +logging-fstring-interpolation:21:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/l/logging_not_lazy.txt b/tests/functional/l/logging_not_lazy.txt index 88a1c1e81d..b4b5d73b11 100644 --- a/tests/functional/l/logging_not_lazy.txt +++ b/tests/functional/l/logging_not_lazy.txt @@ -1,6 +1,6 @@ -logging-not-lazy:10:0::Use lazy % formatting in logging functions -logging-not-lazy:11:0::Use lazy % formatting in logging functions -logging-not-lazy:12:0::Use lazy % formatting in logging functions -logging-not-lazy:13:0::Use lazy % formatting in logging functions -logging-not-lazy:14:0::Use lazy % formatting in logging functions -logging-not-lazy:15:0::Use lazy % formatting in logging functions +logging-not-lazy:10:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:11:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:12:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:13:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:14:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:15:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/l/logging_not_lazy_with_logger.txt b/tests/functional/l/logging_not_lazy_with_logger.txt index 43d9c1620a..3144778fab 100644 --- a/tests/functional/l/logging_not_lazy_with_logger.txt +++ b/tests/functional/l/logging_not_lazy_with_logger.txt @@ -1,4 +1,4 @@ -logging-not-lazy:9:0::Use lazy % formatting in logging functions -logging-not-lazy:10:0::Use lazy % formatting in logging functions -logging-not-lazy:12:0::Use lazy % formatting in logging functions -logging-not-lazy:14:0::Use lazy % formatting in logging functions +logging-not-lazy:9:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:10:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:12:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:14:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/l/logical_tautology.txt b/tests/functional/l/logical_tautology.txt index dba64ce48a..3a3d39be79 100644 --- a/tests/functional/l/logical_tautology.txt +++ b/tests/functional/l/logical_tautology.txt @@ -1,12 +1,12 @@ -comparison-with-itself:6:7:foo:Redundant comparison - arg == arg -comparison-with-itself:8:9:foo:Redundant comparison - arg != arg -comparison-with-itself:10:9:foo:Redundant comparison - arg > arg -comparison-with-itself:12:9:foo:Redundant comparison - arg <= arg -comparison-with-itself:14:9:foo:Redundant comparison - None == None -comparison-with-itself:16:9:foo:Redundant comparison - 786 == 786 -comparison-with-itself:18:9:foo:Redundant comparison - 786 is 786 -comparison-with-itself:20:9:foo:Redundant comparison - 786 is not 786 -comparison-with-itself:22:9:foo:Redundant comparison - arg is arg -comparison-with-itself:24:9:foo:Redundant comparison - arg is not arg -comparison-with-itself:26:9:foo:Redundant comparison - True is True -comparison-with-itself:36:18:bar:Redundant comparison - arg != arg +comparison-with-itself:6:7:foo:Redundant comparison - arg == arg:HIGH +comparison-with-itself:8:9:foo:Redundant comparison - arg != arg:HIGH +comparison-with-itself:10:9:foo:Redundant comparison - arg > arg:HIGH +comparison-with-itself:12:9:foo:Redundant comparison - arg <= arg:HIGH +comparison-with-itself:14:9:foo:Redundant comparison - None == None:HIGH +comparison-with-itself:16:9:foo:Redundant comparison - 786 == 786:HIGH +comparison-with-itself:18:9:foo:Redundant comparison - 786 is 786:HIGH +comparison-with-itself:20:9:foo:Redundant comparison - 786 is not 786:HIGH +comparison-with-itself:22:9:foo:Redundant comparison - arg is arg:HIGH +comparison-with-itself:24:9:foo:Redundant comparison - arg is not arg:HIGH +comparison-with-itself:26:9:foo:Redundant comparison - True is True:HIGH +comparison-with-itself:36:18:bar:Redundant comparison - arg != arg:HIGH diff --git a/tests/functional/l/long_lines_with_utf8.txt b/tests/functional/l/long_lines_with_utf8.txt index 22440fa173..5e3e685331 100644 --- a/tests/functional/l/long_lines_with_utf8.txt +++ b/tests/functional/l/long_lines_with_utf8.txt @@ -1 +1 @@ -line-too-long:7:0::Line too long (108/100) +line-too-long:7:0::Line too long (108/100):HIGH diff --git a/tests/functional/l/loopvar_in_dict_comp.txt b/tests/functional/l/loopvar_in_dict_comp.txt index 2d98fcfff5..380f37fa6e 100644 --- a/tests/functional/l/loopvar_in_dict_comp.txt +++ b/tests/functional/l/loopvar_in_dict_comp.txt @@ -1 +1 @@ -cell-var-from-loop:8:23:bad_case.:Cell variable x defined in loop +cell-var-from-loop:8:23:bad_case.:Cell variable x defined in loop:HIGH diff --git a/tests/functional/l/lost_exception.txt b/tests/functional/l/lost_exception.txt index f2791dc7d7..7eec9827a7 100644 --- a/tests/functional/l/lost_exception.txt +++ b/tests/functional/l/lost_exception.txt @@ -1,2 +1,2 @@ -lost-exception:14:16:insidious_break_and_return:break statement in finally block may swallow exception -lost-exception:15:12:insidious_break_and_return:return statement in finally block may swallow exception +lost-exception:14:16:insidious_break_and_return:break statement in finally block may swallow exception:HIGH +lost-exception:15:12:insidious_break_and_return:return statement in finally block may swallow exception:HIGH diff --git a/tests/functional/m/mapping_context.txt b/tests/functional/m/mapping_context.txt index 232635628e..b173a936ca 100644 --- a/tests/functional/m/mapping_context.txt +++ b/tests/functional/m/mapping_context.txt @@ -1,2 +1,2 @@ -not-a-mapping:32:7::Non-mapping value CustomMapping is used in a mapping context -not-a-mapping:37:7::Non-mapping value NotMapping() is used in a mapping context +not-a-mapping:32:7::Non-mapping value CustomMapping is used in a mapping context:HIGH +not-a-mapping:37:7::Non-mapping value NotMapping() is used in a mapping context:HIGH diff --git a/tests/functional/m/mapping_context_py3.txt b/tests/functional/m/mapping_context_py3.txt index f77491458f..a4c90bdbeb 100644 --- a/tests/functional/m/mapping_context_py3.txt +++ b/tests/functional/m/mapping_context_py3.txt @@ -1 +1 @@ -not-a-mapping:19:7::Non-mapping value SomeClass() is used in a mapping context +not-a-mapping:19:7::Non-mapping value SomeClass() is used in a mapping context:HIGH diff --git a/tests/functional/m/member/membership_protocol.txt b/tests/functional/m/member/membership_protocol.txt index e021062dac..6d2bde60d3 100644 --- a/tests/functional/m/member/membership_protocol.txt +++ b/tests/functional/m/member/membership_protocol.txt @@ -1,7 +1,7 @@ -unsupported-membership-test:113:6::Value '42' doesn't support membership test -unsupported-membership-test:114:10::Value 'None' doesn't support membership test -unsupported-membership-test:115:6::Value '8.5' doesn't support membership test -unsupported-membership-test:120:10::Value 'EmptyClass()' doesn't support membership test -unsupported-membership-test:121:6::Value 'EmptyClass' doesn't support membership test -unsupported-membership-test:122:10::Value 'count' doesn't support membership test -unsupported-membership-test:123:6::Value 'range' doesn't support membership test +unsupported-membership-test:113:6::Value '42' doesn't support membership test:HIGH +unsupported-membership-test:114:10::Value 'None' doesn't support membership test:HIGH +unsupported-membership-test:115:6::Value '8.5' doesn't support membership test:HIGH +unsupported-membership-test:120:10::Value 'EmptyClass()' doesn't support membership test:HIGH +unsupported-membership-test:121:6::Value 'EmptyClass' doesn't support membership test:HIGH +unsupported-membership-test:122:10::Value 'count' doesn't support membership test:HIGH +unsupported-membership-test:123:6::Value 'range' doesn't support membership test:HIGH diff --git a/tests/functional/m/member/membership_protocol_py3.txt b/tests/functional/m/member/membership_protocol_py3.txt index 495cf94dbe..782b646a0b 100644 --- a/tests/functional/m/member/membership_protocol_py3.txt +++ b/tests/functional/m/member/membership_protocol_py3.txt @@ -1,3 +1,3 @@ -unsupported-membership-test:34:9:test:Value 'IterableClass()' doesn't support membership test -unsupported-membership-test:35:9:test:Value 'OldIterableClass()' doesn't support membership test -unsupported-membership-test:36:9:test:Value 'ContainerClass()' doesn't support membership test +unsupported-membership-test:34:9:test:Value 'IterableClass()' doesn't support membership test:HIGH +unsupported-membership-test:35:9:test:Value 'OldIterableClass()' doesn't support membership test:HIGH +unsupported-membership-test:36:9:test:Value 'ContainerClass()' doesn't support membership test:HIGH diff --git a/tests/functional/m/method_hidden.txt b/tests/functional/m/method_hidden.txt index a15bf30c20..d085586f72 100644 --- a/tests/functional/m/method_hidden.txt +++ b/tests/functional/m/method_hidden.txt @@ -1,2 +1,2 @@ -method-hidden:13:4:Cdef.abcd:An attribute defined in functional.m.method_hidden line 9 hides this method -method-hidden:76:4:One.one:An attribute defined in functional.m.method_hidden line 74 hides this method +method-hidden:13:4:Cdef.abcd:An attribute defined in functional.m.method_hidden line 9 hides this method:HIGH +method-hidden:76:4:One.one:An attribute defined in functional.m.method_hidden line 74 hides this method:HIGH diff --git a/tests/functional/m/misplaced_comparison_constant.txt b/tests/functional/m/misplaced_comparison_constant.txt index b517b499e4..591b34469a 100644 --- a/tests/functional/m/misplaced_comparison_constant.txt +++ b/tests/functional/m/misplaced_comparison_constant.txt @@ -1,6 +1,6 @@ -misplaced-comparison-constant:19:11:bad_comparisons:Comparison should be i >= 5 -misplaced-comparison-constant:21:11:bad_comparisons:Comparison should be i == 1 -misplaced-comparison-constant:23:11:bad_comparisons:Comparison should be dummy_return() > 3 -misplaced-comparison-constant:25:11:bad_comparisons:Comparison should be instance.dummy_return() != 4 -misplaced-comparison-constant:27:11:bad_comparisons:Comparison should be instance.attr == 1 -misplaced-comparison-constant:29:11:bad_comparisons:Comparison should be instance.attr == 'aaa' +misplaced-comparison-constant:19:11:bad_comparisons:Comparison should be i >= 5:HIGH +misplaced-comparison-constant:21:11:bad_comparisons:Comparison should be i == 1:HIGH +misplaced-comparison-constant:23:11:bad_comparisons:Comparison should be dummy_return() > 3:HIGH +misplaced-comparison-constant:25:11:bad_comparisons:Comparison should be instance.dummy_return() != 4:HIGH +misplaced-comparison-constant:27:11:bad_comparisons:Comparison should be instance.attr == 1:HIGH +misplaced-comparison-constant:29:11:bad_comparisons:Comparison should be instance.attr == 'aaa':HIGH diff --git a/tests/functional/m/misplaced_format_function.txt b/tests/functional/m/misplaced_format_function.txt index 2a77a27203..0ff101e9cd 100644 --- a/tests/functional/m/misplaced_format_function.txt +++ b/tests/functional/m/misplaced_format_function.txt @@ -1,4 +1,4 @@ -misplaced-format-function:5:0::format function is not called on str -misplaced-format-function:6:0::format function is not called on str -misplaced-format-function:52:8:FakeClass.format_string:format function is not called on str -misplaced-format-function:58:0::format function is not called on str +misplaced-format-function:5:0::format function is not called on str:HIGH +misplaced-format-function:6:0::format function is not called on str:HIGH +misplaced-format-function:52:8:FakeClass.format_string:format function is not called on str:HIGH +misplaced-format-function:58:0::format function is not called on str:HIGH diff --git a/tests/functional/m/misplaced_future.txt b/tests/functional/m/misplaced_future.txt index 645618b8ad..92e0153223 100644 --- a/tests/functional/m/misplaced_future.txt +++ b/tests/functional/m/misplaced_future.txt @@ -1 +1 @@ -misplaced-future:3:0::__future__ import is not the first non docstring statement +misplaced-future:3:0::__future__ import is not the first non docstring statement:HIGH diff --git a/tests/functional/m/missing/missing_docstring.txt b/tests/functional/m/missing/missing_docstring.txt index c9ec521613..e255b8e2c3 100644 --- a/tests/functional/m/missing/missing_docstring.txt +++ b/tests/functional/m/missing/missing_docstring.txt @@ -1,3 +1,3 @@ -missing-module-docstring:1:0::Missing module docstring -missing-class-docstring:21:0:ClassUndocumented:Missing class docstring -missing-function-docstring:25:0:public_undocumented:Missing function or method docstring +missing-module-docstring:1:0::Missing module docstring:HIGH +missing-class-docstring:21:0:ClassUndocumented:Missing class docstring:HIGH +missing-function-docstring:25:0:public_undocumented:Missing function or method docstring:HIGH diff --git a/tests/functional/m/missing/missing_docstring_new_style.txt b/tests/functional/m/missing/missing_docstring_new_style.txt index f194673fef..47d4995450 100644 --- a/tests/functional/m/missing/missing_docstring_new_style.txt +++ b/tests/functional/m/missing/missing_docstring_new_style.txt @@ -1,5 +1,5 @@ -missing-module-docstring:1:0::Missing module docstring -missing-class-docstring:9:0:UndocumentedClass:Missing class docstring -missing-class-docstring:19:0:OtherClassUndocumented:Missing class docstring -missing-function-docstring:36:0:public_undocumented:Missing function or method docstring -missing-function-docstring:46:0:undocumented_other_function:Missing function or method docstring +missing-module-docstring:1:0::Missing module docstring:HIGH +missing-class-docstring:9:0:UndocumentedClass:Missing class docstring:HIGH +missing-class-docstring:19:0:OtherClassUndocumented:Missing class docstring:HIGH +missing-function-docstring:36:0:public_undocumented:Missing function or method docstring:HIGH +missing-function-docstring:46:0:undocumented_other_function:Missing function or method docstring:HIGH diff --git a/tests/functional/m/missing/missing_final_newline.txt b/tests/functional/m/missing/missing_final_newline.txt index d7c329b706..0293cfcb6c 100644 --- a/tests/functional/m/missing/missing_final_newline.txt +++ b/tests/functional/m/missing/missing_final_newline.txt @@ -1 +1 @@ -missing-final-newline:4:0::Final newline missing +missing-final-newline:4:0::Final newline missing:HIGH diff --git a/tests/functional/m/missing/missing_kwoa.txt b/tests/functional/m/missing/missing_kwoa.txt index 710635504f..6fe7e460ad 100644 --- a/tests/functional/m/missing/missing_kwoa.txt +++ b/tests/functional/m/missing/missing_kwoa.txt @@ -1,3 +1,3 @@ -missing-kwoa:21:4:not_forwarding_kwargs:Missing mandatory keyword argument 'keyword' in function call -missing-kwoa:27:0::Missing mandatory keyword argument 'keyword' in function call -too-many-function-args:27:0::Too many positional arguments for function call +missing-kwoa:21:4:not_forwarding_kwargs:Missing mandatory keyword argument 'keyword' in function call:HIGH +missing-kwoa:27:0::Missing mandatory keyword argument 'keyword' in function call:HIGH +too-many-function-args:27:0::Too many positional arguments for function call:HIGH diff --git a/tests/functional/m/missing/missing_param_doc.txt b/tests/functional/m/missing/missing_param_doc.txt index b03e20072b..df017b854f 100644 --- a/tests/functional/m/missing/missing_param_doc.txt +++ b/tests/functional/m/missing/missing_param_doc.txt @@ -1,18 +1,18 @@ -missing-any-param-doc:3:0:foobar1:"Missing any documentation in ""foobar1""" -missing-any-param-doc:8:0:foobar2:"Missing any documentation in ""foobar2""" -missing-param-doc:15:0:foobar3:"""arg1, arg2, arg3"" missing in parameter documentation" -missing-type-doc:15:0:foobar3:"""arg2"" missing in parameter type documentation" -missing-param-doc:24:0:foobar4:"""arg2"" missing in parameter documentation" -missing-type-doc:24:0:foobar4:"""arg2"" missing in parameter type documentation" -missing-param-doc:33:0:foobar5:"""arg2"" missing in parameter documentation" -missing-type-doc:33:0:foobar5:"""arg1"" missing in parameter type documentation" -missing-param-doc:43:0:foobar6:"""arg2, arg3"" missing in parameter documentation" -missing-type-doc:43:0:foobar6:"""arg3"" missing in parameter type documentation" -missing-any-param-doc:53:0:foobar7:"Missing any documentation in ""foobar7""" -missing-any-param-doc:61:0:foobar8:"Missing any documentation in ""foobar8""" -missing-param-doc:66:0:foobar9:"""arg1, arg2, arg3"" missing in parameter documentation" -missing-param-doc:76:0:foobar10:"""arg2"" missing in parameter documentation" -missing-type-doc:76:0:foobar10:"""arg1, arg3"" missing in parameter type documentation" -missing-any-param-doc:88:0:foobar11:Missing any documentation in "foobar11" -missing-param-doc:97:0:foobar12:"""arg1, arg3"" missing in parameter documentation" -missing-type-doc:97:0:foobar12:"""arg2, arg3"" missing in parameter type documentation" +missing-any-param-doc:3:0:foobar1:"Missing any documentation in ""foobar1""":HIGH +missing-any-param-doc:8:0:foobar2:"Missing any documentation in ""foobar2""":HIGH +missing-param-doc:15:0:foobar3:"""arg1, arg2, arg3"" missing in parameter documentation":HIGH +missing-type-doc:15:0:foobar3:"""arg2"" missing in parameter type documentation":HIGH +missing-param-doc:24:0:foobar4:"""arg2"" missing in parameter documentation":HIGH +missing-type-doc:24:0:foobar4:"""arg2"" missing in parameter type documentation":HIGH +missing-param-doc:33:0:foobar5:"""arg2"" missing in parameter documentation":HIGH +missing-type-doc:33:0:foobar5:"""arg1"" missing in parameter type documentation":HIGH +missing-param-doc:43:0:foobar6:"""arg2, arg3"" missing in parameter documentation":HIGH +missing-type-doc:43:0:foobar6:"""arg3"" missing in parameter type documentation":HIGH +missing-any-param-doc:53:0:foobar7:"Missing any documentation in ""foobar7""":HIGH +missing-any-param-doc:61:0:foobar8:"Missing any documentation in ""foobar8""":HIGH +missing-param-doc:66:0:foobar9:"""arg1, arg2, arg3"" missing in parameter documentation":HIGH +missing-param-doc:76:0:foobar10:"""arg2"" missing in parameter documentation":HIGH +missing-type-doc:76:0:foobar10:"""arg1, arg3"" missing in parameter type documentation":HIGH +missing-any-param-doc:88:0:foobar11:"Missing any documentation in ""foobar11""":HIGH +missing-param-doc:97:0:foobar12:"""arg1, arg3"" missing in parameter documentation":HIGH +missing-type-doc:97:0:foobar12:"""arg2, arg3"" missing in parameter type documentation":HIGH diff --git a/tests/functional/m/missing/missing_parentheses_for_call_in_test.txt b/tests/functional/m/missing/missing_parentheses_for_call_in_test.txt index 0547c6e306..c67b42860f 100644 --- a/tests/functional/m/missing/missing_parentheses_for_call_in_test.txt +++ b/tests/functional/m/missing/missing_parentheses_for_call_in_test.txt @@ -1,15 +1,15 @@ -missing-parentheses-for-call-in-test:29:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:35:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:43:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:51:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:56:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:64:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:70:11::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:72:17::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:73:18::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:75:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:76:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:79:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:80:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:85:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses -missing-parentheses-for-call-in-test:91:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses +missing-parentheses-for-call-in-test:29:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:35:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:43:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:51:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:56:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:64:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:70:11::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:72:17::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:73:18::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:75:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:76:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:79:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:80:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:85:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH +missing-parentheses-for-call-in-test:91:0::Using a conditional statement with potentially wrong function or method call due to missing parentheses:HIGH diff --git a/tests/functional/m/missing/missing_self_argument.txt b/tests/functional/m/missing/missing_self_argument.txt index 1b76262447..3b23d470fe 100644 --- a/tests/functional/m/missing/missing_self_argument.txt +++ b/tests/functional/m/missing/missing_self_argument.txt @@ -1,3 +1,3 @@ -no-method-argument:12:4:MyClass.method:Method has no argument -no-method-argument:15:4:MyClass.setup:Method has no argument -undefined-variable:17:8:MyClass.setup:Undefined variable 'self' +no-method-argument:12:4:MyClass.method:Method has no argument:HIGH +no-method-argument:15:4:MyClass.setup:Method has no argument:HIGH +undefined-variable:17:8:MyClass.setup:Undefined variable 'self':HIGH diff --git a/tests/functional/m/module___dict__.txt b/tests/functional/m/module___dict__.txt index c5b65ada19..85abb1c27a 100644 --- a/tests/functional/m/module___dict__.txt +++ b/tests/functional/m/module___dict__.txt @@ -1 +1 @@ -used-before-assignment:5:6::Using variable '__dict__' before assignment +used-before-assignment:5:6::Using variable '__dict__' before assignment:HIGH diff --git a/tests/functional/m/multiple_imports.txt b/tests/functional/m/multiple_imports.txt index 45380c3504..f212146ad5 100644 --- a/tests/functional/m/multiple_imports.txt +++ b/tests/functional/m/multiple_imports.txt @@ -1 +1 @@ -multiple-imports:2:0::Multiple imports on one line (os, socket) +multiple-imports:2:0::Multiple imports on one line (os, socket):HIGH diff --git a/tests/functional/n/name/namePresetCamelCase.txt b/tests/functional/n/name/namePresetCamelCase.txt index b24b0a8810..2943b7c460 100644 --- a/tests/functional/n/name/namePresetCamelCase.txt +++ b/tests/functional/n/name/namePresetCamelCase.txt @@ -1,3 +1,3 @@ -invalid-name:3:0::"Constant name ""SOME_CONSTANT"" doesn't conform to camelCase naming style ('([^\\W\\dA-Z][^\\W_]*|__.*__)$' pattern)" -invalid-name:10:0:MyClass:"Class name ""MyClass"" doesn't conform to camelCase naming style ('[^\\W\\dA-Z][^\\W_]+$' pattern)" -invalid-name:22:0:say_hello:"Function name ""say_hello"" doesn't conform to camelCase naming style ('([^\\W\\dA-Z][^\\W_]{2,}|__[^\\W\\dA-Z_]\\w+__)$' pattern)" +invalid-name:3:0::"Constant name ""SOME_CONSTANT"" doesn't conform to camelCase naming style ('([^\\W\\dA-Z][^\\W_]*|__.*__)$' pattern)":HIGH +invalid-name:10:0:MyClass:"Class name ""MyClass"" doesn't conform to camelCase naming style ('[^\\W\\dA-Z][^\\W_]+$' pattern)":HIGH +invalid-name:22:0:say_hello:"Function name ""say_hello"" doesn't conform to camelCase naming style ('([^\\W\\dA-Z][^\\W_]{2,}|__[^\\W\\dA-Z_]\\w+__)$' pattern)":HIGH diff --git a/tests/functional/n/name/name_final.txt b/tests/functional/n/name/name_final.txt index b9fdd20e5d..6607004cc3 100644 --- a/tests/functional/n/name/name_final.txt +++ b/tests/functional/n/name/name_final.txt @@ -1,3 +1,3 @@ -invalid-name:10:4:Foo:"Class constant name ""variable"" doesn't conform to UPPER_CASE naming style" -invalid-name:12:4:Foo:"Class constant name ""variable2"" doesn't conform to UPPER_CASE naming style" -invalid-name:16:0::"Constant name ""module_var"" doesn't conform to UPPER_CASE naming style" +invalid-name:10:4:Foo:"Class constant name ""variable"" doesn't conform to UPPER_CASE naming style":HIGH +invalid-name:12:4:Foo:"Class constant name ""variable2"" doesn't conform to UPPER_CASE naming style":HIGH +invalid-name:16:0::"Constant name ""module_var"" doesn't conform to UPPER_CASE naming style":HIGH diff --git a/tests/functional/n/name/name_final_snake_case.txt b/tests/functional/n/name/name_final_snake_case.txt index 48f03d13b5..1da4b24863 100644 --- a/tests/functional/n/name/name_final_snake_case.txt +++ b/tests/functional/n/name/name_final_snake_case.txt @@ -1,5 +1,5 @@ -invalid-name:8:4:Foo:"Class constant name ""CLASS_CONST"" doesn't conform to snake_case naming style" -invalid-name:9:4:Foo:"Class constant name ""CLASS_CONST2"" doesn't conform to snake_case naming style" -invalid-name:11:4:Foo:"Class constant name ""CLASS_CONST3"" doesn't conform to snake_case naming style" -invalid-name:13:4:Foo:"Class constant name ""CLASS_CONST4"" doesn't conform to snake_case naming style" -invalid-name:15:0::"Constant name ""MODULE_CONST"" doesn't conform to snake_case naming style" +invalid-name:8:4:Foo:"Class constant name ""CLASS_CONST"" doesn't conform to snake_case naming style":HIGH +invalid-name:9:4:Foo:"Class constant name ""CLASS_CONST2"" doesn't conform to snake_case naming style":HIGH +invalid-name:11:4:Foo:"Class constant name ""CLASS_CONST3"" doesn't conform to snake_case naming style":HIGH +invalid-name:13:4:Foo:"Class constant name ""CLASS_CONST4"" doesn't conform to snake_case naming style":HIGH +invalid-name:15:0::"Constant name ""MODULE_CONST"" doesn't conform to snake_case naming style":HIGH diff --git a/tests/functional/n/name/name_good_bad_names_regex.txt b/tests/functional/n/name/name_good_bad_names_regex.txt index 537c429834..869f928d1b 100644 --- a/tests/functional/n/name/name_good_bad_names_regex.txt +++ b/tests/functional/n/name/name_good_bad_names_regex.txt @@ -1,3 +1,3 @@ -disallowed-name:5:0::Disallowed name "explicit_bad_some_constant" -invalid-name:7:0::"Constant name ""snake_case_bad_SOME_CONSTANT"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]*|__.*__)$' pattern)" -disallowed-name:19:0:disallowed_2_snake_case:Disallowed name "disallowed_2_snake_case" +disallowed-name:5:0::"Disallowed name ""explicit_bad_some_constant""":HIGH +invalid-name:7:0::"Constant name ""snake_case_bad_SOME_CONSTANT"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]*|__.*__)$' pattern)":HIGH +disallowed-name:19:0:disallowed_2_snake_case:"Disallowed name ""disallowed_2_snake_case""":HIGH diff --git a/tests/functional/n/name/name_preset_snake_case.txt b/tests/functional/n/name/name_preset_snake_case.txt index c189797e95..74fc473d11 100644 --- a/tests/functional/n/name/name_preset_snake_case.txt +++ b/tests/functional/n/name/name_preset_snake_case.txt @@ -1,5 +1,5 @@ -invalid-name:6:0::"Constant name ""SOME_CONSTANT"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]*|__.*__)$' pattern)" -invalid-name:13:0:MyClass:"Class name ""MyClass"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)" -invalid-name:25:0:sayHello:"Function name ""sayHello"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]{2,}|_[^\\WA-Z]*|__[^\\WA-Z\\d_][^\\WA-Z]+__)$' pattern)" -invalid-name:29:0:FooEnum:"Class name ""FooEnum"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)" -invalid-name:34:0:Bar:"Class name ""Bar"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)" +invalid-name:6:0::"Constant name ""SOME_CONSTANT"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]*|__.*__)$' pattern)":HIGH +invalid-name:13:0:MyClass:"Class name ""MyClass"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)":HIGH +invalid-name:25:0:sayHello:"Function name ""sayHello"" doesn't conform to snake_case naming style ('([^\\W\\dA-Z][^\\WA-Z]{2,}|_[^\\WA-Z]*|__[^\\WA-Z\\d_][^\\WA-Z]+__)$' pattern)":HIGH +invalid-name:29:0:FooEnum:"Class name ""FooEnum"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)":HIGH +invalid-name:34:0:Bar:"Class name ""Bar"" doesn't conform to snake_case naming style ('[^\\W\\dA-Z][^\\WA-Z]+$' pattern)":HIGH diff --git a/tests/functional/n/name/name_styles.txt b/tests/functional/n/name/name_styles.txt index c98007d40d..deb9231879 100644 --- a/tests/functional/n/name/name_styles.txt +++ b/tests/functional/n/name/name_styles.txt @@ -1,17 +1,17 @@ -invalid-name:11:0::"Constant name ""bad_const_name"" doesn't conform to UPPER_CASE naming style" -invalid-name:14:0:BADFUNCTION_name:"Function name ""BADFUNCTION_name"" doesn't conform to snake_case naming style" -invalid-name:16:4:BADFUNCTION_name:"Variable name ""BAD_LOCAL_VAR"" doesn't conform to snake_case naming style" -invalid-name:20:21:func_bad_argname:"Argument name ""NOT_GOOD"" doesn't conform to snake_case naming style" -invalid-name:30:0:bad_class_name:"Class name ""bad_class_name"" doesn't conform to PascalCase naming style" -invalid-name:41:8:CorrectClassName.__init__:"Attribute name ""_Bad_AtTR_name"" doesn't conform to snake_case naming style" -invalid-name:42:8:CorrectClassName.__init__:"Attribute name ""Bad_PUBLIC_name"" doesn't conform to snake_case naming style" +invalid-name:11:0::"Constant name ""bad_const_name"" doesn't conform to UPPER_CASE naming style":HIGH +invalid-name:14:0:BADFUNCTION_name:"Function name ""BADFUNCTION_name"" doesn't conform to snake_case naming style":HIGH +invalid-name:16:4:BADFUNCTION_name:"Variable name ""BAD_LOCAL_VAR"" doesn't conform to snake_case naming style":HIGH +invalid-name:20:21:func_bad_argname:"Argument name ""NOT_GOOD"" doesn't conform to snake_case naming style":HIGH +invalid-name:30:0:bad_class_name:"Class name ""bad_class_name"" doesn't conform to PascalCase naming style":HIGH +invalid-name:41:8:CorrectClassName.__init__:"Attribute name ""_Bad_AtTR_name"" doesn't conform to snake_case naming style":HIGH +invalid-name:42:8:CorrectClassName.__init__:"Attribute name ""Bad_PUBLIC_name"" doesn't conform to snake_case naming style":HIGH invalid-name:47:4:CorrectClassName.BadMethodName:"Method name ""BadMethodName"" doesn't conform to snake_case naming style":INFERENCE invalid-name:53:4:CorrectClassName.__DunDER_IS_not_free_for_all__:"Method name ""__DunDER_IS_not_free_for_all__"" doesn't conform to snake_case naming style":INFERENCE -invalid-name:83:0::"Class name ""BAD_NAME_FOR_CLASS"" doesn't conform to PascalCase naming style" -invalid-name:84:0::"Class name ""NEXT_BAD_NAME_FOR_CLASS"" doesn't conform to PascalCase naming style" -invalid-name:91:0::"Class name ""NOT_CORRECT"" doesn't conform to PascalCase naming style" -invalid-name:97:4:test_globals:"Constant name ""AlsoCorrect"" doesn't conform to UPPER_CASE naming style" +invalid-name:83:0::"Class name ""BAD_NAME_FOR_CLASS"" doesn't conform to PascalCase naming style":HIGH +invalid-name:84:0::"Class name ""NEXT_BAD_NAME_FOR_CLASS"" doesn't conform to PascalCase naming style":HIGH +invalid-name:91:0::"Class name ""NOT_CORRECT"" doesn't conform to PascalCase naming style":HIGH +invalid-name:97:4:test_globals:"Constant name ""AlsoCorrect"" doesn't conform to UPPER_CASE naming style":HIGH invalid-name:110:4:FooClass.PROPERTY_NAME:"Attribute name ""PROPERTY_NAME"" doesn't conform to snake_case naming style":INFERENCE invalid-name:116:4:FooClass.ABSTRACT_PROPERTY_NAME:"Attribute name ""ABSTRACT_PROPERTY_NAME"" doesn't conform to snake_case naming style":INFERENCE invalid-name:121:4:FooClass.PROPERTY_NAME_SETTER:"Attribute name ""PROPERTY_NAME_SETTER"" doesn't conform to snake_case naming style":INFERENCE -invalid-name:152:4:FooEnum:"Class constant name ""bad_enum_name"" doesn't conform to UPPER_CASE naming style" +invalid-name:152:4:FooEnum:"Class constant name ""bad_enum_name"" doesn't conform to UPPER_CASE naming style":HIGH diff --git a/tests/functional/n/name/names_in__all__.txt b/tests/functional/n/name/names_in__all__.txt index aa90151438..2409f093a0 100644 --- a/tests/functional/n/name/names_in__all__.txt +++ b/tests/functional/n/name/names_in__all__.txt @@ -1,6 +1,6 @@ -undefined-all-variable:17:4::Undefined variable name '' in __all__ -undefined-variable:19:4::Undefined variable 'SomeUndefined' -undefined-all-variable:20:4::Undefined variable name 'NonExistant' in __all__ -undefined-all-variable:22:4::Undefined variable name 'func' in __all__ -undefined-all-variable:23:4::Undefined variable name 'inner' in __all__ -undefined-all-variable:24:4::Undefined variable name 'InnerKlass' in __all__ +undefined-all-variable:17:4::Undefined variable name '' in __all__:HIGH +undefined-variable:19:4::Undefined variable 'SomeUndefined':HIGH +undefined-all-variable:20:4::Undefined variable name 'NonExistant' in __all__:HIGH +undefined-all-variable:22:4::Undefined variable name 'func' in __all__:HIGH +undefined-all-variable:23:4::Undefined variable name 'inner' in __all__:HIGH +undefined-all-variable:24:4::Undefined variable name 'InnerKlass' in __all__:HIGH diff --git a/tests/functional/n/nan_comparison_check.txt b/tests/functional/n/nan_comparison_check.txt index 2351ea403e..345d48b508 100644 --- a/tests/functional/n/nan_comparison_check.txt +++ b/tests/functional/n/nan_comparison_check.txt @@ -1,12 +1,12 @@ -nan-comparison:6:4::Comparison 'x is numpy.NaN' should be 'math.isnan(x)' -nan-comparison:7:4::Comparison 'x == numpy.NaN' should be 'math.isnan(x)' -nan-comparison:8:4::Comparison 'x == float('nan')' should be 'math.isnan(x)' -nan-comparison:9:4::Comparison 'numpy.NaN == numpy.NaN' should be 'math.isnan(numpy.NaN)' -nan-comparison:12:4::Comparison 'numpy.NaN is not x' should be 'not math.isnan(x)' -nan-comparison:13:4::Comparison 'numpy.NaN != x' should be 'not math.isnan(x)' -nan-comparison:15:4::Comparison 'x != numpy.NaN' should be 'not math.isnan(x)' -nan-comparison:16:5::Comparison 'x != float('nan')' should be 'not math.isnan(x)' -nan-comparison:17:7::Comparison 'x == numpy.NaN' should be 'math.isnan(x)' -nan-comparison:18:7::Comparison 'x is not float('nan')' should be 'not math.isnan(x)' -nan-comparison:19:3::Comparison 'x == numpy.NaN' should be 'math.isnan(x)' -nan-comparison:21:9::Comparison 'x is numpy.NaN' should be 'math.isnan(x)' +nan-comparison:6:4::Comparison 'x is numpy.NaN' should be 'math.isnan(x)':HIGH +nan-comparison:7:4::Comparison 'x == numpy.NaN' should be 'math.isnan(x)':HIGH +nan-comparison:8:4::Comparison 'x == float('nan')' should be 'math.isnan(x)':HIGH +nan-comparison:9:4::Comparison 'numpy.NaN == numpy.NaN' should be 'math.isnan(numpy.NaN)':HIGH +nan-comparison:12:4::Comparison 'numpy.NaN is not x' should be 'not math.isnan(x)':HIGH +nan-comparison:13:4::Comparison 'numpy.NaN != x' should be 'not math.isnan(x)':HIGH +nan-comparison:15:4::Comparison 'x != numpy.NaN' should be 'not math.isnan(x)':HIGH +nan-comparison:16:5::Comparison 'x != float('nan')' should be 'not math.isnan(x)':HIGH +nan-comparison:17:7::Comparison 'x == numpy.NaN' should be 'math.isnan(x)':HIGH +nan-comparison:18:7::Comparison 'x is not float('nan')' should be 'not math.isnan(x)':HIGH +nan-comparison:19:3::Comparison 'x == numpy.NaN' should be 'math.isnan(x)':HIGH +nan-comparison:21:9::Comparison 'x is numpy.NaN' should be 'math.isnan(x)':HIGH diff --git a/tests/functional/n/nested_blocks_issue1088.txt b/tests/functional/n/nested_blocks_issue1088.txt index 66dac6efdc..456d6676fc 100644 --- a/tests/functional/n/nested_blocks_issue1088.txt +++ b/tests/functional/n/nested_blocks_issue1088.txt @@ -1,2 +1,2 @@ -too-many-nested-blocks:3:4:had_bug:Too many nested blocks (6/5) -too-many-nested-blocks:14:4:was_correct:Too many nested blocks (6/5) +too-many-nested-blocks:3:4:had_bug:Too many nested blocks (6/5):HIGH +too-many-nested-blocks:14:4:was_correct:Too many nested blocks (6/5):HIGH diff --git a/tests/functional/n/nested_func_defined_in_loop.txt b/tests/functional/n/nested_func_defined_in_loop.txt index 9f70ebc4ce..e7d4452557 100644 --- a/tests/functional/n/nested_func_defined_in_loop.txt +++ b/tests/functional/n/nested_func_defined_in_loop.txt @@ -1 +1 @@ -cell-var-from-loop:7:18:example.nested:Cell variable i defined in loop +cell-var-from-loop:7:18:example.nested:Cell variable i defined in loop:HIGH diff --git a/tests/functional/n/new_style_class_py_30.txt b/tests/functional/n/new_style_class_py_30.txt index b86cc2b54c..61771d9184 100644 --- a/tests/functional/n/new_style_class_py_30.txt +++ b/tests/functional/n/new_style_class_py_30.txt @@ -1,4 +1,4 @@ -super-with-arguments:15:8:File.__init__:Consider using Python 3 style super() without arguments -super-with-arguments:21:8:File.write:Consider using Python 3 style super() without arguments -super-with-arguments:26:8:File.writelines:Consider using Python 3 style super() without arguments -super-with-arguments:33:8:File.close:Consider using Python 3 style super() without arguments +super-with-arguments:15:8:File.__init__:Consider using Python 3 style super() without arguments:HIGH +super-with-arguments:21:8:File.write:Consider using Python 3 style super() without arguments:HIGH +super-with-arguments:26:8:File.writelines:Consider using Python 3 style super() without arguments:HIGH +super-with-arguments:33:8:File.close:Consider using Python 3 style super() without arguments:HIGH diff --git a/tests/functional/n/no/no_classmethod_decorator.txt b/tests/functional/n/no/no_classmethod_decorator.txt index 90b10f2b1e..1b321ee405 100644 --- a/tests/functional/n/no/no_classmethod_decorator.txt +++ b/tests/functional/n/no/no_classmethod_decorator.txt @@ -1,3 +1,3 @@ -no-classmethod-decorator:14:4:MyClass:Consider using a decorator instead of calling classmethod -no-classmethod-decorator:17:8:MyClass:Consider using a decorator instead of calling classmethod -no-classmethod-decorator:25:4:MyClass:Consider using a decorator instead of calling classmethod +no-classmethod-decorator:14:4:MyClass:Consider using a decorator instead of calling classmethod:HIGH +no-classmethod-decorator:17:8:MyClass:Consider using a decorator instead of calling classmethod:HIGH +no-classmethod-decorator:25:4:MyClass:Consider using a decorator instead of calling classmethod:HIGH diff --git a/tests/functional/n/no/no_dummy_redefined.txt b/tests/functional/n/no/no_dummy_redefined.txt index 3e6854be55..17515b89c7 100644 --- a/tests/functional/n/no/no_dummy_redefined.txt +++ b/tests/functional/n/no/no_dummy_redefined.txt @@ -1,2 +1,2 @@ -invalid-name:7:0::"Constant name ""value"" doesn't conform to UPPER_CASE naming style" -redefined-outer-name:12:4:clobbering:Redefining name 'value' from outer scope (line 7) +invalid-name:7:0::"Constant name ""value"" doesn't conform to UPPER_CASE naming style":HIGH +redefined-outer-name:12:4:clobbering:Redefining name 'value' from outer scope (line 7):HIGH diff --git a/tests/functional/n/no/no_else_break.txt b/tests/functional/n/no/no_else_break.txt index d1a27f73c7..aba574d808 100644 --- a/tests/functional/n/no/no_else_break.txt +++ b/tests/functional/n/no/no_else_break.txt @@ -1,7 +1,7 @@ -no-else-break:8:8:foo1:"Unnecessary ""else"" after ""break""" -no-else-break:16:8:foo2:"Unnecessary ""elif"" after ""break""" -no-else-break:28:12:foo3:"Unnecessary ""else"" after ""break""" -no-else-break:41:8:foo4:"Unnecessary ""else"" after ""break""" -no-else-break:54:8:foo5:"Unnecessary ""elif"" after ""break""" -no-else-break:70:12:foo6:"Unnecessary ""else"" after ""break""" -no-else-break:110:8:bar4:"Unnecessary ""else"" after ""break""" +no-else-break:8:8:foo1:"Unnecessary ""else"" after ""break""":HIGH +no-else-break:16:8:foo2:"Unnecessary ""elif"" after ""break""":HIGH +no-else-break:28:12:foo3:"Unnecessary ""else"" after ""break""":HIGH +no-else-break:41:8:foo4:"Unnecessary ""else"" after ""break""":HIGH +no-else-break:54:8:foo5:"Unnecessary ""elif"" after ""break""":HIGH +no-else-break:70:12:foo6:"Unnecessary ""else"" after ""break""":HIGH +no-else-break:110:8:bar4:"Unnecessary ""else"" after ""break""":HIGH diff --git a/tests/functional/n/no/no_else_continue.txt b/tests/functional/n/no/no_else_continue.txt index 6d659ea28f..573cf3c944 100644 --- a/tests/functional/n/no/no_else_continue.txt +++ b/tests/functional/n/no/no_else_continue.txt @@ -1,7 +1,7 @@ -no-else-continue:8:8:foo1:"Unnecessary ""else"" after ""continue""" -no-else-continue:16:8:foo2:"Unnecessary ""elif"" after ""continue""" -no-else-continue:28:12:foo3:"Unnecessary ""else"" after ""continue""" -no-else-continue:41:8:foo4:"Unnecessary ""else"" after ""continue""" -no-else-continue:54:8:foo5:"Unnecessary ""elif"" after ""continue""" -no-else-continue:70:12:foo6:"Unnecessary ""else"" after ""continue""" -no-else-continue:110:8:bar4:"Unnecessary ""else"" after ""continue""" +no-else-continue:8:8:foo1:"Unnecessary ""else"" after ""continue""":HIGH +no-else-continue:16:8:foo2:"Unnecessary ""elif"" after ""continue""":HIGH +no-else-continue:28:12:foo3:"Unnecessary ""else"" after ""continue""":HIGH +no-else-continue:41:8:foo4:"Unnecessary ""else"" after ""continue""":HIGH +no-else-continue:54:8:foo5:"Unnecessary ""elif"" after ""continue""":HIGH +no-else-continue:70:12:foo6:"Unnecessary ""else"" after ""continue""":HIGH +no-else-continue:110:8:bar4:"Unnecessary ""else"" after ""continue""":HIGH diff --git a/tests/functional/n/no/no_else_raise.txt b/tests/functional/n/no/no_else_raise.txt index b41f7132f5..f561910688 100644 --- a/tests/functional/n/no/no_else_raise.txt +++ b/tests/functional/n/no/no_else_raise.txt @@ -1,7 +1,7 @@ -no-else-raise:6:4:foo1:"Unnecessary ""else"" after ""raise""" -no-else-raise:15:4:foo2:"Unnecessary ""elif"" after ""raise""" -no-else-raise:29:8:foo3:"Unnecessary ""else"" after ""raise""" -no-else-raise:41:4:foo4:"Unnecessary ""else"" after ""raise""" -no-else-raise:53:4:foo5:"Unnecessary ""elif"" after ""raise""" -no-else-raise:68:8:foo6:"Unnecessary ""else"" after ""raise""" -no-else-raise:104:4:bar4:"Unnecessary ""else"" after ""raise""" +no-else-raise:6:4:foo1:"Unnecessary ""else"" after ""raise""":HIGH +no-else-raise:15:4:foo2:"Unnecessary ""elif"" after ""raise""":HIGH +no-else-raise:29:8:foo3:"Unnecessary ""else"" after ""raise""":HIGH +no-else-raise:41:4:foo4:"Unnecessary ""else"" after ""raise""":HIGH +no-else-raise:53:4:foo5:"Unnecessary ""elif"" after ""raise""":HIGH +no-else-raise:68:8:foo6:"Unnecessary ""else"" after ""raise""":HIGH +no-else-raise:104:4:bar4:"Unnecessary ""else"" after ""raise""":HIGH diff --git a/tests/functional/n/no/no_else_return.txt b/tests/functional/n/no/no_else_return.txt index 4560f74900..3866984d36 100644 --- a/tests/functional/n/no/no_else_return.txt +++ b/tests/functional/n/no/no_else_return.txt @@ -1,7 +1,7 @@ -no-else-return:6:4:foo1:"Unnecessary ""else"" after ""return""" -no-else-return:15:4:foo2:"Unnecessary ""elif"" after ""return""" -no-else-return:29:8:foo3:"Unnecessary ""else"" after ""return""" -no-else-return:41:4:foo4:"Unnecessary ""else"" after ""return""" -no-else-return:53:4:foo5:"Unnecessary ""elif"" after ""return""" -no-else-return:68:8:foo6:"Unnecessary ""else"" after ""return""" -no-else-return:104:4:bar4:"Unnecessary ""else"" after ""return""" +no-else-return:6:4:foo1:"Unnecessary ""else"" after ""return""":HIGH +no-else-return:15:4:foo2:"Unnecessary ""elif"" after ""return""":HIGH +no-else-return:29:8:foo3:"Unnecessary ""else"" after ""return""":HIGH +no-else-return:41:4:foo4:"Unnecessary ""else"" after ""return""":HIGH +no-else-return:53:4:foo5:"Unnecessary ""elif"" after ""return""":HIGH +no-else-return:68:8:foo6:"Unnecessary ""else"" after ""return""":HIGH +no-else-return:104:4:bar4:"Unnecessary ""else"" after ""return""":HIGH diff --git a/tests/functional/n/no/no_name_in_module.txt b/tests/functional/n/no/no_name_in_module.txt index 25b8680765..7687b8c9f6 100644 --- a/tests/functional/n/no/no_name_in_module.txt +++ b/tests/functional/n/no/no_name_in_module.txt @@ -1,14 +1,14 @@ -no-name-in-module:5:0::No name 'tutu' in module 'collections' -no-name-in-module:6:0::No name 'toto' in module 'collections' +no-name-in-module:5:0::No name 'tutu' in module 'collections':HIGH +no-name-in-module:6:0::No name 'toto' in module 'collections':HIGH no-member:10:0::Module 'xml.etree.ElementTree' has no 'nonexistant_function' member:INFERENCE no-member:11:0::Module 'xml.etree.ElementTree' has no 'another' member:INFERENCE no-member:16:6::Module 'sys' has no 'stdoout' member; maybe 'stdout'?:INFERENCE -no-name-in-module:23:0::No name 'compiile' in module 're' -no-name-in-module:23:0::No name 'findiiter' in module 're' -pointless-statement:26:0::Statement seems to have no effect -no-name-in-module:34:4::No name 'anything' in module 'collections' -no-name-in-module:49:4::No name 'indeed_missing' in module 'collections' -no-name-in-module:54:4::No name 'emit' in module 'collections' -no-name-in-module:71:8::No name 'emit2' in module 'collections' -no-name-in-module:76:0::No name 'lala' in module 'functional.n.no.no_self_use' -no-name-in-module:77:0::No name 'bla' in module 'functional.n.no.no_self_use' +no-name-in-module:23:0::No name 'compiile' in module 're':HIGH +no-name-in-module:23:0::No name 'findiiter' in module 're':HIGH +pointless-statement:26:0::Statement seems to have no effect:HIGH +no-name-in-module:34:4::No name 'anything' in module 'collections':HIGH +no-name-in-module:49:4::No name 'indeed_missing' in module 'collections':HIGH +no-name-in-module:54:4::No name 'emit' in module 'collections':HIGH +no-name-in-module:71:8::No name 'emit2' in module 'collections':HIGH +no-name-in-module:76:0::No name 'lala' in module 'functional.n.no.no_self_use':HIGH +no-name-in-module:77:0::No name 'bla' in module 'functional.n.no.no_self_use':HIGH diff --git a/tests/functional/n/no/no_self_argument.txt b/tests/functional/n/no/no_self_argument.txt index 7e11c5ceda..b55d49473f 100644 --- a/tests/functional/n/no/no_self_argument.txt +++ b/tests/functional/n/no/no_self_argument.txt @@ -1,2 +1,2 @@ -no-self-argument:8:4:NoSelfArgument.__init__:"Method should have ""self"" as first argument" -no-self-argument:12:4:NoSelfArgument.abdc:"Method should have ""self"" as first argument" +no-self-argument:8:4:NoSelfArgument.__init__:"Method should have ""self"" as first argument":HIGH +no-self-argument:12:4:NoSelfArgument.abdc:"Method should have ""self"" as first argument":HIGH diff --git a/tests/functional/n/no/no_self_argument_py37.txt b/tests/functional/n/no/no_self_argument_py37.txt index d0aba84769..fdc0a84411 100644 --- a/tests/functional/n/no/no_self_argument_py37.txt +++ b/tests/functional/n/no/no_self_argument_py37.txt @@ -1 +1 @@ -no-self-argument:13:4:Toto.__class_other__:"Method should have ""self"" as first argument" +no-self-argument:13:4:Toto.__class_other__:"Method should have ""self"" as first argument":HIGH diff --git a/tests/functional/n/no/no_self_use.txt b/tests/functional/n/no/no_self_use.txt index c91eff9a89..535cc8690d 100644 --- a/tests/functional/n/no/no_self_use.txt +++ b/tests/functional/n/no/no_self_use.txt @@ -1,2 +1,2 @@ -no-self-use:16:4:Toto.function_method:Method could be a function -no-self-use:24:4:Toto.async_function_method:Method could be a function +no-self-use:16:4:Toto.function_method:Method could be a function:HIGH +no-self-use:24:4:Toto.async_function_method:Method could be a function:HIGH diff --git a/tests/functional/n/no/no_staticmethod_decorator.txt b/tests/functional/n/no/no_staticmethod_decorator.txt index df897666ac..2fb0bccf2f 100644 --- a/tests/functional/n/no/no_staticmethod_decorator.txt +++ b/tests/functional/n/no/no_staticmethod_decorator.txt @@ -1,3 +1,3 @@ -no-staticmethod-decorator:14:4:MyClass:Consider using a decorator instead of calling staticmethod -no-staticmethod-decorator:17:8:MyClass:Consider using a decorator instead of calling staticmethod -no-staticmethod-decorator:25:4:MyClass:Consider using a decorator instead of calling staticmethod +no-staticmethod-decorator:14:4:MyClass:Consider using a decorator instead of calling staticmethod:HIGH +no-staticmethod-decorator:17:8:MyClass:Consider using a decorator instead of calling staticmethod:HIGH +no-staticmethod-decorator:25:4:MyClass:Consider using a decorator instead of calling staticmethod:HIGH diff --git a/tests/functional/n/non/non_ascii_name.txt b/tests/functional/n/non/non_ascii_name.txt index 076d7267d7..055aaca1a0 100644 --- a/tests/functional/n/non/non_ascii_name.txt +++ b/tests/functional/n/non/non_ascii_name.txt @@ -1,2 +1,2 @@ -non-ascii-name:3:0::"Constant name ""áéíóú"" contains a non-ASCII unicode character" -non-ascii-name:5:0:úóíéá:"Function name ""úóíéá"" contains a non-ASCII unicode character" +non-ascii-name:3:0::"Constant name ""áéíóú"" contains a non-ASCII unicode character":HIGH +non-ascii-name:5:0:úóíéá:"Function name ""úóíéá"" contains a non-ASCII unicode character":HIGH diff --git a/tests/functional/n/non/non_init_parent_called.txt b/tests/functional/n/non/non_init_parent_called.txt index 22073d63db..5be082ec2a 100644 --- a/tests/functional/n/non/non_init_parent_called.txt +++ b/tests/functional/n/non/non_init_parent_called.txt @@ -1,6 +1,6 @@ -import-error:7:0::Unable to import 'nonexistant' -non-parent-init-called:15:8:AAAA.__init__:__init__ method from a non direct base class 'BBBBMixin' is called +import-error:7:0::Unable to import 'nonexistant':HIGH +non-parent-init-called:15:8:AAAA.__init__:__init__ method from a non direct base class 'BBBBMixin' is called:HIGH no-member:23:50:CCC:Module 'functional.n.non.non_init_parent_called' has no 'BBBB' member:INFERENCE no-member:28:8:CCC.__init__:Module 'functional.n.non.non_init_parent_called' has no 'BBBB' member:INFERENCE -super-init-not-called:49:4:Super2.__init__:__init__ method from base class 'dict' is not called +super-init-not-called:49:4:Super2.__init__:__init__ method from base class 'dict' is not called:HIGH no-member:51:8:Super2.__init__:Super of 'Super2' has no '__woohoo__' member:INFERENCE diff --git a/tests/functional/n/non/non_iterator_returned.txt b/tests/functional/n/non/non_iterator_returned.txt index a78948236c..e65ae24fbb 100644 --- a/tests/functional/n/non/non_iterator_returned.txt +++ b/tests/functional/n/non/non_iterator_returned.txt @@ -1,4 +1,4 @@ -non-iterator-returned:79:4:FirstBadIterator.__iter__:__iter__ returns non-iterator -non-iterator-returned:86:4:SecondBadIterator.__iter__:__iter__ returns non-iterator -non-iterator-returned:93:4:ThirdBadIterator.__iter__:__iter__ returns non-iterator -non-iterator-returned:100:4:FourthBadIterator.__iter__:__iter__ returns non-iterator +non-iterator-returned:79:4:FirstBadIterator.__iter__:__iter__ returns non-iterator:HIGH +non-iterator-returned:86:4:SecondBadIterator.__iter__:__iter__ returns non-iterator:HIGH +non-iterator-returned:93:4:ThirdBadIterator.__iter__:__iter__ returns non-iterator:HIGH +non-iterator-returned:100:4:FourthBadIterator.__iter__:__iter__ returns non-iterator:HIGH diff --git a/tests/functional/n/non/non_str_assignment_to_dunder_name.txt b/tests/functional/n/non/non_str_assignment_to_dunder_name.txt index b6cc0ce5d7..13571ab28d 100644 --- a/tests/functional/n/non/non_str_assignment_to_dunder_name.txt +++ b/tests/functional/n/non/non_str_assignment_to_dunder_name.txt @@ -1,8 +1,8 @@ -non-str-assignment-to-dunder-name:37:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:38:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:39:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:40:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:46:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:47:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:48:0::Non-string value assigned to __name__ -non-str-assignment-to-dunder-name:49:0::Non-string value assigned to __name__ +non-str-assignment-to-dunder-name:37:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:38:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:39:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:40:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:46:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:47:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:48:0::Non-string value assigned to __name__:HIGH +non-str-assignment-to-dunder-name:49:0::Non-string value assigned to __name__:HIGH diff --git a/tests/functional/n/none_dunder_protocols.txt b/tests/functional/n/none_dunder_protocols.txt index d55000645e..1a41bf23c1 100644 --- a/tests/functional/n/none_dunder_protocols.txt +++ b/tests/functional/n/none_dunder_protocols.txt @@ -1,6 +1,6 @@ -unsupported-membership-test:29:9:test:Value 'NonIterableClass' doesn't support membership test -unsupported-membership-test:30:9:test:Value 'OldNonIterableClass' doesn't support membership test -unsupported-membership-test:31:9:test:Value 'NonContainerClass' doesn't support membership test -unsupported-membership-test:32:9:test:Value 'NonIterableClass()' doesn't support membership test -unsupported-membership-test:33:9:test:Value 'OldNonIterableClass()' doesn't support membership test -unsupported-membership-test:34:9:test:Value 'NonContainerClass()' doesn't support membership test +unsupported-membership-test:29:9:test:Value 'NonIterableClass' doesn't support membership test:HIGH +unsupported-membership-test:30:9:test:Value 'OldNonIterableClass' doesn't support membership test:HIGH +unsupported-membership-test:31:9:test:Value 'NonContainerClass' doesn't support membership test:HIGH +unsupported-membership-test:32:9:test:Value 'NonIterableClass()' doesn't support membership test:HIGH +unsupported-membership-test:33:9:test:Value 'OldNonIterableClass()' doesn't support membership test:HIGH +unsupported-membership-test:34:9:test:Value 'NonContainerClass()' doesn't support membership test:HIGH diff --git a/tests/functional/n/nonexistent_operator.txt b/tests/functional/n/nonexistent_operator.txt index 67d064606f..6c6c37ad22 100644 --- a/tests/functional/n/nonexistent_operator.txt +++ b/tests/functional/n/nonexistent_operator.txt @@ -1,6 +1,6 @@ -nonexistent-operator:6:4::Use of the non-existent ++ operator -nonexistent-operator:7:0::Use of the non-existent ++ operator -nonexistent-operator:8:5::Use of the non-existent ++ operator -nonexistent-operator:12:4::Use of the non-existent -- operator -nonexistent-operator:14:0::Use of the non-existent -- operator -nonexistent-operator:15:5::Use of the non-existent -- operator +nonexistent-operator:6:4::Use of the non-existent ++ operator:HIGH +nonexistent-operator:7:0::Use of the non-existent ++ operator:HIGH +nonexistent-operator:8:5::Use of the non-existent ++ operator:HIGH +nonexistent-operator:12:4::Use of the non-existent -- operator:HIGH +nonexistent-operator:14:0::Use of the non-existent -- operator:HIGH +nonexistent-operator:15:5::Use of the non-existent -- operator:HIGH diff --git a/tests/functional/n/nonlocal_and_global.txt b/tests/functional/n/nonlocal_and_global.txt index 3b5668aac2..64a7fd6707 100644 --- a/tests/functional/n/nonlocal_and_global.txt +++ b/tests/functional/n/nonlocal_and_global.txt @@ -1 +1 @@ -nonlocal-and-global:4:0:bad:Name 'missing' is nonlocal and global +nonlocal-and-global:4:0:bad:Name 'missing' is nonlocal and global:HIGH diff --git a/tests/functional/n/nonlocal_without_binding.txt b/tests/functional/n/nonlocal_without_binding.txt index df5595aae6..72c3a316a6 100644 --- a/tests/functional/n/nonlocal_without_binding.txt +++ b/tests/functional/n/nonlocal_without_binding.txt @@ -1,3 +1,3 @@ -nonlocal-without-binding:22:8:func.other_func:nonlocal name b found without binding -nonlocal-without-binding:25:4:SomeClass:nonlocal name x found without binding -nonlocal-without-binding:28:8:SomeClass.func:nonlocal name some_attr found without binding +nonlocal-without-binding:22:8:func.other_func:nonlocal name b found without binding:HIGH +nonlocal-without-binding:25:4:SomeClass:nonlocal name x found without binding:HIGH +nonlocal-without-binding:28:8:SomeClass.func:nonlocal name some_attr found without binding:HIGH diff --git a/tests/functional/n/not_async_context_manager.txt b/tests/functional/n/not_async_context_manager.txt index 01b411303c..5a5b95bf17 100644 --- a/tests/functional/n/not_async_context_manager.txt +++ b/tests/functional/n/not_async_context_manager.txt @@ -1,5 +1,5 @@ -not-async-context-manager:51:4:bad_coro:Async context manager 'int' doesn't implement __aenter__ and __aexit__. -not-async-context-manager:53:4:bad_coro:Async context manager 'generator' doesn't implement __aenter__ and __aexit__. -not-async-context-manager:55:4:bad_coro:Async context manager 'ContextManager' doesn't implement __aenter__ and __aexit__. -not-async-context-manager:57:4:bad_coro:Async context manager 'PartialAsyncContextManager' doesn't implement __aenter__ and __aexit__. -not-async-context-manager:59:4:bad_coro:Async context manager 'SecondPartialAsyncContextManager' doesn't implement __aenter__ and __aexit__. +not-async-context-manager:51:4:bad_coro:Async context manager 'int' doesn't implement __aenter__ and __aexit__.:HIGH +not-async-context-manager:53:4:bad_coro:Async context manager 'generator' doesn't implement __aenter__ and __aexit__.:HIGH +not-async-context-manager:55:4:bad_coro:Async context manager 'ContextManager' doesn't implement __aenter__ and __aexit__.:HIGH +not-async-context-manager:57:4:bad_coro:Async context manager 'PartialAsyncContextManager' doesn't implement __aenter__ and __aexit__.:HIGH +not-async-context-manager:59:4:bad_coro:Async context manager 'SecondPartialAsyncContextManager' doesn't implement __aenter__ and __aexit__.:HIGH diff --git a/tests/functional/n/not_context_manager.txt b/tests/functional/n/not_context_manager.txt index 71b3af3998..222380b714 100644 --- a/tests/functional/n/not_context_manager.txt +++ b/tests/functional/n/not_context_manager.txt @@ -1,5 +1,5 @@ -not-context-manager:23:0::Context manager 'NotAManager' doesn't implement __enter__ and __exit__. -not-context-manager:37:0::Context manager 'dec' doesn't implement __enter__ and __exit__. -not-context-manager:55:0::Context manager 'int' doesn't implement __enter__ and __exit__. -not-context-manager:90:0::Context manager 'int' doesn't implement __enter__ and __exit__. -not-context-manager:134:0::Context manager 'generator' doesn't implement __enter__ and __exit__. +not-context-manager:23:0::Context manager 'NotAManager' doesn't implement __enter__ and __exit__.:HIGH +not-context-manager:37:0::Context manager 'dec' doesn't implement __enter__ and __exit__.:HIGH +not-context-manager:55:0::Context manager 'int' doesn't implement __enter__ and __exit__.:HIGH +not-context-manager:90:0::Context manager 'int' doesn't implement __enter__ and __exit__.:HIGH +not-context-manager:134:0::Context manager 'generator' doesn't implement __enter__ and __exit__.:HIGH diff --git a/tests/functional/n/not_in_loop.txt b/tests/functional/n/not_in_loop.txt index d4f82e5c70..8d7fd12c5f 100644 --- a/tests/functional/n/not_in_loop.txt +++ b/tests/functional/n/not_in_loop.txt @@ -1,8 +1,8 @@ -not-in-loop:8:8:ala:'continue' not properly in loop -not-in-loop:13:4::'continue' not properly in loop -not-in-loop:16:4:lala:'continue' not properly in loop -not-in-loop:20:8:A:'continue' not properly in loop -not-in-loop:25:4::'continue' not properly in loop -not-in-loop:30:4::'break' not properly in loop -not-in-loop:33:4::'continue' not properly in loop -not-in-loop:35:4::'break' not properly in loop +not-in-loop:8:8:ala:'continue' not properly in loop:HIGH +not-in-loop:13:4::'continue' not properly in loop:HIGH +not-in-loop:16:4:lala:'continue' not properly in loop:HIGH +not-in-loop:20:8:A:'continue' not properly in loop:HIGH +not-in-loop:25:4::'continue' not properly in loop:HIGH +not-in-loop:30:4::'break' not properly in loop:HIGH +not-in-loop:33:4::'continue' not properly in loop:HIGH +not-in-loop:35:4::'break' not properly in loop:HIGH diff --git a/tests/functional/p/postponed_evaluation_not_activated.txt b/tests/functional/p/postponed_evaluation_not_activated.txt index ece8a13e4c..65cb294f0b 100644 --- a/tests/functional/p/postponed_evaluation_not_activated.txt +++ b/tests/functional/p/postponed_evaluation_not_activated.txt @@ -1,2 +1,2 @@ -undefined-variable:6:36:Class.from_string:Undefined variable 'Class' -used-before-assignment:9:30:Class.validate_b:Using variable 'OtherClass' before assignment +undefined-variable:6:36:Class.from_string:Undefined variable 'Class':HIGH +used-before-assignment:9:30:Class.validate_b:Using variable 'OtherClass' before assignment:HIGH diff --git a/tests/functional/p/postponed_evaluation_pep585_py39.txt b/tests/functional/p/postponed_evaluation_pep585_py39.txt index e0d0010a29..6d872ecaa2 100644 --- a/tests/functional/p/postponed_evaluation_pep585_py39.txt +++ b/tests/functional/p/postponed_evaluation_pep585_py39.txt @@ -1 +1 @@ -unsubscriptable-object:106:7::Value 'OrderedDict' is unsubscriptable +unsubscriptable-object:106:7::Value 'OrderedDict' is unsubscriptable:HIGH diff --git a/tests/functional/p/preferred_module.txt b/tests/functional/p/preferred_module.txt index 8ac3be36b8..5f94823b2b 100644 --- a/tests/functional/p/preferred_module.txt +++ b/tests/functional/p/preferred_module.txt @@ -1,2 +1,2 @@ -preferred-module:4:0::Prefer importing 'ujson' instead of 'json' -preferred-module:5:0::Prefer importing 'regex' instead of 're' +preferred-module:4:0::Prefer importing 'ujson' instead of 'json':HIGH +preferred-module:5:0::Prefer importing 'regex' instead of 're':HIGH diff --git a/tests/functional/p/property_with_parameters.txt b/tests/functional/p/property_with_parameters.txt index 732640cc4b..8ae568a9dc 100644 --- a/tests/functional/p/property_with_parameters.txt +++ b/tests/functional/p/property_with_parameters.txt @@ -1 +1 @@ -property-with-parameters:7:4:Cls.attribute:Cannot have defined parameters for properties +property-with-parameters:7:4:Cls.attribute:Cannot have defined parameters for properties:HIGH diff --git a/tests/functional/p/protected_access_access_different_scopes.txt b/tests/functional/p/protected_access_access_different_scopes.txt index 17736cc83b..1fcfe57fa6 100644 --- a/tests/functional/p/protected_access_access_different_scopes.txt +++ b/tests/functional/p/protected_access_access_different_scopes.txt @@ -1,2 +1,2 @@ -undefined-variable:9:11:function:Undefined variable 'self' -undefined-variable:13:4:func:Undefined variable 'self' +undefined-variable:9:11:function:Undefined variable 'self':HIGH +undefined-variable:13:4:func:Undefined variable 'self':HIGH diff --git a/tests/functional/p/protocol_classes.txt b/tests/functional/p/protocol_classes.txt index f85953fc87..28562aa04e 100644 --- a/tests/functional/p/protocol_classes.txt +++ b/tests/functional/p/protocol_classes.txt @@ -1,3 +1,3 @@ -no-self-use:31:4:HasherFake.update:Method could be a function +no-self-use:31:4:HasherFake.update:Method could be a function:HIGH unused-argument:31:21:HasherFake.update:Unused argument 'blob':INFERENCE -no-self-use:33:4:HasherFake.digest:Method could be a function +no-self-use:33:4:HasherFake.digest:Method could be a function:HIGH diff --git a/tests/functional/r/raise/raise_missing_from.txt b/tests/functional/r/raise/raise_missing_from.txt index 15138705a5..e6e487e27a 100644 --- a/tests/functional/r/raise/raise_missing_from.txt +++ b/tests/functional/r/raise/raise_missing_from.txt @@ -1,7 +1,7 @@ -raise-missing-from:11:4::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:19:4::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:25:4::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:31:4::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:45:20::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:53:4::Consider explicitly re-raising using the 'from' keyword -raise-missing-from:59:4::Consider explicitly re-raising using the 'from' keyword +raise-missing-from:11:4::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:19:4::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:25:4::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:31:4::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:45:20::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:53:4::Consider explicitly re-raising using the 'from' keyword:HIGH +raise-missing-from:59:4::Consider explicitly re-raising using the 'from' keyword:HIGH diff --git a/tests/functional/r/raise/raising_format_tuple.txt b/tests/functional/r/raise/raising_format_tuple.txt index d663ca4546..f48820f22c 100644 --- a/tests/functional/r/raise/raising_format_tuple.txt +++ b/tests/functional/r/raise/raising_format_tuple.txt @@ -1,7 +1,7 @@ -raising-format-tuple:11:4:bad_percent:Exception arguments suggest string formatting might be intended -raising-format-tuple:19:4:bad_multiarg:Exception arguments suggest string formatting might be intended -raising-format-tuple:27:4:bad_braces:Exception arguments suggest string formatting might be intended -raising-format-tuple:35:4:bad_multistring:Exception arguments suggest string formatting might be intended -raising-format-tuple:41:4:bad_triplequote:Exception arguments suggest string formatting might be intended -raising-format-tuple:47:4:bad_unicode:Exception arguments suggest string formatting might be intended -raising-format-tuple:52:4:raise_something_without_name:Exception arguments suggest string formatting might be intended +raising-format-tuple:11:4:bad_percent:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:19:4:bad_multiarg:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:27:4:bad_braces:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:35:4:bad_multistring:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:41:4:bad_triplequote:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:47:4:bad_unicode:Exception arguments suggest string formatting might be intended:HIGH +raising-format-tuple:52:4:raise_something_without_name:Exception arguments suggest string formatting might be intended:HIGH diff --git a/tests/functional/r/raise/raising_non_exception.txt b/tests/functional/r/raise/raising_non_exception.txt index 9a2e494f18..785c2ec99b 100644 --- a/tests/functional/r/raise/raising_non_exception.txt +++ b/tests/functional/r/raise/raising_non_exception.txt @@ -1 +1 @@ -raising-non-exception:13:0::Raising a new style class which doesn't inherit from BaseException +raising-non-exception:13:0::Raising a new style class which doesn't inherit from BaseException:HIGH diff --git a/tests/functional/r/redeclared_assigned_name.txt b/tests/functional/r/redeclared_assigned_name.txt index 931c8a2b69..a6bb9e60a7 100644 --- a/tests/functional/r/redeclared_assigned_name.txt +++ b/tests/functional/r/redeclared_assigned_name.txt @@ -1,4 +1,4 @@ -redeclared-assigned-name:3:0::Redeclared variable 'FIRST' in assignment -redeclared-assigned-name:5:4::Redeclared variable 'SECOND' in assignment -redeclared-assigned-name:8:11::Redeclared variable 'SECOND' in assignment -redeclared-assigned-name:11:4::Redeclared variable 'DUMM' in assignment +redeclared-assigned-name:3:0::Redeclared variable 'FIRST' in assignment:HIGH +redeclared-assigned-name:5:4::Redeclared variable 'SECOND' in assignment:HIGH +redeclared-assigned-name:8:11::Redeclared variable 'SECOND' in assignment:HIGH +redeclared-assigned-name:11:4::Redeclared variable 'DUMM' in assignment:HIGH diff --git a/tests/functional/r/redefine_loop.txt b/tests/functional/r/redefine_loop.txt index dec738ee84..9323cd1f89 100644 --- a/tests/functional/r/redefine_loop.txt +++ b/tests/functional/r/redefine_loop.txt @@ -1 +1 @@ -redefined-outer-name:4:4::Redefining name 'item' from outer scope (line 2) +redefined-outer-name:4:4::Redefining name 'item' from outer scope (line 2):HIGH diff --git a/tests/functional/r/redefined_argument_from_local.txt b/tests/functional/r/redefined_argument_from_local.txt index b811971c6a..faac8acc36 100644 --- a/tests/functional/r/redefined_argument_from_local.txt +++ b/tests/functional/r/redefined_argument_from_local.txt @@ -1,7 +1,7 @@ -redefined-argument-from-local:6:48:test_redefined_in_with:Redefining argument with the local name 'name' -redefined-argument-from-local:8:57:test_redefined_in_with:Redefining argument with the local name 'name' -redefined-argument-from-local:12:9:test_redefined_in_with:Redefining argument with the local name 'name' -redefined-argument-from-local:26:8:test_redefined_in_for:Redefining argument with the local name 'name' -redefined-argument-from-local:28:9:test_redefined_in_for:Redefining argument with the local name 'name' -redefined-argument-from-local:30:15:test_redefined_in_for:Redefining argument with the local name 'name' -redefined-argument-from-local:50:4:test_redefined_in_except_handler:Redefining argument with the local name 'name' +redefined-argument-from-local:6:48:test_redefined_in_with:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:8:57:test_redefined_in_with:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:12:9:test_redefined_in_with:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:26:8:test_redefined_in_for:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:28:9:test_redefined_in_for:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:30:15:test_redefined_in_for:Redefining argument with the local name 'name':HIGH +redefined-argument-from-local:50:4:test_redefined_in_except_handler:Redefining argument with the local name 'name':HIGH diff --git a/tests/functional/r/redefined_builtin.txt b/tests/functional/r/redefined_builtin.txt index 8d652510cc..109292b635 100644 --- a/tests/functional/r/redefined_builtin.txt +++ b/tests/functional/r/redefined_builtin.txt @@ -1,2 +1,2 @@ -redefined-builtin:6:4:function:Redefining built-in 'type' -redefined-builtin:10:0::Redefining built-in 'map' +redefined-builtin:6:4:function:Redefining built-in 'type':HIGH +redefined-builtin:10:0::Redefining built-in 'map':HIGH diff --git a/tests/functional/r/redefined_builtin_allowed.txt b/tests/functional/r/redefined_builtin_allowed.txt index cd97f3249f..134b309117 100644 --- a/tests/functional/r/redefined_builtin_allowed.txt +++ b/tests/functional/r/redefined_builtin_allowed.txt @@ -1,2 +1,2 @@ -redefined-builtin:6:4:function:Redefining built-in 'dict' -redefined-builtin:9:0::Redefining built-in 'list' +redefined-builtin:6:4:function:Redefining built-in 'dict':HIGH +redefined-builtin:9:0::Redefining built-in 'list':HIGH diff --git a/tests/functional/r/redundant_unittest_assert.txt b/tests/functional/r/redundant_unittest_assert.txt index ad9d22a973..06c107524e 100644 --- a/tests/functional/r/redundant_unittest_assert.txt +++ b/tests/functional/r/redundant_unittest_assert.txt @@ -1,6 +1,6 @@ -redundant-unittest-assert:17:8:Tests.test_something:Redundant use of assertTrue with constant value 'I meant assertEqual not assertTrue' -redundant-unittest-assert:19:8:Tests.test_something:Redundant use of assertFalse with constant value 'I meant assertEqual not assertFalse' -redundant-unittest-assert:21:8:Tests.test_something:Redundant use of assertTrue with constant value True -redundant-unittest-assert:23:8:Tests.test_something:Redundant use of assertFalse with constant value False -redundant-unittest-assert:25:8:Tests.test_something:Redundant use of assertFalse with constant value None -redundant-unittest-assert:27:8:Tests.test_something:Redundant use of assertTrue with constant value 0 +redundant-unittest-assert:17:8:Tests.test_something:Redundant use of assertTrue with constant value 'I meant assertEqual not assertTrue':HIGH +redundant-unittest-assert:19:8:Tests.test_something:Redundant use of assertFalse with constant value 'I meant assertEqual not assertFalse':HIGH +redundant-unittest-assert:21:8:Tests.test_something:Redundant use of assertTrue with constant value True:HIGH +redundant-unittest-assert:23:8:Tests.test_something:Redundant use of assertFalse with constant value False:HIGH +redundant-unittest-assert:25:8:Tests.test_something:Redundant use of assertFalse with constant value None:HIGH +redundant-unittest-assert:27:8:Tests.test_something:Redundant use of assertTrue with constant value 0:HIGH diff --git a/tests/functional/r/regression/regression_3416_unused_argument_raise.txt b/tests/functional/r/regression/regression_3416_unused_argument_raise.txt index 44d7a62300..1a464fcd9c 100644 --- a/tests/functional/r/regression/regression_3416_unused_argument_raise.txt +++ b/tests/functional/r/regression/regression_3416_unused_argument_raise.txt @@ -1,3 +1,3 @@ -unused-argument:9:8:fun:Unused argument 'arg_a' -unused-argument:9:15:fun:Unused argument 'arg_b' -unused-argument:9:22:fun:Unused argument 'arg_c' +unused-argument:9:8:fun:Unused argument 'arg_a':HIGH +unused-argument:9:15:fun:Unused argument 'arg_b':HIGH +unused-argument:9:22:fun:Unused argument 'arg_c':HIGH diff --git a/tests/functional/r/regression/regression___file___global.txt b/tests/functional/r/regression/regression___file___global.txt index 502b452ecb..af47bfc325 100644 --- a/tests/functional/r/regression/regression___file___global.txt +++ b/tests/functional/r/regression/regression___file___global.txt @@ -1,2 +1,2 @@ -global-statement:5:4:func:Using the global statement -redefined-builtin:5:4:func:Redefining built-in '__file__' +global-statement:5:4:func:Using the global statement:HIGH +redefined-builtin:5:4:func:Redefining built-in '__file__':HIGH diff --git a/tests/functional/r/regression/regression_implicit_none_with_no_return.txt b/tests/functional/r/regression/regression_implicit_none_with_no_return.txt index 5163b7b7c0..bf5122be45 100644 --- a/tests/functional/r/regression/regression_implicit_none_with_no_return.txt +++ b/tests/functional/r/regression/regression_implicit_none_with_no_return.txt @@ -1,2 +1,2 @@ -not-callable:17:0::a.func() is not callable -invalid-sequence-index:18:0::Sequence index is not an int, slice, or instance with __index__ +not-callable:17:0::a.func() is not callable:HIGH +invalid-sequence-index:18:0::Sequence index is not an int, slice, or instance with __index__:HIGH diff --git a/tests/functional/r/regression/regression_infer_call_result_3690.txt b/tests/functional/r/regression/regression_infer_call_result_3690.txt index bd69d7f7ec..9ea29879a0 100644 --- a/tests/functional/r/regression/regression_infer_call_result_3690.txt +++ b/tests/functional/r/regression/regression_infer_call_result_3690.txt @@ -1 +1 @@ -deprecated-pragma:1:0::"Pragma ""disable-msg"" is deprecated, use ""disable"" instead" +deprecated-pragma:1:0::"Pragma ""disable-msg"" is deprecated, use ""disable"" instead":HIGH diff --git a/tests/functional/r/regression/regression_properties_in_class_context.txt b/tests/functional/r/regression/regression_properties_in_class_context.txt index 9b754bde34..c1c6c37d53 100644 --- a/tests/functional/r/regression/regression_properties_in_class_context.txt +++ b/tests/functional/r/regression/regression_properties_in_class_context.txt @@ -1,2 +1,2 @@ -unsupported-membership-test:42:14::Value 'Child2.a_method' doesn't support membership test -not-an-iterable:43:13::Non-iterable value Child2.a_method is used in an iterating context +unsupported-membership-test:42:14::Value 'Child2.a_method' doesn't support membership test:HIGH +not-an-iterable:43:13::Non-iterable value Child2.a_method is used in an iterating context:HIGH diff --git a/tests/functional/r/reimport.txt b/tests/functional/r/reimport.txt index c57d148175..fd82f3e9df 100644 --- a/tests/functional/r/reimport.txt +++ b/tests/functional/r/reimport.txt @@ -1,4 +1,4 @@ -reimported:8:0::Reimport 'os' (imported line 6) -reimported:16:4::Reimport 'exists' (imported line 7) -reimported:21:4:func:Reimport 'os' (imported line 6) -reimported:23:4:func:Reimport 're' (imported line 9) +reimported:8:0::Reimport 'os' (imported line 6):HIGH +reimported:16:4::Reimport 'exists' (imported line 7):HIGH +reimported:21:4:func:Reimport 'os' (imported line 6):HIGH +reimported:23:4:func:Reimport 're' (imported line 9):HIGH diff --git a/tests/functional/r/reimported.txt b/tests/functional/r/reimported.txt index f947012af8..b620f0aae0 100644 --- a/tests/functional/r/reimported.txt +++ b/tests/functional/r/reimported.txt @@ -1,9 +1,9 @@ -reimported:3:0::Reimport 'sleep' (imported line 3) -reimported:4:0::Reimport 'missing' (imported line 4) -reimported:7:0::Reimport 'missing1' (imported line 6) -reimported:10:0::Reimport 'deque' (imported line 9) -reimported:24:0::Reimport 'ElementTree' (imported line 23) -reimported:27:0::Reimport 'email.encoders' (imported line 26) -reimported:29:0::Reimport 'sys' (imported line 21) -redefined-outer-name:40:4:reimport:Redefining name 'sys' from outer scope (line 16) -reimported:40:4:reimport:Reimport 'sys' (imported line 21) +reimported:3:0::Reimport 'sleep' (imported line 3):HIGH +reimported:4:0::Reimport 'missing' (imported line 4):HIGH +reimported:7:0::Reimport 'missing1' (imported line 6):HIGH +reimported:10:0::Reimport 'deque' (imported line 9):HIGH +reimported:24:0::Reimport 'ElementTree' (imported line 23):HIGH +reimported:27:0::Reimport 'email.encoders' (imported line 26):HIGH +reimported:29:0::Reimport 'sys' (imported line 21):HIGH +redefined-outer-name:40:4:reimport:Redefining name 'sys' from outer scope (line 16):HIGH +reimported:40:4:reimport:Reimport 'sys' (imported line 21):HIGH diff --git a/tests/functional/r/renamed_import_logging_not_lazy.txt b/tests/functional/r/renamed_import_logging_not_lazy.txt index f60571e7f5..527263a40e 100644 --- a/tests/functional/r/renamed_import_logging_not_lazy.txt +++ b/tests/functional/r/renamed_import_logging_not_lazy.txt @@ -1,2 +1,2 @@ -logging-not-lazy:16:0::Use lazy % formatting in logging functions -logging-not-lazy:17:0::Use lazy % formatting in logging functions +logging-not-lazy:16:0::Use lazy % formatting in logging functions:HIGH +logging-not-lazy:17:0::Use lazy % formatting in logging functions:HIGH diff --git a/tests/functional/r/repeated_keyword.txt b/tests/functional/r/repeated_keyword.txt index 29b23efe40..4fc8028067 100644 --- a/tests/functional/r/repeated_keyword.txt +++ b/tests/functional/r/repeated_keyword.txt @@ -1 +1 @@ -repeated-keyword:13:0::Got multiple values for keyword argument 'b' in function call +repeated-keyword:13:0::Got multiple values for keyword argument 'b' in function call:HIGH diff --git a/tests/functional/r/return_in_init.txt b/tests/functional/r/return_in_init.txt index f7ecc37f01..0f21a43827 100644 --- a/tests/functional/r/return_in_init.txt +++ b/tests/functional/r/return_in_init.txt @@ -1 +1 @@ -return-in-init:5:4:MyClass.__init__:Explicit return in __init__ +return-in-init:5:4:MyClass.__init__:Explicit return in __init__:HIGH diff --git a/tests/functional/r/return_outside_function.txt b/tests/functional/r/return_outside_function.txt index b4ae4f3596..20c955a1a0 100644 --- a/tests/functional/r/return_outside_function.txt +++ b/tests/functional/r/return_outside_function.txt @@ -1 +1 @@ -return-outside-function:2:0::Return outside function +return-outside-function:2:0::Return outside function:HIGH diff --git a/tests/functional/r/reused_outer_loop_variable.txt b/tests/functional/r/reused_outer_loop_variable.txt index 8edec28fb6..6fc6fd4530 100644 --- a/tests/functional/r/reused_outer_loop_variable.txt +++ b/tests/functional/r/reused_outer_loop_variable.txt @@ -1,4 +1,4 @@ -redefined-outer-name:7:4::Redefining name 'i' from outer scope (line 6) -redefined-outer-name:12:4::Redefining name 'i' from outer scope (line 11) -redefined-outer-name:17:4::Redefining name 'i' from outer scope (line 16) -redefined-outer-name:22:4::Redefining name 'a' from outer scope (line 21) +redefined-outer-name:7:4::Redefining name 'i' from outer scope (line 6):HIGH +redefined-outer-name:12:4::Redefining name 'i' from outer scope (line 11):HIGH +redefined-outer-name:17:4::Redefining name 'i' from outer scope (line 16):HIGH +redefined-outer-name:22:4::Redefining name 'a' from outer scope (line 21):HIGH diff --git a/tests/functional/r/reused_outer_loop_variable_py3.txt b/tests/functional/r/reused_outer_loop_variable_py3.txt index dcc32e8dc0..f04cc6666a 100644 --- a/tests/functional/r/reused_outer_loop_variable_py3.txt +++ b/tests/functional/r/reused_outer_loop_variable_py3.txt @@ -1 +1 @@ -redefined-outer-name:4:4::Redefining name 'j' from outer scope (line 3) +redefined-outer-name:4:4::Redefining name 'j' from outer scope (line 3):HIGH diff --git a/tests/functional/s/self/self_assigning_variable.txt b/tests/functional/s/self/self_assigning_variable.txt index a1262deccc..06415ef283 100644 --- a/tests/functional/s/self/self_assigning_variable.txt +++ b/tests/functional/s/self/self_assigning_variable.txt @@ -1,2 +1,2 @@ -self-assigning-variable:19:0::Assigning the same variable 'FIRST' to itself -self-assigning-variable:20:0::Assigning the same variable 'FIRST' to itself +self-assigning-variable:19:0::Assigning the same variable 'FIRST' to itself:HIGH +self-assigning-variable:20:0::Assigning the same variable 'FIRST' to itself:HIGH diff --git a/tests/functional/s/signature_differs.txt b/tests/functional/s/signature_differs.txt index 5281903bca..49dcacdc73 100644 --- a/tests/functional/s/signature_differs.txt +++ b/tests/functional/s/signature_differs.txt @@ -1 +1 @@ -signature-differs:21:4:Cdef.abcd:Signature differs from overridden 'abcd' method +signature-differs:21:4:Cdef.abcd:Signature differs from overridden 'abcd' method:HIGH diff --git a/tests/functional/s/simplifiable/simplifiable_condition.txt b/tests/functional/s/simplifiable/simplifiable_condition.txt index b3552b50f5..d235b86257 100644 --- a/tests/functional/s/simplifiable/simplifiable_condition.txt +++ b/tests/functional/s/simplifiable/simplifiable_condition.txt @@ -1,12 +1,12 @@ -simplifiable-condition:13:5::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT' -simplifiable-condition:14:7::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT' -simplifiable-condition:15:3::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT' -simplifiable-condition:17:5::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT' -simplifiable-condition:19:6::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT' -simplifiable-condition:21:5::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT' -simplifiable-condition:22:29::Boolean condition 'x or False' may be simplified to 'x' -simplifiable-condition:25:7::Boolean condition 'CONSTANT or True and False' may be simplified to 'CONSTANT' -simplifiable-condition:26:7::Boolean condition 'True and CONSTANT and OTHER' may be simplified to 'CONSTANT and OTHER' -simplifiable-condition:27:7::Boolean condition '(CONSTANT or False) and (OTHER or True)' may be simplified to 'CONSTANT' -simplifiable-condition:30:7::Boolean condition '[] or CONSTANT' may be simplified to 'CONSTANT' -simplifiable-condition:31:7::Boolean condition '{} or CONSTANT' may be simplified to 'CONSTANT' +simplifiable-condition:13:5::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:14:7::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:15:3::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:17:5::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:19:6::Boolean condition 'CONSTANT and True' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:21:5::Boolean condition 'CONSTANT or False' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:22:29::Boolean condition 'x or False' may be simplified to 'x':HIGH +simplifiable-condition:25:7::Boolean condition 'CONSTANT or True and False' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:26:7::Boolean condition 'True and CONSTANT and OTHER' may be simplified to 'CONSTANT and OTHER':HIGH +simplifiable-condition:27:7::Boolean condition '(CONSTANT or False) and (OTHER or True)' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:30:7::Boolean condition '[] or CONSTANT' may be simplified to 'CONSTANT':HIGH +simplifiable-condition:31:7::Boolean condition '{} or CONSTANT' may be simplified to 'CONSTANT':HIGH diff --git a/tests/functional/s/simplifiable/simplifiable_if_expression.txt b/tests/functional/s/simplifiable/simplifiable_if_expression.txt index 872df8c250..95d81cb112 100644 --- a/tests/functional/s/simplifiable/simplifiable_if_expression.txt +++ b/tests/functional/s/simplifiable/simplifiable_if_expression.txt @@ -1,4 +1,4 @@ -simplifiable-if-expression:8:11:test_simplifiable_1:The if expression can be replaced with 'bool(test)' -simplifiable-if-expression:12:11:test_simplifiable_2:The if expression can be replaced with 'not test' -simplifiable-if-expression:16:11:test_simplifiable_3:The if expression can be replaced with 'test' -simplifiable-if-expression:20:11:test_simplifiable_4:The if expression can be replaced with 'not test' +simplifiable-if-expression:8:11:test_simplifiable_1:The if expression can be replaced with 'bool(test)':HIGH +simplifiable-if-expression:12:11:test_simplifiable_2:The if expression can be replaced with 'not test':HIGH +simplifiable-if-expression:16:11:test_simplifiable_3:The if expression can be replaced with 'test':HIGH +simplifiable-if-expression:20:11:test_simplifiable_4:The if expression can be replaced with 'not test':HIGH diff --git a/tests/functional/s/simplifiable/simplifiable_if_statement.txt b/tests/functional/s/simplifiable/simplifiable_if_statement.txt index aa61f49939..6572241818 100644 --- a/tests/functional/s/simplifiable/simplifiable_if_statement.txt +++ b/tests/functional/s/simplifiable/simplifiable_if_statement.txt @@ -1,4 +1,4 @@ -simplifiable-if-statement:8:4:test_simplifiable_1:The if statement can be replaced with 'return bool(test)' -simplifiable-if-statement:16:4:test_simplifiable_2:The if statement can be replaced with 'return bool(test)' -simplifiable-if-statement:24:4:test_simplifiable_3:The if statement can be replaced with 'var = bool(test)' -simplifiable-if-statement:35:8:test_simplifiable_4:The if statement can be replaced with 'return bool(test)' +simplifiable-if-statement:8:4:test_simplifiable_1:The if statement can be replaced with 'return bool(test)':HIGH +simplifiable-if-statement:16:4:test_simplifiable_2:The if statement can be replaced with 'return bool(test)':HIGH +simplifiable-if-statement:24:4:test_simplifiable_3:The if statement can be replaced with 'var = bool(test)':HIGH +simplifiable-if-statement:35:8:test_simplifiable_4:The if statement can be replaced with 'return bool(test)':HIGH diff --git a/tests/functional/s/simplifiable/simplify_chained_comparison.txt b/tests/functional/s/simplifiable/simplify_chained_comparison.txt index fe8d3c384e..aa081505be 100644 --- a/tests/functional/s/simplifiable/simplify_chained_comparison.txt +++ b/tests/functional/s/simplifiable/simplify_chained_comparison.txt @@ -1,18 +1,18 @@ -chained-comparison:10:11:test_simplify_chained_comparison_1:Simplify chained comparison between the operands -chained-comparison:15:11:test_simplify_chained_comparison_2:Simplify chained comparison between the operands -chained-comparison:23:7:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:25:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:27:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:29:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:31:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:33:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:37:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:39:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:41:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:43:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:45:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:47:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:49:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:51:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:53:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands -chained-comparison:55:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands +chained-comparison:10:11:test_simplify_chained_comparison_1:Simplify chained comparison between the operands:HIGH +chained-comparison:15:11:test_simplify_chained_comparison_2:Simplify chained comparison between the operands:HIGH +chained-comparison:23:7:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:25:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:27:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:29:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:31:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:33:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:37:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:39:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:41:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:43:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:45:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:47:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:49:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:51:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:53:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH +chained-comparison:55:9:test_simplify_chained_comparison_3:Simplify chained comparison between the operands:HIGH diff --git a/tests/functional/s/singledispatch_functions.txt b/tests/functional/s/singledispatch_functions.txt index 6b26e77946..2a0385dfe4 100644 --- a/tests/functional/s/singledispatch_functions.txt +++ b/tests/functional/s/singledispatch_functions.txt @@ -1,5 +1,5 @@ -unused-variable:60:4:_:Unused variable 'unused' -unused-argument:65:24:not_single_dispatch:Unused argument 'arg' -unused-argument:70:24:bad_single_dispatch:Unused argument 'arg' -function-redefined:75:0:bad_single_dispatch:function already defined line 70 -unused-argument:75:24:bad_single_dispatch:Unused argument 'arg' +unused-variable:60:4:_:Unused variable 'unused':HIGH +unused-argument:65:24:not_single_dispatch:Unused argument 'arg':HIGH +unused-argument:70:24:bad_single_dispatch:Unused argument 'arg':HIGH +function-redefined:75:0:bad_single_dispatch:function already defined line 70:HIGH +unused-argument:75:24:bad_single_dispatch:Unused argument 'arg':HIGH diff --git a/tests/functional/s/singleton_comparison.txt b/tests/functional/s/singleton_comparison.txt index 0907dcb8b0..d40728a131 100644 --- a/tests/functional/s/singleton_comparison.txt +++ b/tests/functional/s/singleton_comparison.txt @@ -1,12 +1,12 @@ -singleton-comparison:4:4::Comparison 'x == None' should be 'x is None' -singleton-comparison:5:4::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'bool(x)' if testing for truthiness -singleton-comparison:6:4::Comparison 'x == False' should be 'x is False' if checking for the singleton value False, or 'not x' if testing for falsiness -singleton-comparison:7:4::Comparison 'True == True' should be 'True is True' if checking for the singleton value True, or 'bool(True)' if testing for truthiness -singleton-comparison:11:4::Comparison 'None == x' should be 'None is x' -singleton-comparison:13:4::Comparison 'x != True' should be 'x is not True' if checking for the singleton value True, or 'not x' if testing for falsiness -singleton-comparison:14:5::Comparison 'x != False' should be 'x is not False' if checking for the singleton value False, or 'bool(x)' if testing for truthiness -singleton-comparison:15:5::Comparison 'x != None' should be 'x is not None' -singleton-comparison:16:7::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness -singleton-comparison:17:7::Comparison 'x != False' should be 'x is not False' if checking for the singleton value False, or 'x' if testing for truthiness -singleton-comparison:18:3::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness -singleton-comparison:20:9::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness +singleton-comparison:4:4::Comparison 'x == None' should be 'x is None':HIGH +singleton-comparison:5:4::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'bool(x)' if testing for truthiness:HIGH +singleton-comparison:6:4::Comparison 'x == False' should be 'x is False' if checking for the singleton value False, or 'not x' if testing for falsiness:HIGH +singleton-comparison:7:4::Comparison 'True == True' should be 'True is True' if checking for the singleton value True, or 'bool(True)' if testing for truthiness:HIGH +singleton-comparison:11:4::Comparison 'None == x' should be 'None is x':HIGH +singleton-comparison:13:4::Comparison 'x != True' should be 'x is not True' if checking for the singleton value True, or 'not x' if testing for falsiness:HIGH +singleton-comparison:14:5::Comparison 'x != False' should be 'x is not False' if checking for the singleton value False, or 'bool(x)' if testing for truthiness:HIGH +singleton-comparison:15:5::Comparison 'x != None' should be 'x is not None':HIGH +singleton-comparison:16:7::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness:HIGH +singleton-comparison:17:7::Comparison 'x != False' should be 'x is not False' if checking for the singleton value False, or 'x' if testing for truthiness:HIGH +singleton-comparison:18:3::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness:HIGH +singleton-comparison:20:9::Comparison 'x == True' should be 'x is True' if checking for the singleton value True, or 'x' if testing for truthiness:HIGH diff --git a/tests/functional/s/slots_checks.txt b/tests/functional/s/slots_checks.txt index ffe82f8a19..c450b7b24a 100644 --- a/tests/functional/s/slots_checks.txt +++ b/tests/functional/s/slots_checks.txt @@ -1,11 +1,11 @@ -invalid-slots:36:0:Bad:Invalid __slots__ object -invalid-slots:39:0:SecondBad:Invalid __slots__ object -invalid-slots-object:43:22:ThirdBad:Invalid object '2' in __slots__, must contain only non empty strings -invalid-slots:45:0:FourthBad:Invalid __slots__ object -invalid-slots-object:49:27:FifthBad:"Invalid object ""''"" in __slots__, must contain only non empty strings" -single-string-used-for-slots:51:0:SixthBad:Class __slots__ should be a non-string iterable -single-string-used-for-slots:54:0:SeventhBad:Class __slots__ should be a non-string iterable -single-string-used-for-slots:57:0:EighthBad:Class __slots__ should be a non-string iterable -class-variable-slots-conflict:85:17:ValueInSlotConflict:Value 'first' in slots conflicts with class variable -class-variable-slots-conflict:85:45:ValueInSlotConflict:Value 'fourth' in slots conflicts with class variable -class-variable-slots-conflict:85:36:ValueInSlotConflict:Value 'third' in slots conflicts with class variable +invalid-slots:36:0:Bad:Invalid __slots__ object:HIGH +invalid-slots:39:0:SecondBad:Invalid __slots__ object:HIGH +invalid-slots-object:43:22:ThirdBad:Invalid object '2' in __slots__, must contain only non empty strings:HIGH +invalid-slots:45:0:FourthBad:Invalid __slots__ object:HIGH +invalid-slots-object:49:27:FifthBad:"Invalid object ""''"" in __slots__, must contain only non empty strings":HIGH +single-string-used-for-slots:51:0:SixthBad:Class __slots__ should be a non-string iterable:HIGH +single-string-used-for-slots:54:0:SeventhBad:Class __slots__ should be a non-string iterable:HIGH +single-string-used-for-slots:57:0:EighthBad:Class __slots__ should be a non-string iterable:HIGH +class-variable-slots-conflict:85:17:ValueInSlotConflict:Value 'first' in slots conflicts with class variable:HIGH +class-variable-slots-conflict:85:45:ValueInSlotConflict:Value 'fourth' in slots conflicts with class variable:HIGH +class-variable-slots-conflict:85:36:ValueInSlotConflict:Value 'third' in slots conflicts with class variable:HIGH diff --git a/tests/functional/s/star/star_needs_assignment_target.txt b/tests/functional/s/star/star_needs_assignment_target.txt index 57f66931dd..97829c3871 100644 --- a/tests/functional/s/star/star_needs_assignment_target.txt +++ b/tests/functional/s/star/star_needs_assignment_target.txt @@ -1 +1 @@ -star-needs-assignment-target:3:8::Can use starred expression only in assignment target +star-needs-assignment-target:3:8::Can use starred expression only in assignment target:HIGH diff --git a/tests/functional/s/statement_without_effect.txt b/tests/functional/s/statement_without_effect.txt index 23ccf9547a..b95a40bd60 100644 --- a/tests/functional/s/statement_without_effect.txt +++ b/tests/functional/s/statement_without_effect.txt @@ -1,12 +1,12 @@ -pointless-string-statement:5:0::String statement has no effect -pointless-statement:9:0::Statement seems to have no effect -pointless-statement:11:0::Statement seems to have no effect -pointless-statement:15:0::Statement seems to have no effect -pointless-string-statement:18:0::String statement has no effect -unnecessary-semicolon:21:0::Unnecessary semicolon -expression-not-assigned:23:0::"Expression ""list() and tuple()"" is assigned to nothing" -expression-not-assigned:30:0::"Expression ""ANSWER == to_be()"" is assigned to nothing" -expression-not-assigned:32:0::"Expression ""to_be() or not to_be()"" is assigned to nothing" -expression-not-assigned:33:0::"Expression ""to_be().title"" is assigned to nothing" -pointless-string-statement:58:8:ClassLevelAttributeTest.__init__:String statement has no effect -pointless-string-statement:65:8:ClassLevelAttributeTest.test:String statement has no effect +pointless-string-statement:5:0::String statement has no effect:HIGH +pointless-statement:9:0::Statement seems to have no effect:HIGH +pointless-statement:11:0::Statement seems to have no effect:HIGH +pointless-statement:15:0::Statement seems to have no effect:HIGH +pointless-string-statement:18:0::String statement has no effect:HIGH +unnecessary-semicolon:21:0::Unnecessary semicolon:HIGH +expression-not-assigned:23:0::"Expression ""list() and tuple()"" is assigned to nothing":HIGH +expression-not-assigned:30:0::"Expression ""ANSWER == to_be()"" is assigned to nothing":HIGH +expression-not-assigned:32:0::"Expression ""to_be() or not to_be()"" is assigned to nothing":HIGH +expression-not-assigned:33:0::"Expression ""to_be().title"" is assigned to nothing":HIGH +pointless-string-statement:58:8:ClassLevelAttributeTest.__init__:String statement has no effect:HIGH +pointless-string-statement:65:8:ClassLevelAttributeTest.test:String statement has no effect:HIGH diff --git a/tests/functional/s/statement_without_effect_py36.txt b/tests/functional/s/statement_without_effect_py36.txt index 70fc36c6d4..45603cd03e 100644 --- a/tests/functional/s/statement_without_effect_py36.txt +++ b/tests/functional/s/statement_without_effect_py36.txt @@ -1 +1 @@ -pointless-string-statement:18:4:ClassLevelAttributeTest:String statement has no effect +pointless-string-statement:18:4:ClassLevelAttributeTest:String statement has no effect:HIGH diff --git a/tests/functional/s/stop_iteration_inside_generator.txt b/tests/functional/s/stop_iteration_inside_generator.txt index 6b1828e87e..817c84d16b 100644 --- a/tests/functional/s/stop_iteration_inside_generator.txt +++ b/tests/functional/s/stop_iteration_inside_generator.txt @@ -1,7 +1,7 @@ -stop-iteration-return:24:4:gen_stopiter:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:32:4:gen_stopiterchild:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:39:14:gen_next_raises_stopiter:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:59:18:gen_next_inside_wrong_try_except:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:72:12:gen_next_inside_wrong_try_except2:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:87:18:gen_dont_crash_on_no_exception:Do not raise StopIteration in generator, use return statement instead -stop-iteration-return:129:10:invalid_object_passed_to_next:Do not raise StopIteration in generator, use return statement instead +stop-iteration-return:24:4:gen_stopiter:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:32:4:gen_stopiterchild:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:39:14:gen_next_raises_stopiter:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:59:18:gen_next_inside_wrong_try_except:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:72:12:gen_next_inside_wrong_try_except2:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:87:18:gen_dont_crash_on_no_exception:Do not raise StopIteration in generator, use return statement instead:HIGH +stop-iteration-return:129:10:invalid_object_passed_to_next:Do not raise StopIteration in generator, use return statement instead:HIGH diff --git a/tests/functional/s/string/string_formatting.txt b/tests/functional/s/string/string_formatting.txt index 112e4ba6d2..5b0b13bb9d 100644 --- a/tests/functional/s/string/string_formatting.txt +++ b/tests/functional/s/string/string_formatting.txt @@ -1,47 +1,47 @@ -format-string-without-interpolation:68:4:pprint_bad:Using formatting for a string that does not have any interpolated variables -bad-format-string:69:4:pprint_bad:Invalid format string -bad-format-string:70:4:pprint_bad:Invalid format string -format-combined-specification:71:4:pprint_bad:Format string contains both automatic field numbering and manual field specification -missing-format-argument-key:73:4:pprint_bad:Missing keyword argument 'b' for format string -unused-format-string-argument:73:4:pprint_bad:Unused format argument 'c' -missing-format-argument-key:74:4:pprint_bad:Missing keyword argument 'a' for format string -too-few-format-args:75:4:pprint_bad:Not enough arguments for format string -too-many-format-args:76:4:pprint_bad:Too many arguments for format string -missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'a' for format string -missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'b' for format string -missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'c' for format string -too-few-format-args:79:4:pprint_bad:Not enough arguments for format string -missing-format-argument-key:81:4:pprint_bad:Missing keyword argument 'a' for format string -missing-format-argument-key:81:4:pprint_bad:Missing keyword argument 'b' for format string -missing-format-argument-key:82:4:pprint_bad:Missing keyword argument 'a' for format string -missing-format-attribute:84:4:pprint_bad:Missing format attribute 'length' in format specifier 'a.ids.__len__.length' -invalid-format-index:85:4:pprint_bad:Using invalid lookup key 400 in format specifier 'a.ids[3][400]' -invalid-format-index:86:4:pprint_bad:"Using invalid lookup key ""'string'"" in format specifier 'a.ids[3][""\'string\'""]'" -invalid-format-index:87:4:pprint_bad:Using invalid lookup key 1 in format specifier '0[0][1]' -invalid-format-index:88:4:pprint_bad:Using invalid lookup key 0 in format specifier '0[0][0]' -missing-format-argument-key:90:4:pprint_bad:Missing keyword argument 'b' for format string -unused-format-string-argument:90:4:pprint_bad:Unused format argument 'a' -invalid-format-index:91:4:pprint_bad:Using invalid lookup key 0 in format specifier 'a[0]' -too-many-format-args:92:8:pprint_bad:Too many arguments for format string -missing-format-attribute:93:4:pprint_bad:Missing format attribute 'missing' in format specifier '0.missing' -too-few-format-args:94:4:pprint_bad:Not enough arguments for format string -too-many-format-args:95:4:pprint_bad:Too many arguments for format string -too-few-format-args:96:4:pprint_bad:Not enough arguments for format string -too-few-format-args:97:4:pprint_bad:Not enough arguments for format string -too-many-format-args:98:4:pprint_bad:Too many arguments for format string -logging-too-few-args:99:4:pprint_bad:Not enough arguments for logging format string -logging-too-many-args:100:4:pprint_bad:Too many arguments for logging format string -format-string-without-interpolation:101:4:pprint_bad:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:102:4:pprint_bad:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:103:4:pprint_bad:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:104:4:pprint_bad:Using formatting for a string that does not have any interpolated variables -too-few-format-args:132:4:nested_issue294:Not enough arguments for format string -too-many-format-args:133:4:nested_issue294:Too many arguments for format string -missing-format-argument-key:134:4:nested_issue294:Missing keyword argument 'a' for format string -missing-format-attribute:135:4:nested_issue294:Missing format attribute 'x' in format specifier 'a.x' -too-few-format-args:141:4:issue310:Not enough arguments for format string -too-many-format-args:149:4:issue322:Too many arguments for format string -too-few-format-args:150:4:issue322:Not enough arguments for format string -too-few-format-args:175:4:issue351:Not enough arguments for format string -too-many-format-args:177:4:issue351:Too many arguments for format string -bad-format-string:213:11:avoid_empty_attribute:Invalid format string +format-string-without-interpolation:68:4:pprint_bad:Using formatting for a string that does not have any interpolated variables:HIGH +bad-format-string:69:4:pprint_bad:Invalid format string:HIGH +bad-format-string:70:4:pprint_bad:Invalid format string:HIGH +format-combined-specification:71:4:pprint_bad:Format string contains both automatic field numbering and manual field specification:HIGH +missing-format-argument-key:73:4:pprint_bad:Missing keyword argument 'b' for format string:HIGH +unused-format-string-argument:73:4:pprint_bad:Unused format argument 'c':HIGH +missing-format-argument-key:74:4:pprint_bad:Missing keyword argument 'a' for format string:HIGH +too-few-format-args:75:4:pprint_bad:Not enough arguments for format string:HIGH +too-many-format-args:76:4:pprint_bad:Too many arguments for format string:HIGH +missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'a' for format string:HIGH +missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'b' for format string:HIGH +missing-format-argument-key:78:4:pprint_bad:Missing keyword argument 'c' for format string:HIGH +too-few-format-args:79:4:pprint_bad:Not enough arguments for format string:HIGH +missing-format-argument-key:81:4:pprint_bad:Missing keyword argument 'a' for format string:HIGH +missing-format-argument-key:81:4:pprint_bad:Missing keyword argument 'b' for format string:HIGH +missing-format-argument-key:82:4:pprint_bad:Missing keyword argument 'a' for format string:HIGH +missing-format-attribute:84:4:pprint_bad:Missing format attribute 'length' in format specifier 'a.ids.__len__.length':HIGH +invalid-format-index:85:4:pprint_bad:Using invalid lookup key 400 in format specifier 'a.ids[3][400]':HIGH +invalid-format-index:86:4:pprint_bad:"Using invalid lookup key ""'string'"" in format specifier 'a.ids[3][""\'string\'""]'":HIGH +invalid-format-index:87:4:pprint_bad:Using invalid lookup key 1 in format specifier '0[0][1]':HIGH +invalid-format-index:88:4:pprint_bad:Using invalid lookup key 0 in format specifier '0[0][0]':HIGH +missing-format-argument-key:90:4:pprint_bad:Missing keyword argument 'b' for format string:HIGH +unused-format-string-argument:90:4:pprint_bad:Unused format argument 'a':HIGH +invalid-format-index:91:4:pprint_bad:Using invalid lookup key 0 in format specifier 'a[0]':HIGH +too-many-format-args:92:8:pprint_bad:Too many arguments for format string:HIGH +missing-format-attribute:93:4:pprint_bad:Missing format attribute 'missing' in format specifier '0.missing':HIGH +too-few-format-args:94:4:pprint_bad:Not enough arguments for format string:HIGH +too-many-format-args:95:4:pprint_bad:Too many arguments for format string:HIGH +too-few-format-args:96:4:pprint_bad:Not enough arguments for format string:HIGH +too-few-format-args:97:4:pprint_bad:Not enough arguments for format string:HIGH +too-many-format-args:98:4:pprint_bad:Too many arguments for format string:HIGH +logging-too-few-args:99:4:pprint_bad:Not enough arguments for logging format string:HIGH +logging-too-many-args:100:4:pprint_bad:Too many arguments for logging format string:HIGH +format-string-without-interpolation:101:4:pprint_bad:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:102:4:pprint_bad:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:103:4:pprint_bad:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:104:4:pprint_bad:Using formatting for a string that does not have any interpolated variables:HIGH +too-few-format-args:132:4:nested_issue294:Not enough arguments for format string:HIGH +too-many-format-args:133:4:nested_issue294:Too many arguments for format string:HIGH +missing-format-argument-key:134:4:nested_issue294:Missing keyword argument 'a' for format string:HIGH +missing-format-attribute:135:4:nested_issue294:Missing format attribute 'x' in format specifier 'a.x':HIGH +too-few-format-args:141:4:issue310:Not enough arguments for format string:HIGH +too-many-format-args:149:4:issue322:Too many arguments for format string:HIGH +too-few-format-args:150:4:issue322:Not enough arguments for format string:HIGH +too-few-format-args:175:4:issue351:Not enough arguments for format string:HIGH +too-many-format-args:177:4:issue351:Too many arguments for format string:HIGH +bad-format-string:213:11:avoid_empty_attribute:Invalid format string:HIGH diff --git a/tests/functional/s/string/string_formatting_disable.txt b/tests/functional/s/string/string_formatting_disable.txt index f6e390f00f..ad71711000 100644 --- a/tests/functional/s/string/string_formatting_disable.txt +++ b/tests/functional/s/string/string_formatting_disable.txt @@ -1 +1 @@ -bad-format-string:1:0::Invalid format string +bad-format-string:1:0::Invalid format string:HIGH diff --git a/tests/functional/s/string/string_formatting_error.txt b/tests/functional/s/string/string_formatting_error.txt index 9fd27478dd..4e8075a079 100644 --- a/tests/functional/s/string/string_formatting_error.txt +++ b/tests/functional/s/string/string_formatting_error.txt @@ -1,15 +1,15 @@ -too-few-format-args:10:10:pprint:Not enough arguments for format string -too-many-format-args:11:10:pprint:Too many arguments for format string -mixed-format-string:12:10:pprint:Mixing named and unnamed conversion specifiers in format string -missing-format-string-key:13:10:pprint:Missing key 'PARG_2' in format string dictionary -unused-format-string-key:14:10:pprint:Unused key 'PARG_3' in format string dictionary -bad-format-string-key:15:10:pprint:Format string dictionary key should be a string, not 2 -missing-format-string-key:15:10:pprint:Missing key 'PARG_2' in format string dictionary -format-needs-mapping:16:10:pprint:Expected mapping for format string, not Tuple -format-needs-mapping:17:10:pprint:Expected mapping for format string, not List -bad-format-character:18:10:pprint:Unsupported format character 'z' (0x7a) at index 2 -truncated-format-string:19:10:pprint:Format string ends in middle of conversion specifier -format-string-without-interpolation:21:10:pprint:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:22:10:pprint:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:23:10:pprint:Using formatting for a string that does not have any interpolated variables -format-string-without-interpolation:24:10:pprint:Using formatting for a string that does not have any interpolated variables +too-few-format-args:10:10:pprint:Not enough arguments for format string:HIGH +too-many-format-args:11:10:pprint:Too many arguments for format string:HIGH +mixed-format-string:12:10:pprint:Mixing named and unnamed conversion specifiers in format string:HIGH +missing-format-string-key:13:10:pprint:Missing key 'PARG_2' in format string dictionary:HIGH +unused-format-string-key:14:10:pprint:Unused key 'PARG_3' in format string dictionary:HIGH +bad-format-string-key:15:10:pprint:Format string dictionary key should be a string, not 2:HIGH +missing-format-string-key:15:10:pprint:Missing key 'PARG_2' in format string dictionary:HIGH +format-needs-mapping:16:10:pprint:Expected mapping for format string, not Tuple:HIGH +format-needs-mapping:17:10:pprint:Expected mapping for format string, not List:HIGH +bad-format-character:18:10:pprint:Unsupported format character 'z' (0x7a) at index 2:HIGH +truncated-format-string:19:10:pprint:Format string ends in middle of conversion specifier:HIGH +format-string-without-interpolation:21:10:pprint:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:22:10:pprint:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:23:10:pprint:Using formatting for a string that does not have any interpolated variables:HIGH +format-string-without-interpolation:24:10:pprint:Using formatting for a string that does not have any interpolated variables:HIGH diff --git a/tests/functional/s/string/string_formatting_py3.txt b/tests/functional/s/string/string_formatting_py3.txt index bf90e016b8..4908005a19 100644 --- a/tests/functional/s/string/string_formatting_py3.txt +++ b/tests/functional/s/string/string_formatting_py3.txt @@ -1,2 +1,2 @@ -too-many-format-args:11:10:issue_957_bad1:Too many arguments for format string -too-few-format-args:16:10:issue_957_bad2:Not enough arguments for format string +too-many-format-args:11:10:issue_957_bad1:Too many arguments for format string:HIGH +too-few-format-args:16:10:issue_957_bad2:Not enough arguments for format string:HIGH diff --git a/tests/functional/s/string/string_log_formatting.txt b/tests/functional/s/string/string_log_formatting.txt index aec9c26d58..c7726fa05a 100644 --- a/tests/functional/s/string/string_log_formatting.txt +++ b/tests/functional/s/string/string_log_formatting.txt @@ -1,6 +1,6 @@ -logging-too-many-args:14:4:pprint:Too many arguments for logging format string -logging-too-many-args:15:4:pprint:Too many arguments for logging format string -logging-format-truncated:16:4:pprint:Logging format string ends in middle of conversion specifier -logging-too-few-args:17:4:pprint:Not enough arguments for logging format string -logging-unsupported-format:18:4:pprint:Unsupported logging format character 'y' (0x79) at index 3 -logging-too-many-args:19:4:pprint:Too many arguments for logging format string +logging-too-many-args:14:4:pprint:Too many arguments for logging format string:HIGH +logging-too-many-args:15:4:pprint:Too many arguments for logging format string:HIGH +logging-format-truncated:16:4:pprint:Logging format string ends in middle of conversion specifier:HIGH +logging-too-few-args:17:4:pprint:Not enough arguments for logging format string:HIGH +logging-unsupported-format:18:4:pprint:Unsupported logging format character 'y' (0x79) at index 3:HIGH +logging-too-many-args:19:4:pprint:Too many arguments for logging format string:HIGH diff --git a/tests/functional/s/subprocess_popen_preexec_fn.txt b/tests/functional/s/subprocess_popen_preexec_fn.txt index 55b886d0e4..21a48c6e6e 100644 --- a/tests/functional/s/subprocess_popen_preexec_fn.txt +++ b/tests/functional/s/subprocess_popen_preexec_fn.txt @@ -1 +1 @@ -subprocess-popen-preexec-fn:9:0::Using preexec_fn keyword which may be unsafe in the presence of threads +subprocess-popen-preexec-fn:9:0::Using preexec_fn keyword which may be unsafe in the presence of threads:HIGH diff --git a/tests/functional/s/subprocess_run_check.txt b/tests/functional/s/subprocess_run_check.txt index 3f854ad089..036cf4c6e4 100644 --- a/tests/functional/s/subprocess_run_check.txt +++ b/tests/functional/s/subprocess_run_check.txt @@ -1 +1 @@ -subprocess-run-check:6:0::Using subprocess.run without explicitly set `check` is not recommended. +subprocess-run-check:6:0::Using subprocess.run without explicitly set `check` is not recommended.:HIGH diff --git a/tests/functional/s/super/super_checks.txt b/tests/functional/s/super/super_checks.txt index bd360c831c..88ad892778 100644 --- a/tests/functional/s/super/super_checks.txt +++ b/tests/functional/s/super/super_checks.txt @@ -1,17 +1,17 @@ no-member:10:8:Aaaa.hop:Super of 'Aaaa' has no 'hop' member:INFERENCE no-member:19:8:NewAaaa.hop:Super of 'NewAaaa' has no 'hop' member:INFERENCE -bad-super-call:22:8:NewAaaa.__init__:Bad first argument 'Aaaa' given to super() -bad-super-call:32:8:Py3kWrongSuper.__init__:Bad first argument 'NewAaaa' given to super() -bad-super-call:37:8:WrongNameRegression.__init__:Bad first argument 'Missing' given to super() -bad-super-call:46:8:CrashSuper.__init__:Bad first argument 'NewAaaa' given to super() -bad-super-call:62:8:SuperDifferentScope.test:Bad first argument 'object' given to super() -bad-super-call:70:8:UnknownBases.__init__:Bad first argument 'Missing' given to super() -not-callable:89:8:InvalidSuperChecks.__init__:super(InvalidSuperChecks, self).not_a_method is not callable +bad-super-call:22:8:NewAaaa.__init__:Bad first argument 'Aaaa' given to super():HIGH +bad-super-call:32:8:Py3kWrongSuper.__init__:Bad first argument 'NewAaaa' given to super():HIGH +bad-super-call:37:8:WrongNameRegression.__init__:Bad first argument 'Missing' given to super():HIGH +bad-super-call:46:8:CrashSuper.__init__:Bad first argument 'NewAaaa' given to super():HIGH +bad-super-call:62:8:SuperDifferentScope.test:Bad first argument 'object' given to super():HIGH +bad-super-call:70:8:UnknownBases.__init__:Bad first argument 'Missing' given to super():HIGH +not-callable:89:8:InvalidSuperChecks.__init__:super(InvalidSuperChecks, self).not_a_method is not callable:HIGH no-member:90:8:InvalidSuperChecks.__init__:Super of 'InvalidSuperChecks' has no 'attribute_error' member:INFERENCE -no-value-for-parameter:92:8:InvalidSuperChecks.__init__:No value for argument 'param' in method call -too-many-function-args:93:8:InvalidSuperChecks.__init__:Too many positional arguments for method call -no-value-for-parameter:95:8:InvalidSuperChecks.__init__:No value for argument 'param' in method call -unexpected-keyword-arg:95:8:InvalidSuperChecks.__init__:Unexpected keyword argument 'lala' in method call +no-value-for-parameter:92:8:InvalidSuperChecks.__init__:No value for argument 'param' in method call:HIGH +too-many-function-args:93:8:InvalidSuperChecks.__init__:Too many positional arguments for method call:HIGH +no-value-for-parameter:95:8:InvalidSuperChecks.__init__:No value for argument 'param' in method call:HIGH +unexpected-keyword-arg:95:8:InvalidSuperChecks.__init__:Unexpected keyword argument 'lala' in method call:HIGH no-member:98:8:InvalidSuperChecks.__init__:Super of 'InvalidSuperChecks' has no 'attribute_error' member:INFERENCE -bad-super-call:120:8:SuperWithType.__init__:Bad first argument 'type' given to super() -bad-super-call:125:8:SuperWithSelfClass.__init__:Bad first argument 'self.__class__' given to super() +bad-super-call:120:8:SuperWithType.__init__:Bad first argument 'type' given to super():HIGH +bad-super-call:125:8:SuperWithSelfClass.__init__:Bad first argument 'self.__class__' given to super():HIGH diff --git a/tests/functional/s/super/super_with_arguments.txt b/tests/functional/s/super/super_with_arguments.txt index f882848f85..33a6324a6f 100644 --- a/tests/functional/s/super/super_with_arguments.txt +++ b/tests/functional/s/super/super_with_arguments.txt @@ -1 +1 @@ -super-with-arguments:7:8:Bar.__init__:Consider using Python 3 style super() without arguments +super-with-arguments:7:8:Bar.__init__:Consider using Python 3 style super() without arguments:HIGH diff --git a/tests/functional/s/suspicious_str_strip_call.txt b/tests/functional/s/suspicious_str_strip_call.txt index 7e338386cd..78ae88d3df 100644 --- a/tests/functional/s/suspicious_str_strip_call.txt +++ b/tests/functional/s/suspicious_str_strip_call.txt @@ -1,3 +1,3 @@ -bad-str-strip-call:8:0::Suspicious argument in str.strip call -bad-str-strip-call:9:0::Suspicious argument in str.lstrip call -bad-str-strip-call:10:0::Suspicious argument in bytes.rstrip call +bad-str-strip-call:8:0::Suspicious argument in str.strip call:HIGH +bad-str-strip-call:9:0::Suspicious argument in str.lstrip call:HIGH +bad-str-strip-call:10:0::Suspicious argument in bytes.rstrip call:HIGH diff --git a/tests/functional/s/syntax_error.txt b/tests/functional/s/syntax_error.txt index b56259d022..00e07e0006 100644 --- a/tests/functional/s/syntax_error.txt +++ b/tests/functional/s/syntax_error.txt @@ -1 +1 @@ -syntax-error:1:10::invalid syntax (, line 1) +syntax-error:1:10::invalid syntax (, line 1):HIGH diff --git a/tests/functional/t/ternary.txt b/tests/functional/t/ternary.txt index 1df60e2f72..760a97a03a 100644 --- a/tests/functional/t/ternary.txt +++ b/tests/functional/t/ternary.txt @@ -1,8 +1,8 @@ -consider-using-ternary:5:0::Consider using ternary (true_value if condition else false_value) -consider-using-ternary:15:4:func2:Consider using ternary (true_value if condition else false_value) -consider-using-ternary:18:0::Consider using ternary ('ERROR' if some_callable(condition) else 'SUCCESS') -consider-using-ternary:19:0::Consider using ternary ('greater' if SOME_VALUE1 > 3 else 'not greater') -consider-using-ternary:20:0::Consider using ternary ('both' if SOME_VALUE2 > 4 and SOME_VALUE3 else 'not') -simplify-boolean-expression:23:0::Boolean expression may be simplified to SOME_VALUE2 -consider-using-ternary:33:4:func4:Consider using ternary (truth_value if condition else false_value) -simplify-boolean-expression:39:4:func5:Boolean expression may be simplified to false_value +consider-using-ternary:5:0::Consider using ternary (true_value if condition else false_value):HIGH +consider-using-ternary:15:4:func2:Consider using ternary (true_value if condition else false_value):HIGH +consider-using-ternary:18:0::Consider using ternary ('ERROR' if some_callable(condition) else 'SUCCESS'):HIGH +consider-using-ternary:19:0::Consider using ternary ('greater' if SOME_VALUE1 > 3 else 'not greater'):HIGH +consider-using-ternary:20:0::Consider using ternary ('both' if SOME_VALUE2 > 4 and SOME_VALUE3 else 'not'):HIGH +simplify-boolean-expression:23:0::Boolean expression may be simplified to SOME_VALUE2:HIGH +consider-using-ternary:33:4:func4:Consider using ternary (truth_value if condition else false_value):HIGH +simplify-boolean-expression:39:4:func5:Boolean expression may be simplified to false_value:HIGH diff --git a/tests/functional/t/tokenize_error.txt b/tests/functional/t/tokenize_error.txt index bf780eb96d..bd95d9f682 100644 --- a/tests/functional/t/tokenize_error.txt +++ b/tests/functional/t/tokenize_error.txt @@ -1 +1 @@ -syntax-error:7:0::EOF in multi-line statement +syntax-error:7:0::EOF in multi-line statement:HIGH diff --git a/tests/functional/t/too/too_few_public_methods.txt b/tests/functional/t/too/too_few_public_methods.txt index a86ba6d813..95a0a5ab17 100644 --- a/tests/functional/t/too/too_few_public_methods.txt +++ b/tests/functional/t/too/too_few_public_methods.txt @@ -1 +1 @@ -too-few-public-methods:8:0:Aaaa:Too few public methods (1/2) +too-few-public-methods:8:0:Aaaa:Too few public methods (1/2):HIGH diff --git a/tests/functional/t/too/too_many_ancestors.txt b/tests/functional/t/too/too_many_ancestors.txt index d913ce4efa..a7936c16db 100644 --- a/tests/functional/t/too/too_many_ancestors.txt +++ b/tests/functional/t/too/too_many_ancestors.txt @@ -1,2 +1,2 @@ -too-many-ancestors:21:0:Iiii:Too many ancestors (8/7) -too-many-ancestors:24:0:Jjjj:Too many ancestors (9/7) +too-many-ancestors:21:0:Iiii:Too many ancestors (8/7):HIGH +too-many-ancestors:24:0:Jjjj:Too many ancestors (9/7):HIGH diff --git a/tests/functional/t/too/too_many_ancestors_ignored_parents.txt b/tests/functional/t/too/too_many_ancestors_ignored_parents.txt index e1eea426a1..1b2233cbf3 100644 --- a/tests/functional/t/too/too_many_ancestors_ignored_parents.txt +++ b/tests/functional/t/too/too_many_ancestors_ignored_parents.txt @@ -1 +1 @@ -too-many-ancestors:39:0:A:Too many ancestors (3/2) +too-many-ancestors:39:0:A:Too many ancestors (3/2):HIGH diff --git a/tests/functional/t/too/too_many_arguments.txt b/tests/functional/t/too/too_many_arguments.txt index d4f5516341..d96b57def5 100644 --- a/tests/functional/t/too/too_many_arguments.txt +++ b/tests/functional/t/too/too_many_arguments.txt @@ -1 +1 @@ -too-many-arguments:3:0:stupid_function:Too many arguments (9/5) +too-many-arguments:3:0:stupid_function:Too many arguments (9/5):HIGH diff --git a/tests/functional/t/too/too_many_boolean_expressions.txt b/tests/functional/t/too/too_many_boolean_expressions.txt index 6055e7437e..073fc87f63 100644 --- a/tests/functional/t/too/too_many_boolean_expressions.txt +++ b/tests/functional/t/too/too_many_boolean_expressions.txt @@ -1,4 +1,4 @@ -too-many-boolean-expressions:6:3::Too many boolean expressions in if statement (6/5) -too-many-boolean-expressions:10:5::Too many boolean expressions in if statement (7/5) -too-many-boolean-expressions:12:5::Too many boolean expressions in if statement (6/5) -too-many-boolean-expressions:14:5::Too many boolean expressions in if statement (6/5) +too-many-boolean-expressions:6:3::Too many boolean expressions in if statement (6/5):HIGH +too-many-boolean-expressions:10:5::Too many boolean expressions in if statement (7/5):HIGH +too-many-boolean-expressions:12:5::Too many boolean expressions in if statement (6/5):HIGH +too-many-boolean-expressions:14:5::Too many boolean expressions in if statement (6/5):HIGH diff --git a/tests/functional/t/too/too_many_branches.txt b/tests/functional/t/too/too_many_branches.txt index e5bfd4d494..c9af5f6100 100644 --- a/tests/functional/t/too/too_many_branches.txt +++ b/tests/functional/t/too/too_many_branches.txt @@ -1 +1 @@ -too-many-branches:3:0:wrong:Too many branches (13/12) +too-many-branches:3:0:wrong:Too many branches (13/12):HIGH diff --git a/tests/functional/t/too/too_many_lines.txt b/tests/functional/t/too/too_many_lines.txt index 5c228ac499..823349db33 100644 --- a/tests/functional/t/too/too_many_lines.txt +++ b/tests/functional/t/too/too_many_lines.txt @@ -1 +1 @@ -too-many-lines:1:0::Too many lines in module (1015/1000) +too-many-lines:1:0::Too many lines in module (1015/1000):HIGH diff --git a/tests/functional/t/too/too_many_locals.txt b/tests/functional/t/too/too_many_locals.txt index 4af7f03071..fc40e83295 100644 --- a/tests/functional/t/too/too_many_locals.txt +++ b/tests/functional/t/too/too_many_locals.txt @@ -1,3 +1,3 @@ -too-many-locals:4:0:function:Too many local variables (16/15) -too-many-locals:12:0:too_many_locals_function:Too many local variables (16/15) -too-many-arguments:32:0:too_many_arguments_function:Too many arguments (6/5) +too-many-locals:4:0:function:Too many local variables (16/15):HIGH +too-many-locals:12:0:too_many_locals_function:Too many local variables (16/15):HIGH +too-many-arguments:32:0:too_many_arguments_function:Too many arguments (6/5):HIGH diff --git a/tests/functional/t/too/too_many_nested_blocks.txt b/tests/functional/t/too/too_many_nested_blocks.txt index 6232b9ff09..bb351fef7e 100644 --- a/tests/functional/t/too/too_many_nested_blocks.txt +++ b/tests/functional/t/too/too_many_nested_blocks.txt @@ -1,2 +1,2 @@ -too-many-nested-blocks:6:4:my_function:Too many nested blocks (6/5) -too-many-nested-blocks:77:4:else_if_function:Too many nested blocks (7/5) +too-many-nested-blocks:6:4:my_function:Too many nested blocks (6/5):HIGH +too-many-nested-blocks:77:4:else_if_function:Too many nested blocks (7/5):HIGH diff --git a/tests/functional/t/too/too_many_public_methods.txt b/tests/functional/t/too/too_many_public_methods.txt index 61e47e8eb5..a132755e04 100644 --- a/tests/functional/t/too/too_many_public_methods.txt +++ b/tests/functional/t/too/too_many_public_methods.txt @@ -1 +1 @@ -too-many-public-methods:3:0:Aaaa:Too many public methods (21/20) +too-many-public-methods:3:0:Aaaa:Too many public methods (21/20):HIGH diff --git a/tests/functional/t/too/too_many_return_statements.txt b/tests/functional/t/too/too_many_return_statements.txt index 5abbb71b31..080ee6a8f2 100644 --- a/tests/functional/t/too/too_many_return_statements.txt +++ b/tests/functional/t/too/too_many_return_statements.txt @@ -1 +1 @@ -too-many-return-statements:3:0:stupid_function:Too many return statements (11/6) +too-many-return-statements:3:0:stupid_function:Too many return statements (11/6):HIGH diff --git a/tests/functional/t/too/too_many_star_expressions.txt b/tests/functional/t/too/too_many_star_expressions.txt index d1e74b6247..a87a3344e2 100644 --- a/tests/functional/t/too/too_many_star_expressions.txt +++ b/tests/functional/t/too/too_many_star_expressions.txt @@ -1,2 +1,2 @@ -too-many-star-expressions:3:0::More than one starred expression in assignment -too-many-star-expressions:6:0::More than one starred expression in assignment +too-many-star-expressions:3:0::More than one starred expression in assignment:HIGH +too-many-star-expressions:6:0::More than one starred expression in assignment:HIGH diff --git a/tests/functional/t/trailing_comma_tuple.txt b/tests/functional/t/trailing_comma_tuple.txt index 0f98b22831..0ddfb755d9 100644 --- a/tests/functional/t/trailing_comma_tuple.txt +++ b/tests/functional/t/trailing_comma_tuple.txt @@ -1,9 +1,9 @@ -trailing-comma-tuple:3:0::Disallow trailing comma tuple -trailing-comma-tuple:4:0::Disallow trailing comma tuple -trailing-comma-tuple:5:0::Disallow trailing comma tuple -trailing-comma-tuple:6:0::Disallow trailing comma tuple -trailing-comma-tuple:31:0::Disallow trailing comma tuple -trailing-comma-tuple:34:0::Disallow trailing comma tuple -trailing-comma-tuple:38:0::Disallow trailing comma tuple -trailing-comma-tuple:41:0::Disallow trailing comma tuple -trailing-comma-tuple:47:0::Disallow trailing comma tuple +trailing-comma-tuple:3:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:4:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:5:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:6:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:31:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:34:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:38:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:41:0::Disallow trailing comma tuple:HIGH +trailing-comma-tuple:47:0::Disallow trailing comma tuple:HIGH diff --git a/tests/functional/t/trailing_newlines.txt b/tests/functional/t/trailing_newlines.txt index 2558a71f8f..e4b63f2373 100644 --- a/tests/functional/t/trailing_newlines.txt +++ b/tests/functional/t/trailing_newlines.txt @@ -1 +1 @@ -trailing-newlines:3:0::Trailing newlines +trailing-newlines:3:0::Trailing newlines:HIGH diff --git a/tests/functional/t/trailing_whitespaces.txt b/tests/functional/t/trailing_whitespaces.txt index 1faabc84a7..e84d8f9208 100644 --- a/tests/functional/t/trailing_whitespaces.txt +++ b/tests/functional/t/trailing_whitespaces.txt @@ -1,3 +1,3 @@ -trailing-whitespace:6:33::Trailing whitespace -trailing-whitespace:8:73::Trailing whitespace -trailing-whitespace:11:46::Trailing whitespace +trailing-whitespace:6:33::Trailing whitespace:HIGH +trailing-whitespace:8:73::Trailing whitespace:HIGH +trailing-whitespace:11:46::Trailing whitespace:HIGH diff --git a/tests/functional/t/try_except_raise.txt b/tests/functional/t/try_except_raise.txt index 81e1fd4172..d750d5f280 100644 --- a/tests/functional/t/try_except_raise.txt +++ b/tests/functional/t/try_except_raise.txt @@ -1,6 +1,6 @@ -try-except-raise:5:0::The except handler raises immediately -try-except-raise:16:0::The except handler raises immediately -try-except-raise:53:4:ddd:The except handler raises immediately -try-except-raise:67:0::The except handler raises immediately -try-except-raise:72:0::The except handler raises immediately -try-except-raise:94:0::The except handler raises immediately +try-except-raise:5:0::The except handler raises immediately:HIGH +try-except-raise:16:0::The except handler raises immediately:HIGH +try-except-raise:53:4:ddd:The except handler raises immediately:HIGH +try-except-raise:67:0::The except handler raises immediately:HIGH +try-except-raise:72:0::The except handler raises immediately:HIGH +try-except-raise:94:0::The except handler raises immediately:HIGH diff --git a/tests/functional/t/try_except_raise_crash.txt b/tests/functional/t/try_except_raise_crash.txt index 0fab918b9d..87264b1082 100644 --- a/tests/functional/t/try_except_raise_crash.txt +++ b/tests/functional/t/try_except_raise_crash.txt @@ -1,2 +1,2 @@ -catching-non-exception:23:11:test:"Catching an exception which doesn't inherit from Exception: TestException" -try-except-raise:23:4:test:The except handler raises immediately +catching-non-exception:23:11:test:"Catching an exception which doesn't inherit from Exception: TestException":HIGH +try-except-raise:23:4:test:The except handler raises immediately:HIGH diff --git a/tests/functional/t/typing_use.txt b/tests/functional/t/typing_use.txt index 1ff53a13e6..48aa39f1b6 100644 --- a/tests/functional/t/typing_use.txt +++ b/tests/functional/t/typing_use.txt @@ -1 +1 @@ -function-redefined:21:0:double_with_docstring:function already defined line 16 +function-redefined:21:0:double_with_docstring:function already defined line 16:HIGH diff --git a/tests/functional/u/unbalanced_tuple_unpacking.txt b/tests/functional/u/unbalanced_tuple_unpacking.txt index e13d96ab97..745b09c0bc 100644 --- a/tests/functional/u/unbalanced_tuple_unpacking.txt +++ b/tests/functional/u/unbalanced_tuple_unpacking.txt @@ -1,5 +1,5 @@ -unbalanced-tuple-unpacking:9:4:do_stuff:"Possible unbalanced tuple unpacking with sequence (1, 2, 3): left side has 2 label(s), right side has 3 value(s)" -unbalanced-tuple-unpacking:14:4:do_stuff1:"Possible unbalanced tuple unpacking with sequence [1, 2, 3]: left side has 2 label(s), right side has 3 value(s)" -unbalanced-tuple-unpacking:19:4:do_stuff2:"Possible unbalanced tuple unpacking with sequence (1, 2, 3): left side has 2 label(s), right side has 3 value(s)" -unbalanced-tuple-unpacking:69:4:do_stuff9:"Possible unbalanced tuple unpacking with sequence defined at line 7 of functional.u.unpacking: left side has 2 label(s), right side has 3 value(s)" -unbalanced-tuple-unpacking:81:8:UnbalancedUnpacking.test:"Possible unbalanced tuple unpacking with sequence defined at line 7 of functional.u.unpacking: left side has 2 label(s), right side has 3 value(s)" +unbalanced-tuple-unpacking:9:4:do_stuff:"Possible unbalanced tuple unpacking with sequence (1, 2, 3): left side has 2 label(s), right side has 3 value(s)":HIGH +unbalanced-tuple-unpacking:14:4:do_stuff1:"Possible unbalanced tuple unpacking with sequence [1, 2, 3]: left side has 2 label(s), right side has 3 value(s)":HIGH +unbalanced-tuple-unpacking:19:4:do_stuff2:"Possible unbalanced tuple unpacking with sequence (1, 2, 3): left side has 2 label(s), right side has 3 value(s)":HIGH +unbalanced-tuple-unpacking:69:4:do_stuff9:"Possible unbalanced tuple unpacking with sequence defined at line 7 of functional.u.unpacking: left side has 2 label(s), right side has 3 value(s)":HIGH +unbalanced-tuple-unpacking:81:8:UnbalancedUnpacking.test:"Possible unbalanced tuple unpacking with sequence defined at line 7 of functional.u.unpacking: left side has 2 label(s), right side has 3 value(s)":HIGH diff --git a/tests/functional/u/undefined/undefined_loop_variable.txt b/tests/functional/u/undefined/undefined_loop_variable.txt index ea194e769b..90a1d87272 100644 --- a/tests/functional/u/undefined/undefined_loop_variable.txt +++ b/tests/functional/u/undefined/undefined_loop_variable.txt @@ -1,3 +1,3 @@ -undefined-loop-variable:6:11:do_stuff:Using possibly undefined loop variable 'var' -undefined-loop-variable:25:7::Using possibly undefined loop variable 'var1' -undefined-loop-variable:75:11:do_stuff_with_redefined_range:Using possibly undefined loop variable 'var' +undefined-loop-variable:6:11:do_stuff:Using possibly undefined loop variable 'var':HIGH +undefined-loop-variable:25:7::Using possibly undefined loop variable 'var1':HIGH +undefined-loop-variable:75:11:do_stuff_with_redefined_range:Using possibly undefined loop variable 'var':HIGH diff --git a/tests/functional/u/unexpected_special_method_signature.txt b/tests/functional/u/unexpected_special_method_signature.txt index 607f7d1a57..b264dfe965 100644 --- a/tests/functional/u/unexpected_special_method_signature.txt +++ b/tests/functional/u/unexpected_special_method_signature.txt @@ -1,16 +1,16 @@ -unexpected-special-method-signature:8:4:Invalid.__enter__:The special method '__enter__' expects 0 param(s), 1 was given -unexpected-special-method-signature:11:4:Invalid.__del__:The special method '__del__' expects 0 param(s), 1 was given -unexpected-special-method-signature:14:4:Invalid.__format__:The special method '__format__' expects 1 param(s), 2 were given -unexpected-special-method-signature:17:4:Invalid.__setattr__:The special method '__setattr__' expects 2 param(s), 0 was given -unexpected-special-method-signature:20:4:Invalid.__round__:The special method '__round__' expects between 0 or 1 param(s), 2 were given -unexpected-special-method-signature:23:4:Invalid.__deepcopy__:The special method '__deepcopy__' expects 1 param(s), 2 were given -no-method-argument:26:4:Invalid.__iter__:Method has no argument -unexpected-special-method-signature:30:4:Invalid.__getattr__:The special method '__getattr__' expects 1 param(s), 2 were given -unexpected-special-method-signature:37:4:FirstBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 1 was given -unexpected-special-method-signature:43:4:SecondBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 4 were given -unexpected-special-method-signature:51:4:ThirdBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 4 were given -unexpected-special-method-signature:57:4:Async.__aiter__:The special method '__aiter__' expects 0 param(s), 1 was given -unexpected-special-method-signature:59:4:Async.__anext__:The special method '__anext__' expects 0 param(s), 2 were given -unexpected-special-method-signature:61:4:Async.__await__:The special method '__await__' expects 0 param(s), 1 was given -unexpected-special-method-signature:63:4:Async.__aenter__:The special method '__aenter__' expects 0 param(s), 1 was given -unexpected-special-method-signature:65:4:Async.__aexit__:The special method '__aexit__' expects 3 param(s), 0 was given +unexpected-special-method-signature:8:4:Invalid.__enter__:The special method '__enter__' expects 0 param(s), 1 was given:HIGH +unexpected-special-method-signature:11:4:Invalid.__del__:The special method '__del__' expects 0 param(s), 1 was given:HIGH +unexpected-special-method-signature:14:4:Invalid.__format__:The special method '__format__' expects 1 param(s), 2 were given:HIGH +unexpected-special-method-signature:17:4:Invalid.__setattr__:The special method '__setattr__' expects 2 param(s), 0 was given:HIGH +unexpected-special-method-signature:20:4:Invalid.__round__:The special method '__round__' expects between 0 or 1 param(s), 2 were given:HIGH +unexpected-special-method-signature:23:4:Invalid.__deepcopy__:The special method '__deepcopy__' expects 1 param(s), 2 were given:HIGH +no-method-argument:26:4:Invalid.__iter__:Method has no argument:HIGH +unexpected-special-method-signature:30:4:Invalid.__getattr__:The special method '__getattr__' expects 1 param(s), 2 were given:HIGH +unexpected-special-method-signature:37:4:FirstBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 1 was given:HIGH +unexpected-special-method-signature:43:4:SecondBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 4 were given:HIGH +unexpected-special-method-signature:51:4:ThirdBadContextManager.__exit__:The special method '__exit__' expects 3 param(s), 4 were given:HIGH +unexpected-special-method-signature:57:4:Async.__aiter__:The special method '__aiter__' expects 0 param(s), 1 was given:HIGH +unexpected-special-method-signature:59:4:Async.__anext__:The special method '__anext__' expects 0 param(s), 2 were given:HIGH +unexpected-special-method-signature:61:4:Async.__await__:The special method '__await__' expects 0 param(s), 1 was given:HIGH +unexpected-special-method-signature:63:4:Async.__aenter__:The special method '__aenter__' expects 0 param(s), 1 was given:HIGH +unexpected-special-method-signature:65:4:Async.__aexit__:The special method '__aexit__' expects 3 param(s), 0 was given:HIGH diff --git a/tests/functional/u/ungrouped_imports.txt b/tests/functional/u/ungrouped_imports.txt index a23d9997ac..4f2d810dd1 100644 --- a/tests/functional/u/ungrouped_imports.txt +++ b/tests/functional/u/ungrouped_imports.txt @@ -1,5 +1,5 @@ -ungrouped-imports:8:0::Imports from package logging are not grouped -ungrouped-imports:11:4::Imports from package os are not grouped -ungrouped-imports:17:0::Imports from package astroid are not grouped -ungrouped-imports:19:4::Imports from package logging are not grouped -ungrouped-imports:20:0::Imports from package os are not grouped +ungrouped-imports:8:0::Imports from package logging are not grouped:HIGH +ungrouped-imports:11:4::Imports from package os are not grouped:HIGH +ungrouped-imports:17:0::Imports from package astroid are not grouped:HIGH +ungrouped-imports:19:4::Imports from package logging are not grouped:HIGH +ungrouped-imports:20:0::Imports from package os are not grouped:HIGH diff --git a/tests/functional/u/unhashable_dict_key.txt b/tests/functional/u/unhashable_dict_key.txt index d10876929f..304a4ed7e5 100644 --- a/tests/functional/u/unhashable_dict_key.txt +++ b/tests/functional/u/unhashable_dict_key.txt @@ -1,4 +1,4 @@ -unhashable-dict-key:7:0::Dict key is unhashable -unhashable-dict-key:8:0::Dict key is unhashable -unhashable-dict-key:9:0::Dict key is unhashable -unhashable-dict-key:10:0::Dict key is unhashable +unhashable-dict-key:7:0::Dict key is unhashable:HIGH +unhashable-dict-key:8:0::Dict key is unhashable:HIGH +unhashable-dict-key:9:0::Dict key is unhashable:HIGH +unhashable-dict-key:10:0::Dict key is unhashable:HIGH diff --git a/tests/functional/u/unidiomatic_typecheck.txt b/tests/functional/u/unidiomatic_typecheck.txt index 7302b5a424..3495601eef 100644 --- a/tests/functional/u/unidiomatic_typecheck.txt +++ b/tests/functional/u/unidiomatic_typecheck.txt @@ -1,14 +1,14 @@ -unidiomatic-typecheck:5:4:simple_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:6:4:simple_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:7:4:simple_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:8:4:simple_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:12:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:13:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:14:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:15:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:65:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:66:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:67:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:68:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:69:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. -unidiomatic-typecheck:70:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck. +unidiomatic-typecheck:5:4:simple_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:6:4:simple_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:7:4:simple_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:8:4:simple_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:12:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:13:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:14:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:15:4:simple_inference_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:65:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:66:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:67:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:68:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:69:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH +unidiomatic-typecheck:70:4:type_of_literals_positives:Use isinstance() rather than type() for a typecheck.:HIGH diff --git a/tests/functional/u/unnecessary/unnecessary_comprehension.txt b/tests/functional/u/unnecessary/unnecessary_comprehension.txt index 189bcc60ee..4ce66c7515 100644 --- a/tests/functional/u/unnecessary/unnecessary_comprehension.txt +++ b/tests/functional/u/unnecessary/unnecessary_comprehension.txt @@ -1,13 +1,13 @@ -unnecessary-comprehension:5:0::Unnecessary use of a comprehension, use list(iterable) instead. -unnecessary-comprehension:8:0::Unnecessary use of a comprehension, use list(iterable) instead. -unnecessary-comprehension:9:0::Unnecessary use of a comprehension, use list(iterable) instead. -unnecessary-comprehension:17:0::Unnecessary use of a comprehension, use list(a_dict.items()) instead. -unnecessary-comprehension:20:0::Unnecessary use of a comprehension, use set(iterable) instead. -unnecessary-comprehension:23:0::Unnecessary use of a comprehension, use set(iterable) instead. -unnecessary-comprehension:24:0::Unnecessary use of a comprehension, use set(iterable) instead. -unnecessary-comprehension:32:0::Unnecessary use of a comprehension, use dict(iterable) instead. -unnecessary-comprehension:34:0::Unnecessary use of a comprehension, use dict(iterable) instead. -unnecessary-comprehension:46:0::Unnecessary use of a comprehension, use my_list instead. -unnecessary-comprehension:47:0::Unnecessary use of a comprehension, use my_dict instead. -consider-using-dict-items:48:0::Consider iterating with .items() -unnecessary-comprehension:49:0::Unnecessary use of a comprehension, use my_set instead. +unnecessary-comprehension:5:0::Unnecessary use of a comprehension, use list(iterable) instead.:HIGH +unnecessary-comprehension:8:0::Unnecessary use of a comprehension, use list(iterable) instead.:HIGH +unnecessary-comprehension:9:0::Unnecessary use of a comprehension, use list(iterable) instead.:HIGH +unnecessary-comprehension:17:0::Unnecessary use of a comprehension, use list(a_dict.items()) instead.:HIGH +unnecessary-comprehension:20:0::Unnecessary use of a comprehension, use set(iterable) instead.:HIGH +unnecessary-comprehension:23:0::Unnecessary use of a comprehension, use set(iterable) instead.:HIGH +unnecessary-comprehension:24:0::Unnecessary use of a comprehension, use set(iterable) instead.:HIGH +unnecessary-comprehension:32:0::Unnecessary use of a comprehension, use dict(iterable) instead.:HIGH +unnecessary-comprehension:34:0::Unnecessary use of a comprehension, use dict(iterable) instead.:HIGH +unnecessary-comprehension:46:0::Unnecessary use of a comprehension, use my_list instead.:HIGH +unnecessary-comprehension:47:0::Unnecessary use of a comprehension, use my_dict instead.:HIGH +consider-using-dict-items:48:0::Consider iterating with .items():HIGH +unnecessary-comprehension:49:0::Unnecessary use of a comprehension, use my_set instead.:HIGH diff --git a/tests/functional/u/unnecessary/unnecessary_lambda.txt b/tests/functional/u/unnecessary/unnecessary_lambda.txt index c3983b1951..511836ac08 100644 --- a/tests/functional/u/unnecessary/unnecessary_lambda.txt +++ b/tests/functional/u/unnecessary/unnecessary_lambda.txt @@ -1,7 +1,7 @@ -unnecessary-lambda:9:4::Lambda may not be necessary -unnecessary-lambda:11:4::Lambda may not be necessary -unnecessary-lambda:13:4::Lambda may not be necessary -unnecessary-lambda:20:4::Lambda may not be necessary -unnecessary-lambda:22:4::Lambda may not be necessary -unnecessary-lambda:24:4::Lambda may not be necessary -unnecessary-lambda:26:4::Lambda may not be necessary +unnecessary-lambda:9:4::Lambda may not be necessary:HIGH +unnecessary-lambda:11:4::Lambda may not be necessary:HIGH +unnecessary-lambda:13:4::Lambda may not be necessary:HIGH +unnecessary-lambda:20:4::Lambda may not be necessary:HIGH +unnecessary-lambda:22:4::Lambda may not be necessary:HIGH +unnecessary-lambda:24:4::Lambda may not be necessary:HIGH +unnecessary-lambda:26:4::Lambda may not be necessary:HIGH diff --git a/tests/functional/u/unnecessary/unnecessary_not.txt b/tests/functional/u/unnecessary/unnecessary_not.txt index 722f26d406..1d98e257d4 100644 --- a/tests/functional/u/unnecessary/unnecessary_not.txt +++ b/tests/functional/u/unnecessary/unnecessary_not.txt @@ -1,14 +1,14 @@ -unneeded-not:10:7:unneeded_not:"Consider changing ""not not bool_var"" to ""bool_var""" -unneeded-not:12:7:unneeded_not:"Consider changing ""not someint == 1"" to ""someint != 1""" -unneeded-not:14:7:unneeded_not:"Consider changing ""not someint != 1"" to ""someint == 1""" -unneeded-not:16:7:unneeded_not:"Consider changing ""not someint < 1"" to ""someint >= 1""" -unneeded-not:18:7:unneeded_not:"Consider changing ""not someint > 1"" to ""someint <= 1""" -unneeded-not:20:7:unneeded_not:"Consider changing ""not someint <= 1"" to ""someint > 1""" -unneeded-not:22:7:unneeded_not:"Consider changing ""not someint >= 1"" to ""someint < 1""" -unneeded-not:24:7:unneeded_not:"Consider changing ""not not someint"" to ""someint""" -unneeded-not:26:7:unneeded_not:"Consider changing ""not bool_var == True"" to ""bool_var != True""" -unneeded-not:28:7:unneeded_not:"Consider changing ""not bool_var == False"" to ""bool_var != False""" -unneeded-not:30:7:unneeded_not:"Consider changing ""not bool_var != True"" to ""bool_var == True""" -unneeded-not:32:7:unneeded_not:"Consider changing ""not True == True"" to ""True != True""" -unneeded-not:34:7:unneeded_not:"Consider changing ""not 2 in [3, 4]"" to ""2 not in [3, 4]""" -unneeded-not:36:7:unneeded_not:"Consider changing ""not someint is 'test'"" to ""someint is not 'test'""" +unneeded-not:10:7:unneeded_not:"Consider changing ""not not bool_var"" to ""bool_var""":HIGH +unneeded-not:12:7:unneeded_not:"Consider changing ""not someint == 1"" to ""someint != 1""":HIGH +unneeded-not:14:7:unneeded_not:"Consider changing ""not someint != 1"" to ""someint == 1""":HIGH +unneeded-not:16:7:unneeded_not:"Consider changing ""not someint < 1"" to ""someint >= 1""":HIGH +unneeded-not:18:7:unneeded_not:"Consider changing ""not someint > 1"" to ""someint <= 1""":HIGH +unneeded-not:20:7:unneeded_not:"Consider changing ""not someint <= 1"" to ""someint > 1""":HIGH +unneeded-not:22:7:unneeded_not:"Consider changing ""not someint >= 1"" to ""someint < 1""":HIGH +unneeded-not:24:7:unneeded_not:"Consider changing ""not not someint"" to ""someint""":HIGH +unneeded-not:26:7:unneeded_not:"Consider changing ""not bool_var == True"" to ""bool_var != True""":HIGH +unneeded-not:28:7:unneeded_not:"Consider changing ""not bool_var == False"" to ""bool_var != False""":HIGH +unneeded-not:30:7:unneeded_not:"Consider changing ""not bool_var != True"" to ""bool_var == True""":HIGH +unneeded-not:32:7:unneeded_not:"Consider changing ""not True == True"" to ""True != True""":HIGH +unneeded-not:34:7:unneeded_not:"Consider changing ""not 2 in [3, 4]"" to ""2 not in [3, 4]""":HIGH +unneeded-not:36:7:unneeded_not:"Consider changing ""not someint is 'test'"" to ""someint is not 'test'""":HIGH diff --git a/tests/functional/u/unnecessary/unnecessary_pass.txt b/tests/functional/u/unnecessary/unnecessary_pass.txt index 6eabcf5bd3..80cd8473cf 100644 --- a/tests/functional/u/unnecessary/unnecessary_pass.txt +++ b/tests/functional/u/unnecessary/unnecessary_pass.txt @@ -1,3 +1,3 @@ -unnecessary-pass:7:4::Unnecessary pass statement -unnecessary-pass:33:4:docstring_and_pass:Unnecessary pass statement -unnecessary-pass:49:4:DocstringAndPass:Unnecessary pass statement +unnecessary-pass:7:4::Unnecessary pass statement:HIGH +unnecessary-pass:33:4:docstring_and_pass:Unnecessary pass statement:HIGH +unnecessary-pass:49:4:DocstringAndPass:Unnecessary pass statement:HIGH diff --git a/tests/functional/u/unpacking_generalizations.txt b/tests/functional/u/unpacking_generalizations.txt index 96c476cc2d..cbb2629e49 100644 --- a/tests/functional/u/unpacking_generalizations.txt +++ b/tests/functional/u/unpacking_generalizations.txt @@ -1,6 +1,6 @@ -too-many-function-args:24:0::Too many positional arguments for function call -no-value-for-parameter:25:0::No value for argument 'd' in function call -too-many-function-args:26:0::Too many positional arguments for function call -repeated-keyword:27:0::Got multiple values for keyword argument 'd' in function call -repeated-keyword:29:0::Got multiple values for keyword argument 'c' in function call -repeated-keyword:29:0::Got multiple values for keyword argument 'd' in function call +too-many-function-args:24:0::Too many positional arguments for function call:HIGH +no-value-for-parameter:25:0::No value for argument 'd' in function call:HIGH +too-many-function-args:26:0::Too many positional arguments for function call:HIGH +repeated-keyword:27:0::Got multiple values for keyword argument 'd' in function call:HIGH +repeated-keyword:29:0::Got multiple values for keyword argument 'c' in function call:HIGH +repeated-keyword:29:0::Got multiple values for keyword argument 'd' in function call:HIGH diff --git a/tests/functional/u/unpacking_non_sequence.txt b/tests/functional/u/unpacking_non_sequence.txt index 0ac2bc29a1..3084b82af1 100644 --- a/tests/functional/u/unpacking_non_sequence.txt +++ b/tests/functional/u/unpacking_non_sequence.txt @@ -1,10 +1,10 @@ -unpacking-non-sequence:77:0::Attempting to unpack a non-sequence defined at line 74 -unpacking-non-sequence:78:0::Attempting to unpack a non-sequence -unpacking-non-sequence:79:0::Attempting to unpack a non-sequence None -unpacking-non-sequence:80:0::Attempting to unpack a non-sequence 1 -unpacking-non-sequence:81:0::Attempting to unpack a non-sequence defined at line 9 of functional.u.unpacking -unpacking-non-sequence:82:0::Attempting to unpack a non-sequence defined at line 11 of functional.u.unpacking -unpacking-non-sequence:83:0::Attempting to unpack a non-sequence -unpacking-non-sequence:98:8:ClassUnpacking.test:Attempting to unpack a non-sequence defined at line 74 -unpacking-non-sequence:99:8:ClassUnpacking.test:Attempting to unpack a non-sequence -unpacking-non-sequence:100:8:ClassUnpacking.test:Attempting to unpack a non-sequence +unpacking-non-sequence:77:0::Attempting to unpack a non-sequence defined at line 74:HIGH +unpacking-non-sequence:78:0::Attempting to unpack a non-sequence:HIGH +unpacking-non-sequence:79:0::Attempting to unpack a non-sequence None:HIGH +unpacking-non-sequence:80:0::Attempting to unpack a non-sequence 1:HIGH +unpacking-non-sequence:81:0::Attempting to unpack a non-sequence defined at line 9 of functional.u.unpacking:HIGH +unpacking-non-sequence:82:0::Attempting to unpack a non-sequence defined at line 11 of functional.u.unpacking:HIGH +unpacking-non-sequence:83:0::Attempting to unpack a non-sequence:HIGH +unpacking-non-sequence:98:8:ClassUnpacking.test:Attempting to unpack a non-sequence defined at line 74:HIGH +unpacking-non-sequence:99:8:ClassUnpacking.test:Attempting to unpack a non-sequence:HIGH +unpacking-non-sequence:100:8:ClassUnpacking.test:Attempting to unpack a non-sequence:HIGH diff --git a/tests/functional/u/unreachable.txt b/tests/functional/u/unreachable.txt index 19108724c8..42c66311ca 100644 --- a/tests/functional/u/unreachable.txt +++ b/tests/functional/u/unreachable.txt @@ -1,5 +1,5 @@ -unreachable:7:4:func1:Unreachable code -unreachable:12:8:func2:Unreachable code -unreachable:18:8:func3:Unreachable code -unreachable:22:4:func4:Unreachable code -unreachable:35:4:func6:Unreachable code +unreachable:7:4:func1:Unreachable code:HIGH +unreachable:12:8:func2:Unreachable code:HIGH +unreachable:18:8:func3:Unreachable code:HIGH +unreachable:22:4:func4:Unreachable code:HIGH +unreachable:35:4:func6:Unreachable code:HIGH diff --git a/tests/functional/u/unrecognized_inline_option.txt b/tests/functional/u/unrecognized_inline_option.txt index a893733265..610d6a0035 100644 --- a/tests/functional/u/unrecognized_inline_option.txt +++ b/tests/functional/u/unrecognized_inline_option.txt @@ -1 +1 @@ -unrecognized-inline-option:2:0::Unrecognized file option 'bouboule' +unrecognized-inline-option:2:0::Unrecognized file option 'bouboule':HIGH diff --git a/tests/functional/u/unsubscriptable_value.txt b/tests/functional/u/unsubscriptable_value.txt index c95e05cdcf..1291b89e49 100644 --- a/tests/functional/u/unsubscriptable_value.txt +++ b/tests/functional/u/unsubscriptable_value.txt @@ -1,15 +1,15 @@ -unsubscriptable-object:32:0::Value 'NonSubscriptable()' is unsubscriptable -unsubscriptable-object:33:0::Value 'NonSubscriptable' is unsubscriptable -unsubscriptable-object:35:0::Value 'Subscriptable' is unsubscriptable -unsubscriptable-object:44:0::Value 'powers_of_two()' is unsubscriptable -unsubscriptable-object:45:0::Value 'powers_of_two' is unsubscriptable -unsubscriptable-object:49:0::Value 'True' is unsubscriptable -unsubscriptable-object:50:0::Value 'None' is unsubscriptable -unsubscriptable-object:51:0::Value '8.5' is unsubscriptable -unsubscriptable-object:52:0::Value '10' is unsubscriptable -unsubscriptable-object:55:0::Value '{x**2 for x in range(10)}' is unsubscriptable -unsubscriptable-object:56:0::Value 'set(numbers)' is unsubscriptable -unsubscriptable-object:57:0::Value 'frozenset(numbers)' is unsubscriptable -unsubscriptable-object:77:0::Value 'SubscriptableClass()' is unsubscriptable -unsubscriptable-object:84:0::Value 'test' is unsubscriptable -unsubscriptable-object:127:11:test_one:Value 'var_one' is unsubscriptable +unsubscriptable-object:32:0::Value 'NonSubscriptable()' is unsubscriptable:HIGH +unsubscriptable-object:33:0::Value 'NonSubscriptable' is unsubscriptable:HIGH +unsubscriptable-object:35:0::Value 'Subscriptable' is unsubscriptable:HIGH +unsubscriptable-object:44:0::Value 'powers_of_two()' is unsubscriptable:HIGH +unsubscriptable-object:45:0::Value 'powers_of_two' is unsubscriptable:HIGH +unsubscriptable-object:49:0::Value 'True' is unsubscriptable:HIGH +unsubscriptable-object:50:0::Value 'None' is unsubscriptable:HIGH +unsubscriptable-object:51:0::Value '8.5' is unsubscriptable:HIGH +unsubscriptable-object:52:0::Value '10' is unsubscriptable:HIGH +unsubscriptable-object:55:0::Value '{x**2 for x in range(10)}' is unsubscriptable:HIGH +unsubscriptable-object:56:0::Value 'set(numbers)' is unsubscriptable:HIGH +unsubscriptable-object:57:0::Value 'frozenset(numbers)' is unsubscriptable:HIGH +unsubscriptable-object:77:0::Value 'SubscriptableClass()' is unsubscriptable:HIGH +unsubscriptable-object:84:0::Value 'test' is unsubscriptable:HIGH +unsubscriptable-object:127:11:test_one:Value 'var_one' is unsubscriptable:HIGH diff --git a/tests/functional/u/unsubscriptable_value_py37.txt b/tests/functional/u/unsubscriptable_value_py37.txt index b5959971ac..e53688f91f 100644 --- a/tests/functional/u/unsubscriptable_value_py37.txt +++ b/tests/functional/u/unsubscriptable_value_py37.txt @@ -1 +1 @@ -unsubscriptable-object:15:0::Value 'Subscriptable()' is unsubscriptable +unsubscriptable-object:15:0::Value 'Subscriptable()' is unsubscriptable:HIGH diff --git a/tests/functional/u/unsupported/unsupported_assignment_operation.txt b/tests/functional/u/unsupported/unsupported_assignment_operation.txt index 854e8bfec2..4f97abe817 100644 --- a/tests/functional/u/unsupported/unsupported_assignment_operation.txt +++ b/tests/functional/u/unsupported/unsupported_assignment_operation.txt @@ -1,17 +1,17 @@ -unsupported-assignment-operation:16:0::'(1, 2, 3)' does not support item assignment -unsupported-assignment-operation:31:0::'NonSubscriptable()' does not support item assignment -unsupported-assignment-operation:32:0::'NonSubscriptable' does not support item assignment -unsupported-assignment-operation:34:0::'Subscriptable' does not support item assignment -unsupported-assignment-operation:43:0::'powers_of_two()' does not support item assignment -unsupported-assignment-operation:44:0::'powers_of_two' does not support item assignment -unsupported-assignment-operation:48:0::'True' does not support item assignment -unsupported-assignment-operation:49:0::'None' does not support item assignment -unsupported-assignment-operation:50:0::'8.5' does not support item assignment -unsupported-assignment-operation:51:0::'10' does not support item assignment -unsupported-assignment-operation:54:0::'{x**2 for x in range(10)}' does not support item assignment -unsupported-assignment-operation:55:0::'set(numbers)' does not support item assignment -unsupported-assignment-operation:56:0::'frozenset(numbers)' does not support item assignment -unsupported-assignment-operation:76:0::'SubscriptableClass()' does not support item assignment -unsupported-assignment-operation:82:0::'test()' does not support item assignment -unsupported-assignment-operation:83:0::'test' does not support item assignment -unsupported-assignment-operation:94:12::'SubscriptableClass()' does not support item assignment +unsupported-assignment-operation:16:0::'(1, 2, 3)' does not support item assignment:HIGH +unsupported-assignment-operation:31:0::'NonSubscriptable()' does not support item assignment:HIGH +unsupported-assignment-operation:32:0::'NonSubscriptable' does not support item assignment:HIGH +unsupported-assignment-operation:34:0::'Subscriptable' does not support item assignment:HIGH +unsupported-assignment-operation:43:0::'powers_of_two()' does not support item assignment:HIGH +unsupported-assignment-operation:44:0::'powers_of_two' does not support item assignment:HIGH +unsupported-assignment-operation:48:0::'True' does not support item assignment:HIGH +unsupported-assignment-operation:49:0::'None' does not support item assignment:HIGH +unsupported-assignment-operation:50:0::'8.5' does not support item assignment:HIGH +unsupported-assignment-operation:51:0::'10' does not support item assignment:HIGH +unsupported-assignment-operation:54:0::'{x**2 for x in range(10)}' does not support item assignment:HIGH +unsupported-assignment-operation:55:0::'set(numbers)' does not support item assignment:HIGH +unsupported-assignment-operation:56:0::'frozenset(numbers)' does not support item assignment:HIGH +unsupported-assignment-operation:76:0::'SubscriptableClass()' does not support item assignment:HIGH +unsupported-assignment-operation:82:0::'test()' does not support item assignment:HIGH +unsupported-assignment-operation:83:0::'test' does not support item assignment:HIGH +unsupported-assignment-operation:94:12::'SubscriptableClass()' does not support item assignment:HIGH diff --git a/tests/functional/u/unsupported/unsupported_delete_operation.txt b/tests/functional/u/unsupported/unsupported_delete_operation.txt index 6ad92eb330..d9f72c1aae 100644 --- a/tests/functional/u/unsupported/unsupported_delete_operation.txt +++ b/tests/functional/u/unsupported/unsupported_delete_operation.txt @@ -1,17 +1,17 @@ -unsupported-delete-operation:16:4::'(1, 2, 3)' does not support item deletion -unsupported-delete-operation:31:4::'NonSubscriptable()' does not support item deletion -unsupported-delete-operation:32:4::'NonSubscriptable' does not support item deletion -unsupported-delete-operation:34:4::'Subscriptable' does not support item deletion -unsupported-delete-operation:43:4::'powers_of_two()' does not support item deletion -unsupported-delete-operation:44:4::'powers_of_two' does not support item deletion -unsupported-delete-operation:48:4::'True' does not support item deletion -unsupported-delete-operation:49:4::'None' does not support item deletion -unsupported-delete-operation:50:4::'8.5' does not support item deletion -unsupported-delete-operation:51:4::'10' does not support item deletion -unsupported-delete-operation:54:4::'{x**2 for x in range(10)}' does not support item deletion -unsupported-delete-operation:55:4::'set(numbers)' does not support item deletion -unsupported-delete-operation:56:4::'frozenset(numbers)' does not support item deletion -unsupported-delete-operation:76:4::'SubscriptableClass()' does not support item deletion -unsupported-delete-operation:82:4::'test()' does not support item deletion -unsupported-delete-operation:83:4::'test' does not support item deletion -unsupported-delete-operation:94:16::'SubscriptableClass()' does not support item deletion +unsupported-delete-operation:16:4::'(1, 2, 3)' does not support item deletion:HIGH +unsupported-delete-operation:31:4::'NonSubscriptable()' does not support item deletion:HIGH +unsupported-delete-operation:32:4::'NonSubscriptable' does not support item deletion:HIGH +unsupported-delete-operation:34:4::'Subscriptable' does not support item deletion:HIGH +unsupported-delete-operation:43:4::'powers_of_two()' does not support item deletion:HIGH +unsupported-delete-operation:44:4::'powers_of_two' does not support item deletion:HIGH +unsupported-delete-operation:48:4::'True' does not support item deletion:HIGH +unsupported-delete-operation:49:4::'None' does not support item deletion:HIGH +unsupported-delete-operation:50:4::'8.5' does not support item deletion:HIGH +unsupported-delete-operation:51:4::'10' does not support item deletion:HIGH +unsupported-delete-operation:54:4::'{x**2 for x in range(10)}' does not support item deletion:HIGH +unsupported-delete-operation:55:4::'set(numbers)' does not support item deletion:HIGH +unsupported-delete-operation:56:4::'frozenset(numbers)' does not support item deletion:HIGH +unsupported-delete-operation:76:4::'SubscriptableClass()' does not support item deletion:HIGH +unsupported-delete-operation:82:4::'test()' does not support item deletion:HIGH +unsupported-delete-operation:83:4::'test' does not support item deletion:HIGH +unsupported-delete-operation:94:16::'SubscriptableClass()' does not support item deletion:HIGH diff --git a/tests/functional/u/unused/unused_argument.txt b/tests/functional/u/unused/unused_argument.txt index b1ad4ad5a2..856cb7d7d6 100644 --- a/tests/functional/u/unused/unused_argument.txt +++ b/tests/functional/u/unused/unused_argument.txt @@ -1,7 +1,7 @@ -unused-argument:3:16:test_unused:Unused argument 'first' -unused-argument:3:23:test_unused:Unused argument 'second' +unused-argument:3:16:test_unused:Unused argument 'first':HIGH +unused-argument:3:23:test_unused:Unused argument 'second':HIGH unused-argument:32:29:Sub.newmethod:Unused argument 'aay':INFERENCE -unused-argument:54:13:function:Unused argument 'arg' +unused-argument:54:13:function:Unused argument 'arg':HIGH unused-argument:61:21:AAAA.method:Unused argument 'arg':INFERENCE unused-argument:68:0:AAAA.selected:Unused argument 'args':INFERENCE unused-argument:68:0:AAAA.selected:Unused argument 'kwargs':INFERENCE diff --git a/tests/functional/u/unused/unused_argument_py3.txt b/tests/functional/u/unused/unused_argument_py3.txt index 2bddb5184e..04c02cb622 100644 --- a/tests/functional/u/unused/unused_argument_py3.txt +++ b/tests/functional/u/unused/unused_argument_py3.txt @@ -1,3 +1,3 @@ -unused-argument:3:9:func:Unused argument 'first' -unused-argument:3:19:func:Unused argument 'second' -unused-argument:7:23:only_raises:Unused argument 'second' +unused-argument:3:9:func:Unused argument 'first':HIGH +unused-argument:3:19:func:Unused argument 'second':HIGH +unused-argument:7:23:only_raises:Unused argument 'second':HIGH diff --git a/tests/functional/u/unused/unused_global_variable2.txt b/tests/functional/u/unused/unused_global_variable2.txt index a670aa0e0e..0a9be1fba2 100644 --- a/tests/functional/u/unused/unused_global_variable2.txt +++ b/tests/functional/u/unused/unused_global_variable2.txt @@ -1 +1 @@ -unused-variable:2:0::Unused variable 'VAR' +unused-variable:2:0::Unused variable 'VAR':HIGH diff --git a/tests/functional/u/unused/unused_global_variable4.txt b/tests/functional/u/unused/unused_global_variable4.txt index 67e6da9798..1d2d523d83 100644 --- a/tests/functional/u/unused/unused_global_variable4.txt +++ b/tests/functional/u/unused/unused_global_variable4.txt @@ -1,2 +1,2 @@ -unused-variable:2:0::Unused variable 'VAR' -unused-variable:3:0::Unused variable 'VAR' +unused-variable:2:0::Unused variable 'VAR':HIGH +unused-variable:3:0::Unused variable 'VAR':HIGH diff --git a/tests/functional/u/unused/unused_import.txt b/tests/functional/u/unused/unused_import.txt index 79ac42d10a..fc337964f9 100644 --- a/tests/functional/u/unused/unused_import.txt +++ b/tests/functional/u/unused/unused_import.txt @@ -1,10 +1,10 @@ -unused-import:3:0::Unused import xml.etree -unused-import:4:0::Unused import xml.sax -unused-import:5:0::Unused os.path imported as test -unused-import:6:0::Unused argv imported from sys as test2 -unused-import:7:0::Unused flags imported from sys -unused-import:9:0::Unused OrderedDict imported from collections -unused-import:9:0::Unused deque imported from collections -unused-import:10:0::Unused import re -unused-import:13:0::Unused SomeOtherName imported from fake -unused-import:45:0::Unused import os +unused-import:3:0::Unused import xml.etree:HIGH +unused-import:4:0::Unused import xml.sax:HIGH +unused-import:5:0::Unused os.path imported as test:HIGH +unused-import:6:0::Unused argv imported from sys as test2:HIGH +unused-import:7:0::Unused flags imported from sys:HIGH +unused-import:9:0::Unused OrderedDict imported from collections:HIGH +unused-import:9:0::Unused deque imported from collections:HIGH +unused-import:10:0::Unused import re:HIGH +unused-import:13:0::Unused SomeOtherName imported from fake:HIGH +unused-import:45:0::Unused import os:HIGH diff --git a/tests/functional/u/unused/unused_import_py30.txt b/tests/functional/u/unused/unused_import_py30.txt index 1a2ff4fb9d..f7a7906f38 100644 --- a/tests/functional/u/unused/unused_import_py30.txt +++ b/tests/functional/u/unused/unused_import_py30.txt @@ -1 +1 @@ -reimported:7:0::Reimport 'ABCMeta' (imported line 6) +reimported:7:0::Reimport 'ABCMeta' (imported line 6):HIGH diff --git a/tests/functional/u/unused/unused_variable.txt b/tests/functional/u/unused/unused_variable.txt index bfe5dc91b0..4364b489c1 100644 --- a/tests/functional/u/unused/unused_variable.txt +++ b/tests/functional/u/unused/unused_variable.txt @@ -1,26 +1,26 @@ -unused-import:4:4:test_regression_737:Unused import xml -unused-import:7:4:test_regression_923:Unused import unittest.case -unused-import:8:4:test_regression_923:Unused xml imported as sql -unused-variable:15:4:test_unused_with_prepended_underscore:Unused variable '_a_' -unused-variable:16:4:test_unused_with_prepended_underscore:Unused variable '__a__' -unused-variable:20:4:test_local_field_prefixed_with_unused_or_ignored:Unused variable 'flagged_local_field' -unused-variable:28:8:HasUnusedDunderClass.test:Unused variable '__class__' -possibly-unused-variable:35:4:locals_example_defined_before:Possibly unused variable 'value' -unused-variable:41:4:locals_example_defined_after:Unused variable 'value' -unused-variable:46:4:locals_does_not_account_for_subscopes:Unused variable 'value' -unused-import:54:4:unused_import_from:Unused wraps imported from functools as abc -unused-import:55:4:unused_import_from:Unused namedtuple imported from collections -unused-import:59:4:unused_import_in_function:Unused hexdigits imported from string -unused-variable:64:4:hello:Unused variable 'my_var' -unused-variable:76:4:function:Unused variable 'aaaa' +unused-import:4:4:test_regression_737:Unused import xml:HIGH +unused-import:7:4:test_regression_923:Unused import unittest.case:HIGH +unused-import:8:4:test_regression_923:Unused xml imported as sql:HIGH +unused-variable:15:4:test_unused_with_prepended_underscore:Unused variable '_a_':HIGH +unused-variable:16:4:test_unused_with_prepended_underscore:Unused variable '__a__':HIGH +unused-variable:20:4:test_local_field_prefixed_with_unused_or_ignored:Unused variable 'flagged_local_field':HIGH +unused-variable:28:8:HasUnusedDunderClass.test:Unused variable '__class__':HIGH +possibly-unused-variable:35:4:locals_example_defined_before:Possibly unused variable 'value':HIGH +unused-variable:41:4:locals_example_defined_after:Unused variable 'value':HIGH +unused-variable:46:4:locals_does_not_account_for_subscopes:Unused variable 'value':HIGH +unused-import:54:4:unused_import_from:Unused wraps imported from functools as abc:HIGH +unused-import:55:4:unused_import_from:Unused namedtuple imported from collections:HIGH +unused-import:59:4:unused_import_in_function:Unused hexdigits imported from string:HIGH +unused-variable:64:4:hello:Unused variable 'my_var':HIGH +unused-variable:76:4:function:Unused variable 'aaaa':HIGH global-variable-not-assigned:97:4:test_global:Using global for 'PATH' but no assignment is done:HIGH global-variable-not-assigned:97:4:test_global:Using global for 'deque' but no assignment is done:HIGH -unused-import:103:4:test_global:Unused platform imported from sys -unused-import:104:4:test_global:Unused version imported from sys as VERSION -unused-import:105:4:test_global:Unused import this -unused-import:106:4:test_global:Unused re imported as RE -unused-variable:110:4:function2:Unused variable 'unused' -unused-variable:147:8:func3:Unused variable 'error' -unused-variable:153:4:func4:Unused variable 'error' -unused-variable:165:4:main:Unused variable 'e' -undefined-loop-variable:172:10:main:Using possibly undefined loop variable 'e' +unused-import:103:4:test_global:Unused platform imported from sys:HIGH +unused-import:104:4:test_global:Unused version imported from sys as VERSION:HIGH +unused-import:105:4:test_global:Unused import this:HIGH +unused-import:106:4:test_global:Unused re imported as RE:HIGH +unused-variable:110:4:function2:Unused variable 'unused':HIGH +unused-variable:147:8:func3:Unused variable 'error':HIGH +unused-variable:153:4:func4:Unused variable 'error':HIGH +unused-variable:165:4:main:Unused variable 'e':HIGH +undefined-loop-variable:172:10:main:Using possibly undefined loop variable 'e':HIGH diff --git a/tests/functional/u/use/use_a_generator.txt b/tests/functional/u/use/use_a_generator.txt index e7be228f02..fb29b40daf 100644 --- a/tests/functional/u/use/use_a_generator.txt +++ b/tests/functional/u/use/use_a_generator.txt @@ -1,2 +1,2 @@ -use-a-generator:7:0::Use a generator instead 'any(0 for x in list(range(10)))' -use-a-generator:8:0::Use a generator instead 'all(0 for y in list(range(10)))' +use-a-generator:7:0::Use a generator instead 'any(0 for x in list(range(10)))':HIGH +use-a-generator:8:0::Use a generator instead 'all(0 for y in list(range(10)))':HIGH diff --git a/tests/functional/u/use/use_literal_dict.txt b/tests/functional/u/use/use_literal_dict.txt index eede5530dc..03cb662717 100644 --- a/tests/functional/u/use/use_literal_dict.txt +++ b/tests/functional/u/use/use_literal_dict.txt @@ -1 +1 @@ -use-dict-literal:3:4::"Consider using {} instead of dict()" +use-dict-literal:3:4::Consider using {} instead of dict():HIGH diff --git a/tests/functional/u/use/use_literal_list.txt b/tests/functional/u/use/use_literal_list.txt index 07987027d0..66ad04aad9 100644 --- a/tests/functional/u/use/use_literal_list.txt +++ b/tests/functional/u/use/use_literal_list.txt @@ -1 +1 @@ -use-list-literal:3:4::"Consider using [] instead of list()" +use-list-literal:3:4::Consider using [] instead of list():HIGH diff --git a/tests/functional/u/use/use_maxsplit_arg.txt b/tests/functional/u/use/use_maxsplit_arg.txt index 8137374aa9..ec0ec4d0c3 100644 --- a/tests/functional/u/use/use_maxsplit_arg.txt +++ b/tests/functional/u/use/use_maxsplit_arg.txt @@ -1,21 +1,21 @@ -use-maxsplit-arg:5:12::Use '1,2,3'.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:6:11::"Use '1,2,3'[::-1].split(',', maxsplit=1)[0] instead" -use-maxsplit-arg:9:12::Use SEQ.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:10:11::Use SEQ.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:11:12::Use SEQ.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:12:11::Use SEQ.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:45:12::Use Foo.class_str.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:46:11::Use Foo.class_str.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:47:12::Use Foo.class_str.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:48:11::Use Foo.class_str.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:56:12::Use bar.get_string().split(',', maxsplit=1)[0] instead -use-maxsplit-arg:57:11::Use bar.get_string().rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:66:10::Use s.split(' ', maxsplit=1)[0] instead -use-maxsplit-arg:67:10::Use s.rsplit(' ', maxsplit=1)[-1] instead -use-maxsplit-arg:76:6::Use Bar.split.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:77:6::Use Bar.split.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:78:6::Use Bar.split.split(',', maxsplit=1)[0] instead -use-maxsplit-arg:79:6::Use Bar.split.rsplit(',', maxsplit=1)[-1] instead -use-maxsplit-arg:82:4::Use '1,2,3'.split('\n', maxsplit=1)[0] instead -use-maxsplit-arg:83:4::Use '1,2,3'.rsplit('split', maxsplit=1)[-1] instead -use-maxsplit-arg:84:4::Use '1,2,3'.split('rsplit', maxsplit=1)[0] instead +use-maxsplit-arg:5:12::Use '1,2,3'.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:6:11::"Use '1,2,3'[::-1].split(',', maxsplit=1)[0] instead":HIGH +use-maxsplit-arg:9:12::Use SEQ.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:10:11::Use SEQ.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:11:12::Use SEQ.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:12:11::Use SEQ.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:45:12::Use Foo.class_str.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:46:11::Use Foo.class_str.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:47:12::Use Foo.class_str.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:48:11::Use Foo.class_str.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:56:12::Use bar.get_string().split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:57:11::Use bar.get_string().rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:66:10::Use s.split(' ', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:67:10::Use s.rsplit(' ', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:76:6::Use Bar.split.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:77:6::Use Bar.split.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:78:6::Use Bar.split.split(',', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:79:6::Use Bar.split.rsplit(',', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:82:4::Use '1,2,3'.split('\n', maxsplit=1)[0] instead:HIGH +use-maxsplit-arg:83:4::Use '1,2,3'.rsplit('split', maxsplit=1)[-1] instead:HIGH +use-maxsplit-arg:84:4::Use '1,2,3'.split('rsplit', maxsplit=1)[0] instead:HIGH diff --git a/tests/functional/u/use/used_before_assignment_issue1081.txt b/tests/functional/u/use/used_before_assignment_issue1081.txt index 4d43c4ad2f..211af79bf6 100644 --- a/tests/functional/u/use/used_before_assignment_issue1081.txt +++ b/tests/functional/u/use/used_before_assignment_issue1081.txt @@ -1,7 +1,7 @@ -used-before-assignment:7:7:used_before_assignment_1:Using variable 'x' before assignment -redefined-outer-name:8:12:used_before_assignment_1:Redefining name 'x' from outer scope (line 3) -used-before-assignment:13:7:used_before_assignment_2:Using variable 'x' before assignment -redefined-outer-name:15:4:used_before_assignment_2:Redefining name 'x' from outer scope (line 3) -used-before-assignment:19:7:used_before_assignment_3:Using variable 'x' before assignment -redefined-outer-name:21:12:used_before_assignment_3:Redefining name 'x' from outer scope (line 3) -redefined-outer-name:30:4:not_used_before_assignment_2:Redefining name 'x' from outer scope (line 3) +used-before-assignment:7:7:used_before_assignment_1:Using variable 'x' before assignment:HIGH +redefined-outer-name:8:12:used_before_assignment_1:Redefining name 'x' from outer scope (line 3):HIGH +used-before-assignment:13:7:used_before_assignment_2:Using variable 'x' before assignment:HIGH +redefined-outer-name:15:4:used_before_assignment_2:Redefining name 'x' from outer scope (line 3):HIGH +used-before-assignment:19:7:used_before_assignment_3:Using variable 'x' before assignment:HIGH +redefined-outer-name:21:12:used_before_assignment_3:Redefining name 'x' from outer scope (line 3):HIGH +redefined-outer-name:30:4:not_used_before_assignment_2:Redefining name 'x' from outer scope (line 3):HIGH diff --git a/tests/functional/u/use/used_before_assignment_issue626.txt b/tests/functional/u/use/used_before_assignment_issue626.txt index e7e56c1959..07eea6813e 100644 --- a/tests/functional/u/use/used_before_assignment_issue626.txt +++ b/tests/functional/u/use/used_before_assignment_issue626.txt @@ -1,5 +1,5 @@ -unused-variable:5:4:main1:Unused variable 'e' -used-before-assignment:8:10:main1:Using variable 'e' before assignment -unused-variable:21:4:main3:Unused variable 'e' -unused-variable:31:4:main4:Unused variable 'e' -used-before-assignment:44:10:main4:Using variable 'e' before assignment +unused-variable:5:4:main1:Unused variable 'e':HIGH +used-before-assignment:8:10:main1:Using variable 'e' before assignment:HIGH +unused-variable:21:4:main3:Unused variable 'e':HIGH +unused-variable:31:4:main4:Unused variable 'e':HIGH +used-before-assignment:44:10:main4:Using variable 'e' before assignment:HIGH diff --git a/tests/functional/u/use/used_before_assignment_nonlocal.txt b/tests/functional/u/use/used_before_assignment_nonlocal.txt index 59aa0756dd..733f10a722 100644 --- a/tests/functional/u/use/used_before_assignment_nonlocal.txt +++ b/tests/functional/u/use/used_before_assignment_nonlocal.txt @@ -1,6 +1,6 @@ -used-before-assignment:18:14:test_fail.wrap:Using variable 'cnt' before assignment -used-before-assignment:27:14:test_fail2.wrap:Using variable 'cnt' before assignment -used-before-assignment:30:20:test_fail3:Using variable 'test_fail4' before assignment -used-before-assignment:34:22:test_fail4:Using variable 'test_fail5' before assignment -used-before-assignment:34:44:test_fail4:Using variable 'undefined' before assignment -used-before-assignment:40:18:test_fail5:Using variable 'undefined1' before assignment +used-before-assignment:18:14:test_fail.wrap:Using variable 'cnt' before assignment:HIGH +used-before-assignment:27:14:test_fail2.wrap:Using variable 'cnt' before assignment:HIGH +used-before-assignment:30:20:test_fail3:Using variable 'test_fail4' before assignment:HIGH +used-before-assignment:34:22:test_fail4:Using variable 'test_fail5' before assignment:HIGH +used-before-assignment:34:44:test_fail4:Using variable 'undefined' before assignment:HIGH +used-before-assignment:40:18:test_fail5:Using variable 'undefined1' before assignment:HIGH diff --git a/tests/functional/u/use/used_prior_global_declaration.txt b/tests/functional/u/use/used_prior_global_declaration.txt index 2354e0ef89..831b87be9a 100644 --- a/tests/functional/u/use/used_prior_global_declaration.txt +++ b/tests/functional/u/use/used_prior_global_declaration.txt @@ -1 +1 @@ -used-prior-global-declaration:8:4:test:Name 'CONST' is used prior to global declaration +used-prior-global-declaration:8:4:test:Name 'CONST' is used prior to global declaration:HIGH diff --git a/tests/functional/u/use/using_constant_test.txt b/tests/functional/u/use/using_constant_test.txt index 9d112272fd..2cc53e8e3d 100644 --- a/tests/functional/u/use/using_constant_test.txt +++ b/tests/functional/u/use/using_constant_test.txt @@ -1,26 +1,26 @@ -using-constant-test:22:0::Using a conditional statement with a constant value -using-constant-test:26:0::Using a conditional statement with a constant value -using-constant-test:29:0::Using a conditional statement with a constant value -using-constant-test:32:0::Using a conditional statement with a constant value -using-constant-test:35:0::Using a conditional statement with a constant value -using-constant-test:38:0::Using a conditional statement with a constant value -using-constant-test:41:0::Using a conditional statement with a constant value -using-constant-test:44:0::Using a conditional statement with a constant value -using-constant-test:47:0::Using a conditional statement with a constant value -using-constant-test:50:0::Using a conditional statement with a constant value -using-constant-test:53:0::Using a conditional statement with a constant value -using-constant-test:56:0::Using a conditional statement with a constant value -using-constant-test:59:0::Using a conditional statement with a constant value -using-constant-test:62:0::Using a conditional statement with a constant value -using-constant-test:65:0::Using a conditional statement with a constant value -using-constant-test:68:0::Using a conditional statement with a constant value -using-constant-test:73:0::Using a conditional statement with a constant value -using-constant-test:76:3::Using a conditional statement with a constant value -using-constant-test:80:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:81:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:82:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:83:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:84:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:85:0:test_comprehensions:Using a conditional statement with a constant value -using-constant-test:89:0::Using a conditional statement with a constant value -using-constant-test:93:0::Using a conditional statement with a constant value +using-constant-test:22:0::Using a conditional statement with a constant value:HIGH +using-constant-test:26:0::Using a conditional statement with a constant value:HIGH +using-constant-test:29:0::Using a conditional statement with a constant value:HIGH +using-constant-test:32:0::Using a conditional statement with a constant value:HIGH +using-constant-test:35:0::Using a conditional statement with a constant value:HIGH +using-constant-test:38:0::Using a conditional statement with a constant value:HIGH +using-constant-test:41:0::Using a conditional statement with a constant value:HIGH +using-constant-test:44:0::Using a conditional statement with a constant value:HIGH +using-constant-test:47:0::Using a conditional statement with a constant value:HIGH +using-constant-test:50:0::Using a conditional statement with a constant value:HIGH +using-constant-test:53:0::Using a conditional statement with a constant value:HIGH +using-constant-test:56:0::Using a conditional statement with a constant value:HIGH +using-constant-test:59:0::Using a conditional statement with a constant value:HIGH +using-constant-test:62:0::Using a conditional statement with a constant value:HIGH +using-constant-test:65:0::Using a conditional statement with a constant value:HIGH +using-constant-test:68:0::Using a conditional statement with a constant value:HIGH +using-constant-test:73:0::Using a conditional statement with a constant value:HIGH +using-constant-test:76:3::Using a conditional statement with a constant value:HIGH +using-constant-test:80:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:81:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:82:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:83:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:84:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:85:0:test_comprehensions:Using a conditional statement with a constant value:HIGH +using-constant-test:89:0::Using a conditional statement with a constant value:HIGH +using-constant-test:93:0::Using a conditional statement with a constant value:HIGH diff --git a/tests/functional/u/useless/useless_else_on_loop.txt b/tests/functional/u/useless/useless_else_on_loop.txt index dff8e318a2..aa401335ff 100644 --- a/tests/functional/u/useless/useless_else_on_loop.txt +++ b/tests/functional/u/useless/useless_else_on_loop.txt @@ -1,6 +1,6 @@ -useless-else-on-loop:10:4:test_return_for:Else clause on loop without a break statement -useless-else-on-loop:18:4:test_return_while:Else clause on loop without a break statement -useless-else-on-loop:28:0::Else clause on loop without a break statement -useless-else-on-loop:35:0::Else clause on loop without a break statement -useless-else-on-loop:40:0::Else clause on loop without a break statement -useless-else-on-loop:87:4:test_break_in_orelse_deep2:Else clause on loop without a break statement +useless-else-on-loop:10:4:test_return_for:Else clause on loop without a break statement:HIGH +useless-else-on-loop:18:4:test_return_while:Else clause on loop without a break statement:HIGH +useless-else-on-loop:28:0::Else clause on loop without a break statement:HIGH +useless-else-on-loop:35:0::Else clause on loop without a break statement:HIGH +useless-else-on-loop:40:0::Else clause on loop without a break statement:HIGH +useless-else-on-loop:87:4:test_break_in_orelse_deep2:Else clause on loop without a break statement:HIGH diff --git a/tests/functional/u/useless/useless_object_inheritance.txt b/tests/functional/u/useless/useless_object_inheritance.txt index 1b18607fac..8e885d5404 100644 --- a/tests/functional/u/useless/useless_object_inheritance.txt +++ b/tests/functional/u/useless/useless_object_inheritance.txt @@ -1,4 +1,4 @@ -useless-object-inheritance:8:0:A:Class 'A' inherits from object, can be safely removed from bases in python3 -useless-object-inheritance:14:0:C:Class 'C' inherits from object, can be safely removed from bases in python3 -useless-object-inheritance:17:0:D:Class 'D' inherits from object, can be safely removed from bases in python3 -useless-object-inheritance:20:0:E:Class 'E' inherits from object, can be safely removed from bases in python3 +useless-object-inheritance:8:0:A:Class 'A' inherits from object, can be safely removed from bases in python3:HIGH +useless-object-inheritance:14:0:C:Class 'C' inherits from object, can be safely removed from bases in python3:HIGH +useless-object-inheritance:17:0:D:Class 'D' inherits from object, can be safely removed from bases in python3:HIGH +useless-object-inheritance:20:0:E:Class 'E' inherits from object, can be safely removed from bases in python3:HIGH diff --git a/tests/functional/u/useless/useless_return.txt b/tests/functional/u/useless/useless_return.txt index 9299b458ad..ec96ebe710 100644 --- a/tests/functional/u/useless/useless_return.txt +++ b/tests/functional/u/useless/useless_return.txt @@ -1,2 +1,2 @@ -useless-return:4:0:myfunc:Useless return at end of function or method -useless-return:9:4:SomeClass.mymethod:Useless return at end of function or method +useless-return:4:0:myfunc:Useless return at end of function or method:HIGH +useless-return:9:4:SomeClass.mymethod:Useless return at end of function or method:HIGH diff --git a/tests/functional/u/useless/useless_super_delegation.txt b/tests/functional/u/useless/useless_super_delegation.txt index 0d4b0a1fad..543bbd32c4 100644 --- a/tests/functional/u/useless/useless_super_delegation.txt +++ b/tests/functional/u/useless/useless_super_delegation.txt @@ -1,19 +1,19 @@ -useless-super-delegation:214:4:UselessSuper.equivalent_params:Useless super delegation in method 'equivalent_params' -useless-super-delegation:217:4:UselessSuper.equivalent_params_1:Useless super delegation in method 'equivalent_params_1' -useless-super-delegation:220:4:UselessSuper.equivalent_params_2:Useless super delegation in method 'equivalent_params_2' -useless-super-delegation:223:4:UselessSuper.equivalent_params_3:Useless super delegation in method 'equivalent_params_3' -useless-super-delegation:226:4:UselessSuper.equivalent_params_4:Useless super delegation in method 'equivalent_params_4' -useless-super-delegation:229:4:UselessSuper.equivalent_params_5:Useless super delegation in method 'equivalent_params_5' -useless-super-delegation:232:4:UselessSuper.equivalent_params_6:Useless super delegation in method 'equivalent_params_6' -useless-super-delegation:235:4:UselessSuper.with_default_argument:Useless super delegation in method 'with_default_argument' -useless-super-delegation:239:4:UselessSuper.without_default_argument:Useless super delegation in method 'without_default_argument' -useless-super-delegation:242:4:UselessSuper.with_default_argument_none:Useless super delegation in method 'with_default_argument_none' -useless-super-delegation:246:4:UselessSuper.with_default_argument_int:Useless super delegation in method 'with_default_argument_int' -useless-super-delegation:249:4:UselessSuper.with_default_argument_tuple:Useless super delegation in method 'with_default_argument_tuple' -useless-super-delegation:252:4:UselessSuper.with_default_argument_dict:Useless super delegation in method 'with_default_argument_dict' -useless-super-delegation:255:4:UselessSuper.with_default_argument_var:Useless super delegation in method 'with_default_argument_var' -useless-super-delegation:258:4:UselessSuper.__init__:Useless super delegation in method '__init__' -useless-super-delegation:261:4:UselessSuper.with_default_arg:Useless super delegation in method 'with_default_arg' -useless-super-delegation:264:4:UselessSuper.with_default_arg_bis:Useless super delegation in method 'with_default_arg_bis' -useless-super-delegation:267:4:UselessSuper.with_default_arg_ter:Useless super delegation in method 'with_default_arg_ter' -useless-super-delegation:270:4:UselessSuper.with_default_arg_quad:Useless super delegation in method 'with_default_arg_quad' +useless-super-delegation:214:4:UselessSuper.equivalent_params:Useless super delegation in method 'equivalent_params':HIGH +useless-super-delegation:217:4:UselessSuper.equivalent_params_1:Useless super delegation in method 'equivalent_params_1':HIGH +useless-super-delegation:220:4:UselessSuper.equivalent_params_2:Useless super delegation in method 'equivalent_params_2':HIGH +useless-super-delegation:223:4:UselessSuper.equivalent_params_3:Useless super delegation in method 'equivalent_params_3':HIGH +useless-super-delegation:226:4:UselessSuper.equivalent_params_4:Useless super delegation in method 'equivalent_params_4':HIGH +useless-super-delegation:229:4:UselessSuper.equivalent_params_5:Useless super delegation in method 'equivalent_params_5':HIGH +useless-super-delegation:232:4:UselessSuper.equivalent_params_6:Useless super delegation in method 'equivalent_params_6':HIGH +useless-super-delegation:235:4:UselessSuper.with_default_argument:Useless super delegation in method 'with_default_argument':HIGH +useless-super-delegation:239:4:UselessSuper.without_default_argument:Useless super delegation in method 'without_default_argument':HIGH +useless-super-delegation:242:4:UselessSuper.with_default_argument_none:Useless super delegation in method 'with_default_argument_none':HIGH +useless-super-delegation:246:4:UselessSuper.with_default_argument_int:Useless super delegation in method 'with_default_argument_int':HIGH +useless-super-delegation:249:4:UselessSuper.with_default_argument_tuple:Useless super delegation in method 'with_default_argument_tuple':HIGH +useless-super-delegation:252:4:UselessSuper.with_default_argument_dict:Useless super delegation in method 'with_default_argument_dict':HIGH +useless-super-delegation:255:4:UselessSuper.with_default_argument_var:Useless super delegation in method 'with_default_argument_var':HIGH +useless-super-delegation:258:4:UselessSuper.__init__:Useless super delegation in method '__init__':HIGH +useless-super-delegation:261:4:UselessSuper.with_default_arg:Useless super delegation in method 'with_default_arg':HIGH +useless-super-delegation:264:4:UselessSuper.with_default_arg_bis:Useless super delegation in method 'with_default_arg_bis':HIGH +useless-super-delegation:267:4:UselessSuper.with_default_arg_ter:Useless super delegation in method 'with_default_arg_ter':HIGH +useless-super-delegation:270:4:UselessSuper.with_default_arg_quad:Useless super delegation in method 'with_default_arg_quad':HIGH diff --git a/tests/functional/u/useless/useless_super_delegation_py3.txt b/tests/functional/u/useless/useless_super_delegation_py3.txt index 3a1fdaa1a7..417b51f115 100644 --- a/tests/functional/u/useless/useless_super_delegation_py3.txt +++ b/tests/functional/u/useless/useless_super_delegation_py3.txt @@ -1,2 +1,2 @@ -useless-super-delegation:21:4:UselessSuper.useless:Useless super delegation in method 'useless' -useless-super-delegation:34:4:Ham.__init__:Useless super delegation in method '__init__' +useless-super-delegation:21:4:UselessSuper.useless:Useless super delegation in method 'useless':HIGH +useless-super-delegation:34:4:Ham.__init__:Useless super delegation in method '__init__':HIGH diff --git a/tests/functional/u/useless/useless_super_delegation_py35.txt b/tests/functional/u/useless/useless_super_delegation_py35.txt index 672ce197ef..34f7b1999c 100644 --- a/tests/functional/u/useless/useless_super_delegation_py35.txt +++ b/tests/functional/u/useless/useless_super_delegation_py35.txt @@ -1 +1 @@ -useless-super-delegation:11:4:UselessSuper.useless:Useless super delegation in method 'useless' +useless-super-delegation:11:4:UselessSuper.useless:Useless super delegation in method 'useless':HIGH diff --git a/tests/functional/u/useless/useless_super_delegation_py38.txt b/tests/functional/u/useless/useless_super_delegation_py38.txt index 3334445540..909bba73b2 100644 --- a/tests/functional/u/useless/useless_super_delegation_py38.txt +++ b/tests/functional/u/useless/useless_super_delegation_py38.txt @@ -1 +1 @@ -useless-super-delegation:16:4:Ham.__init__:Useless super delegation in method '__init__' +useless-super-delegation:16:4:Ham.__init__:Useless super delegation in method '__init__':HIGH diff --git a/tests/functional/w/wildcard_import.txt b/tests/functional/w/wildcard_import.txt index 67721a6e5b..7d9fc16a45 100644 --- a/tests/functional/w/wildcard_import.txt +++ b/tests/functional/w/wildcard_import.txt @@ -1,2 +1,2 @@ -wildcard-import:2:0::Wildcard import indirect1 -wildcard-import:5:0::Wildcard import unknown.package +wildcard-import:2:0::Wildcard import indirect1:HIGH +wildcard-import:5:0::Wildcard import unknown.package:HIGH diff --git a/tests/functional/w/wildcard_import_allowed.txt b/tests/functional/w/wildcard_import_allowed.txt index 6413af27a9..ed3f20f19f 100644 --- a/tests/functional/w/wildcard_import_allowed.txt +++ b/tests/functional/w/wildcard_import_allowed.txt @@ -1,2 +1,2 @@ -wildcard-import:3:0::Wildcard import abc -wildcard-import:4:0::Wildcard import UNINFERABLE +wildcard-import:3:0::Wildcard import abc:HIGH +wildcard-import:4:0::Wildcard import UNINFERABLE:HIGH diff --git a/tests/functional/w/with_used_before_assign.txt b/tests/functional/w/with_used_before_assign.txt index 8e1fe1be82..365222e02d 100644 --- a/tests/functional/w/with_used_before_assign.txt +++ b/tests/functional/w/with_used_before_assign.txt @@ -1,2 +1,2 @@ -undefined-variable:10:39:do_nothing:Undefined variable 'ctx' -used-before-assignment:11:8:do_nothing:Using variable 'context' before assignment +undefined-variable:10:39:do_nothing:Undefined variable 'ctx':HIGH +used-before-assignment:11:8:do_nothing:Using variable 'context' before assignment:HIGH diff --git a/tests/functional/w/with_using_generator.txt b/tests/functional/w/with_using_generator.txt index 6bd65fbe73..bca68ce8ba 100644 --- a/tests/functional/w/with_using_generator.txt +++ b/tests/functional/w/with_using_generator.txt @@ -1 +1 @@ -not-context-manager:14:8:Base.fun:Context manager 'generator' doesn't implement __enter__ and __exit__. +not-context-manager:14:8:Base.fun:Context manager 'generator' doesn't implement __enter__ and __exit__.:HIGH diff --git a/tests/functional/w/wrong_exception_operation.txt b/tests/functional/w/wrong_exception_operation.txt index 05624a3a0b..a1f3649152 100644 --- a/tests/functional/w/wrong_exception_operation.txt +++ b/tests/functional/w/wrong_exception_operation.txt @@ -1,3 +1,3 @@ -wrong-exception-operation:6:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead? -wrong-exception-operation:11:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead? -wrong-exception-operation:17:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead? +wrong-exception-operation:6:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead?:HIGH +wrong-exception-operation:11:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead?:HIGH +wrong-exception-operation:17:8::Invalid exception operation. Did you mean '(ValueError, TypeError)' instead?:HIGH diff --git a/tests/functional/w/wrong_import_order.txt b/tests/functional/w/wrong_import_order.txt index e520ef219d..ec1cd18896 100644 --- a/tests/functional/w/wrong_import_order.txt +++ b/tests/functional/w/wrong_import_order.txt @@ -1,6 +1,6 @@ -wrong-import-order:12:0::"standard import ""import os.path"" should be placed before ""import six""" -wrong-import-order:14:0::"standard import ""import sys"" should be placed before ""import six""" -wrong-import-order:15:0::"standard import ""import datetime"" should be placed before ""import six""" -wrong-import-order:18:0::"third party import ""import totally_missing"" should be placed before ""from .package import Class""" -wrong-import-order:20:0::"third party import ""import astroid"" should be placed before ""from .package import Class""" -wrong-import-order:24:0::"third party import ""from six.moves.urllib.parse import quote"" should be placed before ""from .package import Class""" +wrong-import-order:12:0::"standard import ""import os.path"" should be placed before ""import six""":HIGH +wrong-import-order:14:0::"standard import ""import sys"" should be placed before ""import six""":HIGH +wrong-import-order:15:0::"standard import ""import datetime"" should be placed before ""import six""":HIGH +wrong-import-order:18:0::"third party import ""import totally_missing"" should be placed before ""from .package import Class""":HIGH +wrong-import-order:20:0::"third party import ""import astroid"" should be placed before ""from .package import Class""":HIGH +wrong-import-order:24:0::"third party import ""from six.moves.urllib.parse import quote"" should be placed before ""from .package import Class""":HIGH diff --git a/tests/functional/w/wrong_import_position.txt b/tests/functional/w/wrong_import_position.txt index 22c4267266..4cbf5abb89 100644 --- a/tests/functional/w/wrong_import_position.txt +++ b/tests/functional/w/wrong_import_position.txt @@ -1,4 +1,4 @@ -wrong-import-position:22:0::"Import ""import six"" should be placed at the top of the module" -wrong-import-position:26:0::"Import ""import datetime"" should be placed at the top of the module" -wrong-import-position:32:0::"Import ""import scipy"" should be placed at the top of the module" -wrong-import-position:33:0::"Import ""import astroid"" should be placed at the top of the module" +wrong-import-position:22:0::"Import ""import six"" should be placed at the top of the module":HIGH +wrong-import-position:26:0::"Import ""import datetime"" should be placed at the top of the module":HIGH +wrong-import-position:32:0::"Import ""import scipy"" should be placed at the top of the module":HIGH +wrong-import-position:33:0::"Import ""import astroid"" should be placed at the top of the module":HIGH diff --git a/tests/functional/w/wrong_import_position11.txt b/tests/functional/w/wrong_import_position11.txt index a08aaa95ce..75329ef9a5 100644 --- a/tests/functional/w/wrong_import_position11.txt +++ b/tests/functional/w/wrong_import_position11.txt @@ -1 +1 @@ -wrong-import-position:4:0::"Import ""import os"" should be placed at the top of the module" +wrong-import-position:4:0::"Import ""import os"" should be placed at the top of the module":HIGH diff --git a/tests/functional/w/wrong_import_position12.txt b/tests/functional/w/wrong_import_position12.txt index ca655ff5bc..675ae9778a 100644 --- a/tests/functional/w/wrong_import_position12.txt +++ b/tests/functional/w/wrong_import_position12.txt @@ -1 +1 @@ -wrong-import-position:5:0::"Import ""import os"" should be placed at the top of the module" +wrong-import-position:5:0::"Import ""import os"" should be placed at the top of the module":HIGH diff --git a/tests/functional/w/wrong_import_position13.txt b/tests/functional/w/wrong_import_position13.txt index 5010d9db4c..a7ae8b23c5 100644 --- a/tests/functional/w/wrong_import_position13.txt +++ b/tests/functional/w/wrong_import_position13.txt @@ -1 +1 @@ -wrong-import-position:4:0::"Import ""from sys import x"" should be placed at the top of the module" +wrong-import-position:4:0::"Import ""from sys import x"" should be placed at the top of the module":HIGH diff --git a/tests/functional/w/wrong_import_position14.txt b/tests/functional/w/wrong_import_position14.txt index 22e09e25af..3cb3700c8d 100644 --- a/tests/functional/w/wrong_import_position14.txt +++ b/tests/functional/w/wrong_import_position14.txt @@ -1 +1 @@ -wrong-import-position:5:0::"Import ""import y"" should be placed at the top of the module" +wrong-import-position:5:0::"Import ""import y"" should be placed at the top of the module":HIGH diff --git a/tests/functional/y/yield_from_iterable.txt b/tests/functional/y/yield_from_iterable.txt index 871b11c4a1..ce47b3e14d 100644 --- a/tests/functional/y/yield_from_iterable.txt +++ b/tests/functional/y/yield_from_iterable.txt @@ -1 +1 @@ -not-an-iterable:7:15:to_ten:Non-iterable value 10 is used in an iterating context +not-an-iterable:7:15:to_ten:Non-iterable value 10 is used in an iterating context:HIGH diff --git a/tests/functional/y/yield_from_outside_func.txt b/tests/functional/y/yield_from_outside_func.txt index 415637c31e..c6131da246 100644 --- a/tests/functional/y/yield_from_outside_func.txt +++ b/tests/functional/y/yield_from_outside_func.txt @@ -1 +1 @@ -yield-outside-function:2:0::Yield outside function +yield-outside-function:2:0::Yield outside function:HIGH diff --git a/tests/functional/y/yield_outside_func.txt b/tests/functional/y/yield_outside_func.txt index 415637c31e..c6131da246 100644 --- a/tests/functional/y/yield_outside_func.txt +++ b/tests/functional/y/yield_outside_func.txt @@ -1 +1 @@ -yield-outside-function:2:0::Yield outside function +yield-outside-function:2:0::Yield outside function:HIGH