SHA256
Use the same linters, settings and formatters as Gitea's `.golangci.yml`, so code moving between the two projects meets the same bar. Rules that only apply to Gitea's codebase (its json/ini/cache wrappers, migrations, swagger, process wrapper) are left out, this repo's extra checks (`misspell`, `copyloopvar`, a few revive rules) are kept. `gci` now owns import grouping (standard, `gitea.dev`, others), so `make fmt` and `make fmt-check` run `golangci-lint fmt`. The unused `.revive.toml` is removed. The rest of the diff fixes the newly reported issues without behavior changes. _Written by Claude (Opus 5.5)._ Reviewed-on: https://gitea.com/gitea/cli/pulls/104 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: silverwind <[email protected]>