1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-12 10:44:59 +02:00
revive/rule
chavacava d2778f36f1
adds rule use-errors-new (#1142)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-11-22 08:22:51 +01:00
..
add_constant.go refactor: reduce control nesting in AddConstantRule.configure (#1128) 2024-11-18 14:38:56 +01:00
argument_limit.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
atomic.go Lint cleanup (#679) 2022-04-10 11:55:13 +02:00
banned_characters.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
bare_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
blank_imports.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
bool_literal_in_expr.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
call_to_gc.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
cognitive_complexity.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
comment_spacings.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
comments_density.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
confusing_naming.go refactor: enforce map and slice style (#1131) 2024-11-16 18:05:30 +01:00
confusing_results.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
constant_logical_expr.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
context_as_argument.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
context_keys_type.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
cyclomatic.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
datarace.go fix lint issues (#1038) 2024-09-16 09:32:34 +02:00
deep_exit.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
defer.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
doc.go Code cleaunp (#905) 2023-09-23 10:41:34 +02:00
dot_imports.go refactor: enforce map and slice style (#1131) 2024-11-16 18:05:30 +01:00
duplicated_imports.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
early_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
empty_block.go refactor: enforce map and slice style (#1131) 2024-11-16 18:05:30 +01:00
empty_lines.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
enforce_map_style.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
enforce_repeated_arg_type_style.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
enforce_slice_style.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
error_naming.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
error_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
error_strings.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
errorf.go Lint cleanup (#679) 2022-04-10 11:55:13 +02:00
exported.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
file_header.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
file_length_limit.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
filename_format.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_length.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
function_result_limit.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
get_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01: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.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
import_shadowing.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
imports_blocklist.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
increment_decrement.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
indent_error_flow.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
line_length_limit.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
max_control_nesting.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
max_public_structs.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +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
package_comments.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
range.go Lint cleanup (#679) 2022-04-10 11:55:13 +02:00
receiver_naming.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
redefines_builtin_id.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
redundant_build_tag.go rename unused parameter (#1143) 2024-11-20 22:26:19 +01:00
redundant_import_alias.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.go refactor: simplify with strings.Prefix, strings.CutPrefix (#1137) 2024-11-19 15:43:04 +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.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +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
unexported_return.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00
unhandled_error.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +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.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
unused_receiver.go refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +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
utils.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
var_declarations.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
var_naming.go refactor: move functions out from utils.go (#1139) 2024-11-19 13:58:14 -08:00
waitgroup_by_value.go refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00