gitea/models/asymkey
silverwind 74f0c84fa4
Enable more `revive` linter rules ()
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.
..
error.go Improve error report when user passes a private key ()
gpg_key.go Move more functions to db.Find ()
gpg_key_add.go Another round of `db.DefaultContext` refactor ()
gpg_key_commit_verification.go Enable more `revive` linter rules ()
gpg_key_common.go Fix missing 0 prefix of GPG key id ()
gpg_key_import.go Final round of `db.DefaultContext` refactor ()
gpg_key_list.go Move more functions to db.Find ()
gpg_key_test.go Fix missing 0 prefix of GPG key id ()
gpg_key_verify.go Fix GPG subkey verify ()
main_test.go make writing main test easier ()
ssh_key.go Move more functions to db.Find ()
ssh_key_authorized_keys.go Fix some pending problems ()
ssh_key_commit_verification.go Use db.Find instead of writing methods for every object ()
ssh_key_deploy.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
ssh_key_fingerprint.go Clean up log messages ()
ssh_key_parse.go Prefer native parser for SSH public key parsing ()
ssh_key_principals.go Move some asymkey functions to service layer ()
ssh_key_test.go Replace assert.Fail with assert.FailNow ()
ssh_key_verify.go Retry SSH key verification with additional CRLF if it failed ()