gitea/modules/setting
wxiaoguang 65f17bfc31
Refactor legacy `unknwon/com` package, improve golangci lint ()
The main purpose is to refactor the legacy `unknwon/com` package.
1. Remove most imports of `unknwon/com`, only `util/legacy.go` imports the legacy `unknwon/com`
2. Use golangci's depguard to process denied packages
3. Fix some incorrect values in golangci.yml, eg, the version should be quoted string `"1.18"`
4. Use correctly escaped content for `go-import` and `go-source` meta tags
5. Refactor `com.Expand` to our stable (and the same fast) `vars.Expand`, our `vars.Expand` can still return partially rendered content even if the template is not good (eg: key mistach).
..
attachment.go format with gofumpt ()
cache.go format with gofumpt ()
cors.go format with gofumpt ()
cron.go Allow extended config on cron settings ()
cron_test.go format with gofumpt ()
database.go format with gofumpt ()
database_sqlite.go Refactor install page (db type) ()
database_test.go Move database settings from models to setting ()
directory.go Improve install code to avoid low-level mistakes. ()
federation.go Add nodeinfo endpoint for federation purposes ()
git.go format with gofumpt ()
i18n.go Improve install code to avoid low-level mistakes. ()
indexer.go format with gofumpt ()
indexer_test.go format with gofumpt ()
lfs.go format with gofumpt ()
log.go format with gofumpt ()
mailer.go format with gofumpt ()
markup.go Support ignore all santize for external renderer ()
migrations.go format with gofumpt ()
mime_type_map.go format with gofumpt ()
mirror.go format with gofumpt ()
oauth2_client.go OAuth2 login: Set account link to "login" as default behavior ()
packages.go Add Package Registry ()
picture.go Make AvatarRenderedSizeFactor configurable and set it to 3 ()
project.go Kanban board ()
proxy.go format with gofumpt ()
queue.go Enable deprecation error for v1.17.0 ()
repository.go Warn at startup if the provided `SCRIPT_TYPE` is not on the PATH ()
service.go add configuration option to restrict users by default ()
session.go format with gofumpt ()
setting.go Refactor legacy `unknwon/com` package, improve golangci lint ()
setting_test.go Add an abstract json layout to make it's easier to change json library ()
storage.go Rework repository archive ()
storage_test.go more test case for STORAGE_TYPE overrides (and fixes) ()
task.go Enable deprecation error for v1.17.0 ()
webhook.go Add packagist webhook ()