Enable gocritic equalFold and fix issues (#34952)

Continuation of https://github.com/go-gitea/gitea/pull/34678.

---------

Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
silverwind
2025-07-06 18:53:34 +02:00
repo.diff.committed_by GitHub
repo.diff.parent ba943fb773
repo.diff.commit 95a935aca0
repo.diff.stats_desc%!(EXTRA int=16, int=21, int=22)

repo.diff.view_file

@@ -50,6 +50,8 @@ linters:
require-explanation: true
require-specific: true
gocritic:
enabled-checks:
- equalFold
disabled-checks:
- ifElseChain
- singleCaseSwitch # Every time this occurred in the code, there was no other way.