From 101dfbfd7e019311352281355dcacb77a6966869 Mon Sep 17 00:00:00 2001 From: Yassine Benaid Date: Tue, 31 Dec 2024 11:35:23 +0100 Subject: [PATCH 1/5] add `asasalint` linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 71385bda..4a91a71d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,4 +6,5 @@ linters: - govet # Vet examines Go source code and reports suspicious constructs. - staticcheck # It's a set of rules from staticcheck.dev - unused # Checks Go code for unused constants, variables, functions and types. + - asasalint # Check for pass []any as any in variadic func(...any). disable: From 267d63fabcb33b9cbe260787f05bc1fed20463f4 Mon Sep 17 00:00:00 2001 From: Yassine Benaid Date: Tue, 31 Dec 2024 15:34:00 +0100 Subject: [PATCH 2/5] add `asciicheck` linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 4a91a71d..5edf3658 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,4 +7,5 @@ linters: - staticcheck # It's a set of rules from staticcheck.dev - unused # Checks Go code for unused constants, variables, functions and types. - asasalint # Check for pass []any as any in variadic func(...any). + - asciicheck # Checks that all code identifiers does not have non-ASCII symbols in the name. disable: From dfdd175acf925e1a69d9be4c294a50dea603bc06 Mon Sep 17 00:00:00 2001 From: Yassine Benaid Date: Tue, 31 Dec 2024 15:35:53 +0100 Subject: [PATCH 3/5] add `bidichk` linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 5edf3658..9dde55f9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,4 +8,5 @@ linters: - unused # Checks Go code for unused constants, variables, functions and types. - asasalint # Check for pass []any as any in variadic func(...any). - asciicheck # Checks that all code identifiers does not have non-ASCII symbols in the name. + - bidichk # Checks for dangerous unicode character sequences. disable: From 4010494cf3eb9aa94a90243f08d37522c5f258ff Mon Sep 17 00:00:00 2001 From: Yassine Benaid Date: Tue, 31 Dec 2024 15:43:04 +0100 Subject: [PATCH 4/5] add `decorder` linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 9dde55f9..df4cdc5e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,4 +9,5 @@ linters: - asasalint # Check for pass []any as any in variadic func(...any). - asciicheck # Checks that all code identifiers does not have non-ASCII symbols in the name. - bidichk # Checks for dangerous unicode character sequences. + - decorder # heck declaration order and count of types, constants, variables and functions. disable: From 22ad4fbc032a6bbaeeeb29ead4884e86c5443180 Mon Sep 17 00:00:00 2001 From: Yassine Benaid Date: Tue, 31 Dec 2024 17:27:44 +0100 Subject: [PATCH 5/5] add `errname` linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index df4cdc5e..e33901dd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,4 +10,5 @@ linters: - asciicheck # Checks that all code identifiers does not have non-ASCII symbols in the name. - bidichk # Checks for dangerous unicode character sequences. - decorder # heck declaration order and count of types, constants, variables and functions. + - errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error. disable: