1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-12 10:44:59 +02:00
revive/testdata
chavacava 98a6c97664
fix: confusing-results doesn't work with pointer types (#1158)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-12-04 17:42:07 +01:00
..
go1.21 refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
go1.22 refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
golint chore: add missing tests for var-declarations, fix any/interface{} type issue (#1154) 2024-12-02 13:06:52 +01:00
goUnknown fix: nil panic on old go.mod (issue #1100) 2024-11-11 18:50:12 +01:00
add_constant_default.go refactor: reduce control nesting in AddConstantRule.configure (#1128) 2024-11-18 14:38:56 +01:00
add_constant.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
argument_limit_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
argument_limit.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
atomic.go
banned_characters_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
banned_characters.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
bare_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
bool_literal_in_expr.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
call_to_gc.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
cognitive_complexity_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
cognitive_complexity.go cognitive-complexity: handle direct recursion (#1149) 2024-12-01 12:16:06 +01:00
comment_spacings.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
comments_density_1.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
comments_density_2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
comments_density_3.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
confusing_naming1.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
confusing_naming2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
confusing_results.go fix: confusing-results doesn't work with pointer types (#1158) 2024-12-04 17:42:07 +01:00
constant_logical_expr.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
context_as_argument_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
context_as_argument.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
cyclomatic_2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
cyclomatic_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
cyclomatic.go refactor(cyclomatic): improved message for cyclomatic rule (#629) 2022-01-31 17:33:43 +01:00
datarace.go add rule datarace (#683) 2022-04-18 09:45:42 -07:00
deep_exit_test.go deep-exit: ignore testable examples (#1155) 2024-12-03 15:39:07 +01:00
deep_exit.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
defer_loop_disabled.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
defer_only_loop_enabled.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
defer.go fix #1029 (#1030) 2024-08-21 10:38:34 +02:00
disable_annotations2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
disable_annotations3.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
disable_annotations.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
dot_imports_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
dot_imports.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
duplicated_imports.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
early_return_jump.go feat: optional extension to early-return rule (#1133) (#1138) 2024-11-28 08:51:33 +01:00
early_return_scope.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
early_return.go feat: optional extension to early-return rule (#1133) (#1138) 2024-11-28 08:51:33 +01:00
empty_block.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
empty_lines.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_map_style_any.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_map_style_literal.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_map_style_make.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
enforce_repeated_arg_type_style_full_args.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_full_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_mixed_full_short.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_mixed_short_full.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_short_args.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_repeated_arg_type_style_short_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_slice_style_any.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_slice_style_literal.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_slice_style_make.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_slice_style_nil.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
error_strings_with_custom_functions.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
exported_issue_519.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
exported_issue_552.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
exported_issue_555.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
exported_issue_1002.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
exported_issue_1045.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_length_limit_4_skip_comments_skip_blank.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_length_limit_6_skip_blank.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_length_limit_7_skip_comments.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_length_limit_9.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_length_limit_disabled.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
file_to_exclude.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
filename_ok_default.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
filename_with_underscores.go adds filename-format rule (#1092) 2024-11-02 14:23:46 -03:00
filenamе_with_non_ascii_char.go Filename-format rule: fix filename extension regex: ".go" to "\\.go". (#1132) 2024-11-16 16:12:26 +01:00
flag_param.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
function_length1.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
function_length2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
function_length3.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
function_length_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
function_result_limit.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
get_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
go.mod adds tests for specific go versions (#1043) 2024-09-20 16:09:24 +02:00
identical_branches.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
if_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
import_alias_naming_custom_config_with_multiple_values.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
import_alias_naming_custom_config_with_only_deny.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
import_alias_naming_custom_config.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
import_alias_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
import_shadowing.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
imports_blocklist_original.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
imports_blocklist.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
json_data_format_atomic.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
json_data_format_var_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
line_length_limit_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
line_length_limit.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header1.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header2.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header3.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header4.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header5.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header6.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
lint_file_header_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
max_control_nesting_default.go test: add default case when no arguments provided to a rule (#1140) 2024-11-20 20:19:17 +01:00
max_control_nesting.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
max_public_structs_ok.go fix: fixes #1103 by fixing the processing of max-public-structs arguments (#1114) 2024-11-15 09:43:53 +01:00
max_public_structs.go fix: fixes #1103 by fixing the processing of max-public-structs arguments (#1114) 2024-11-15 09:43:53 +01:00
modifies_param.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
modifies_value_receiver.go fix #1066 by ignoring what seems legit modification of value receivers 2024-11-15 09:41:29 +01:00
nested_structs.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
optimize_operands_order.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
range_val_address.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
range_val_in_closure.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
receiver_naming_issue_669.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
receiver_naming_issue_1040.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
redefines_builtin_id.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
redundant_build_tag_go116.go feat: add redundant-build-tag rule (#1135) 2024-11-20 20:26:28 +01:00
redundant_build_tag_no_failure.go feat: add redundant-build-tag rule (#1135) 2024-11-20 20:26:28 +01:00
redundant_build_tag.go feat: add redundant-build-tag rule (#1135) 2024-11-20 20:26:28 +01:00
redundant_import_alias.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
string_format_issue_1063.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
string_format.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
string_of_int.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
struct_tag_user_options.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
struct_tag.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
superfluous_else_scope.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
superfluous_else.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
time_equal.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
time_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unchecked_type_assertion_accept_ignored.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unchecked_type_assertion.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unconditional_recursion.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unexported_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unhandled_error_w_ignorelist.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unhandled_error.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unnecessary_stmt.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unreachable_code.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unused_param_custom_regex.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unused_param.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unused_receiver_custom_regex.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unused_receiver.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
use_any.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
use_errors_new.go adds rule use-errors-new (#1142) 2024-11-22 08:22:51 +01:00
useless_break.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming_skip_package_name_checks_false.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming_skip_package_name_checks_true.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming_test.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming_upper_case_const_false.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming_upper_case_const_true.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
var_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
waitgroup_by_value.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00