Skip to content

Commit 684e2b5

Browse files
committed
🌱 (chore): enable asciicheck and bidichk for improved code safety and clarity
- Added `asciicheck` to detect non-ASCII characters in identifiers and strings. Helps prevent hidden bugs and improves readability across systems. - Added `bidichk` to catch Unicode bidirectional control characters. Protects against visual code obfuscation and potential security vulnerabilities. These linters help enforce safer and more maintainable Go code, especially in kubebuilders collaborative environment with many contributors.
1 parent 61b7c73 commit 684e2b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ linters-settings:
6767
linters:
6868
disable-all: true
6969
enable:
70+
- asciicheck
71+
- bidichk
7072
- dupl
7173
- errcheck
7274
- copyloopvar

0 commit comments

Comments
 (0)