forgejo/modules
wxiaoguang 20c135cd46
Use Go 1.19 fmt for Gitea 1.17, sync emoji data ()
The images used by Gitea's drone pipeline were upgraded to Go 1.19.x
It causes the lint fails because Go 1.19 uses new code format.

This PR partially backport  (including the emoji-data sync),
partially fix the format manually.
2022-09-22 21:58:31 +08:00
..
activitypub format with gofumpt () 2022-01-20 18:46:10 +01:00
analyze Simplify IsVendor () 2022-05-06 10:12:30 +01:00
appstate Use a struct as test options () 2022-04-14 21:58:21 +08:00
auth Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
avatar Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
base Prettify number of issues () 2022-06-12 20:08:23 +08:00
cache Update go-chi/cache to utilize Ping() () 2022-05-15 20:43:27 +02:00
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 () 2022-05-21 14:06:24 +01:00
container Move reaction to models/issues/ () 2022-03-31 17:20:39 +08:00
context Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
convert Fix 500 on time in timeline API () () 2022-09-04 16:12:37 +01:00
csv Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
doctor Fix git.Init for doctor sub-command () () 2022-08-14 00:32:44 +08:00
emoji Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
eventsource Stop spurious APIFormat stopwatches logs () 2022-06-17 22:47:15 +01:00
generate Use base32 for 2FA scratch token () 2022-01-26 12:10:10 +08:00
git Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
gitgraph Move some code into models/git () 2022-06-12 23:51:54 +08:00
graceful Ensure that graceful start-up is informed of unused SSH listener () 2022-08-21 20:18:22 +08:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight Adjust line detection in highlight.go () 2022-08-03 01:37:28 +08:00
hostmatcher fix merge () 2022-08-17 11:33:26 -04:00
httpcache Add Cache-Control header to html and api responses, add no-transform () () 2022-07-23 11:58:58 +01:00
httplib refactor httplib () 2022-01-19 19:31:39 -05:00
indexer Fix dump-repo git init, fix wrong error type for NullDownloader () () 2022-07-01 18:01:05 +02:00
json Refactor legacy unknwon/com package, improve golangci lint () 2022-04-01 16:47:50 +08:00
lfs Move some code into models/git () 2022-06-12 23:51:54 +08:00
log Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
markup Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
metrics format with gofumpt () 2022-01-20 18:46:10 +01:00
migration Add more checks in migration code () () 2022-09-04 08:41:21 -05:00
nosql fix broken insecureskipverify handling in rediss connection uris () () 2022-09-04 14:59:20 +01:00
notification Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
options Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
packages Add migrate repo archiver and packages storage support on command line () () 2022-08-18 09:27:56 +08:00
paginator Remove legacy unmaintained packages, refactor to support change default locale () 2022-04-03 17:46:48 +08:00
password Fixed assert statements. () 2021-06-07 07:27:09 +02:00
pprof Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
private Add Goroutine stack inspector to admin/monitor () 2022-03-31 19:01:43 +02:00
process Set Setpgid on child git processes () 2022-06-03 15:36:18 +01:00
proxy Return nil proxy function if proxy not enabled () 2021-08-19 16:41:20 -04:00
public Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
queue Fix 64-bit atomic operations on 32-bit machines () 2022-04-27 10:32:04 -05:00
recaptcha refactor: move from io/ioutil to io and os package () 2021-09-22 13:38:34 +08:00
references Custom regexp external issues () 2022-06-10 13:39:53 +08:00
regexplru Custom regexp external issues () 2022-06-10 13:39:53 +08:00
repository Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
secret Use CryptoRandomBytes instead of CryptoRandomString () 2022-02-04 18:03:15 +01:00
session format with gofumpt () 2022-01-20 18:46:10 +01:00
setting Enable contenthash in filename for dynamic assets () () 2022-08-25 07:16:20 +01:00
ssh Ensure that graceful start-up is informed of unused SSH listener () 2022-08-21 20:18:22 +08:00
storage Add Package Registry () 2022-03-30 16:42:47 +08:00
structs Dismiss prior pull reviews if done via web in review dismiss () () 2022-07-19 17:46:33 +02:00
svg Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
sync Use queue instead of memory queue in webhook send service () 2022-04-25 20:03:01 +02:00
templates Add MD5 back to template helper functions to avoid breaking () 2022-09-07 19:30:52 +08:00
test Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
timeutil Fix hard-coded timeout and error panic in API archive download endpoint () () 2022-09-06 07:54:47 +01:00
translation Remove legacy unmaintained packages, refactor to support change default locale () 2022-04-03 17:46:48 +08:00
typesniffer Rework raw file http header logic () () 2022-07-30 18:37:02 +02:00
updatechecker format with gofumpt () 2022-01-20 18:46:10 +01:00
upload Simplify parameter types () 2021-12-20 04:41:31 +00:00
uri Prevent NPE if gitea uploader fails to open url () 2021-12-23 16:27:33 +00:00
user Add gitea-vet () 2020-04-05 07:20:50 +01:00
util Use Go 1.19 fmt for Gitea 1.17, sync emoji data () 2022-09-22 21:58:31 +08:00
validation Add more checks in migration code () () 2022-09-04 08:41:21 -05:00
web Unify repo settings & show better error () 2022-06-12 13:43:27 +08:00