aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/activitypub/client.go3
-rw-r--r--modules/activitypub/client_test.go3
-rw-r--r--modules/activitypub/keypair.go3
-rw-r--r--modules/activitypub/keypair_test.go3
-rw-r--r--modules/activitypub/main_test.go3
-rw-r--r--modules/activitypub/user_settings.go3
-rw-r--r--modules/activitypub/user_settings_test.go3
-rw-r--r--modules/analyze/code_langauge.go3
-rw-r--r--modules/analyze/generated.go3
-rw-r--r--modules/analyze/vendor.go3
-rw-r--r--modules/analyze/vendor_test.go3
-rw-r--r--modules/auth/openid/discovery_cache.go3
-rw-r--r--modules/auth/openid/discovery_cache_test.go3
-rw-r--r--modules/auth/openid/openid.go3
-rw-r--r--modules/auth/pam/pam.go3
-rw-r--r--modules/auth/pam/pam_stub.go3
-rw-r--r--modules/auth/pam/pam_test.go3
-rw-r--r--modules/auth/webauthn/webauthn.go3
-rw-r--r--modules/auth/webauthn/webauthn_test.go3
-rw-r--r--modules/avatar/avatar.go3
-rw-r--r--modules/avatar/avatar_test.go3
-rw-r--r--modules/avatar/identicon/block.go3
-rw-r--r--modules/avatar/identicon/colors.go3
-rw-r--r--modules/avatar/identicon/identicon.go3
-rw-r--r--modules/avatar/identicon/identicon_test.go3
-rw-r--r--modules/avatar/identicon/polygon.go3
-rw-r--r--modules/base/base.go3
-rw-r--r--modules/base/natural_sort.go3
-rw-r--r--modules/base/natural_sort_test.go3
-rw-r--r--modules/base/tool.go3
-rw-r--r--modules/base/tool_test.go3
-rw-r--r--modules/cache/cache.go3
-rw-r--r--modules/cache/cache_redis.go3
-rw-r--r--modules/cache/cache_test.go3
-rw-r--r--modules/cache/cache_twoqueue.go3
-rw-r--r--modules/charset/ambiguous.go3
-rw-r--r--modules/charset/ambiguous/generate.go7
-rw-r--r--modules/charset/ambiguous_gen.go3
-rw-r--r--modules/charset/ambiguous_gen_test.go3
-rw-r--r--modules/charset/breakwriter.go3
-rw-r--r--modules/charset/breakwriter_test.go3
-rw-r--r--modules/charset/charset.go3
-rw-r--r--modules/charset/charset_test.go3
-rw-r--r--modules/charset/escape.go3
-rw-r--r--modules/charset/escape_status.go3
-rw-r--r--modules/charset/escape_stream.go3
-rw-r--r--modules/charset/escape_test.go3
-rw-r--r--modules/charset/htmlstream.go3
-rw-r--r--modules/charset/invisible/generate.go7
-rw-r--r--modules/charset/invisible_gen.go3
-rw-r--r--modules/container/set.go3
-rw-r--r--modules/container/set_test.go3
-rw-r--r--modules/context/access_log.go3
-rw-r--r--modules/context/api.go3
-rw-r--r--modules/context/api_org.go3
-rw-r--r--modules/context/api_test.go3
-rw-r--r--modules/context/auth.go3
-rw-r--r--modules/context/captcha.go3
-rw-r--r--modules/context/context.go3
-rw-r--r--modules/context/form.go3
-rw-r--r--modules/context/org.go3
-rw-r--r--modules/context/package.go3
-rw-r--r--modules/context/pagination.go3
-rw-r--r--modules/context/permission.go3
-rw-r--r--modules/context/private.go3
-rw-r--r--modules/context/repo.go3
-rw-r--r--modules/context/response.go3
-rw-r--r--modules/context/utils.go3
-rw-r--r--modules/convert/convert.go3
-rw-r--r--modules/convert/git_commit.go3
-rw-r--r--modules/convert/git_commit_test.go3
-rw-r--r--modules/convert/issue.go3
-rw-r--r--modules/convert/issue_comment.go3
-rw-r--r--modules/convert/issue_test.go3
-rw-r--r--modules/convert/main_test.go3
-rw-r--r--modules/convert/mirror.go3
-rw-r--r--modules/convert/notification.go3
-rw-r--r--modules/convert/package.go3
-rw-r--r--modules/convert/pull.go3
-rw-r--r--modules/convert/pull_review.go3
-rw-r--r--modules/convert/pull_test.go3
-rw-r--r--modules/convert/release.go3
-rw-r--r--modules/convert/repository.go3
-rw-r--r--modules/convert/status.go3
-rw-r--r--modules/convert/user.go3
-rw-r--r--modules/convert/user_test.go3
-rw-r--r--modules/convert/utils.go3
-rw-r--r--modules/convert/utils_test.go3
-rw-r--r--modules/convert/wiki.go3
-rw-r--r--modules/csv/csv.go3
-rw-r--r--modules/csv/csv_test.go3
-rw-r--r--modules/doctor/authorizedkeys.go3
-rw-r--r--modules/doctor/breaking.go3
-rw-r--r--modules/doctor/checkOldArchives.go3
-rw-r--r--modules/doctor/dbconsistency.go3
-rw-r--r--modules/doctor/dbversion.go3
-rw-r--r--modules/doctor/doctor.go3
-rw-r--r--modules/doctor/fix16961.go3
-rw-r--r--modules/doctor/fix16961_test.go3
-rw-r--r--modules/doctor/heads.go3
-rw-r--r--modules/doctor/mergebase.go3
-rw-r--r--modules/doctor/misc.go3
-rw-r--r--modules/doctor/paths.go3
-rw-r--r--modules/doctor/storage.go3
-rw-r--r--modules/doctor/usertype.go3
-rw-r--r--modules/emoji/emoji.go3
-rw-r--r--modules/emoji/emoji_data.go3
-rw-r--r--modules/emoji/emoji_test.go3
-rw-r--r--modules/eventsource/event.go3
-rw-r--r--modules/eventsource/event_test.go3
-rw-r--r--modules/eventsource/manager.go3
-rw-r--r--modules/eventsource/manager_run.go3
-rw-r--r--modules/eventsource/messenger.go3
-rw-r--r--modules/generate/generate.go3
-rw-r--r--modules/git/batch_reader.go3
-rw-r--r--modules/git/blame.go3
-rw-r--r--modules/git/blame_test.go3
-rw-r--r--modules/git/blob.go3
-rw-r--r--modules/git/blob_gogit.go3
-rw-r--r--modules/git/blob_nogogit.go3
-rw-r--r--modules/git/blob_test.go3
-rw-r--r--modules/git/command.go3
-rw-r--r--modules/git/command_race_test.go3
-rw-r--r--modules/git/command_test.go3
-rw-r--r--modules/git/commit.go3
-rw-r--r--modules/git/commit_convert_gogit.go3
-rw-r--r--modules/git/commit_info.go3
-rw-r--r--modules/git/commit_info_gogit.go3
-rw-r--r--modules/git/commit_info_nogogit.go3
-rw-r--r--modules/git/commit_info_test.go3
-rw-r--r--modules/git/commit_reader.go3
-rw-r--r--modules/git/commit_test.go3
-rw-r--r--modules/git/diff.go3
-rw-r--r--modules/git/diff_test.go3
-rw-r--r--modules/git/error.go3
-rw-r--r--modules/git/foreachref/format.go3
-rw-r--r--modules/git/foreachref/format_test.go3
-rw-r--r--modules/git/foreachref/parser.go3
-rw-r--r--modules/git/foreachref/parser_test.go3
-rw-r--r--modules/git/git.go3
-rw-r--r--modules/git/git_test.go3
-rw-r--r--modules/git/hook.go3
-rw-r--r--modules/git/last_commit_cache.go3
-rw-r--r--modules/git/last_commit_cache_gogit.go3
-rw-r--r--modules/git/last_commit_cache_nogogit.go3
-rw-r--r--modules/git/log_name_status.go3
-rw-r--r--modules/git/notes.go3
-rw-r--r--modules/git/notes_gogit.go3
-rw-r--r--modules/git/notes_nogogit.go3
-rw-r--r--modules/git/notes_test.go3
-rw-r--r--modules/git/parse_gogit.go3
-rw-r--r--modules/git/parse_gogit_test.go3
-rw-r--r--modules/git/parse_nogogit.go3
-rw-r--r--modules/git/parse_nogogit_test.go3
-rw-r--r--modules/git/pipeline/catfile.go3
-rw-r--r--modules/git/pipeline/lfs.go3
-rw-r--r--modules/git/pipeline/lfs_nogogit.go3
-rw-r--r--modules/git/pipeline/namerev.go3
-rw-r--r--modules/git/pipeline/revlist.go3
-rw-r--r--modules/git/ref.go3
-rw-r--r--modules/git/remote.go3
-rw-r--r--modules/git/repo.go3
-rw-r--r--modules/git/repo_archive.go3
-rw-r--r--modules/git/repo_attribute.go3
-rw-r--r--modules/git/repo_attribute_test.go3
-rw-r--r--modules/git/repo_base.go3
-rw-r--r--modules/git/repo_base_gogit.go3
-rw-r--r--modules/git/repo_base_nogogit.go3
-rw-r--r--modules/git/repo_blame.go3
-rw-r--r--modules/git/repo_blob.go3
-rw-r--r--modules/git/repo_blob_gogit.go3
-rw-r--r--modules/git/repo_blob_nogogit.go3
-rw-r--r--modules/git/repo_blob_test.go3
-rw-r--r--modules/git/repo_branch.go3
-rw-r--r--modules/git/repo_branch_gogit.go3
-rw-r--r--modules/git/repo_branch_nogogit.go3
-rw-r--r--modules/git/repo_branch_test.go3
-rw-r--r--modules/git/repo_commit.go3
-rw-r--r--modules/git/repo_commit_gogit.go3
-rw-r--r--modules/git/repo_commit_nogogit.go3
-rw-r--r--modules/git/repo_commit_test.go3
-rw-r--r--modules/git/repo_commitgraph.go3
-rw-r--r--modules/git/repo_commitgraph_gogit.go3
-rw-r--r--modules/git/repo_compare.go3
-rw-r--r--modules/git/repo_compare_test.go3
-rw-r--r--modules/git/repo_gpg.go3
-rw-r--r--modules/git/repo_hook.go3
-rw-r--r--modules/git/repo_index.go3
-rw-r--r--modules/git/repo_language_stats.go3
-rw-r--r--modules/git/repo_language_stats_gogit.go3
-rw-r--r--modules/git/repo_language_stats_nogogit.go3
-rw-r--r--modules/git/repo_language_stats_test.go3
-rw-r--r--modules/git/repo_object.go3
-rw-r--r--modules/git/repo_ref.go3
-rw-r--r--modules/git/repo_ref_gogit.go3
-rw-r--r--modules/git/repo_ref_nogogit.go3
-rw-r--r--modules/git/repo_ref_test.go3
-rw-r--r--modules/git/repo_stats.go3
-rw-r--r--modules/git/repo_stats_test.go3
-rw-r--r--modules/git/repo_tag.go3
-rw-r--r--modules/git/repo_tag_gogit.go3
-rw-r--r--modules/git/repo_tag_nogogit.go3
-rw-r--r--modules/git/repo_tag_test.go3
-rw-r--r--modules/git/repo_test.go3
-rw-r--r--modules/git/repo_tree.go3
-rw-r--r--modules/git/repo_tree_gogit.go3
-rw-r--r--modules/git/repo_tree_nogogit.go3
-rw-r--r--modules/git/sha1.go3
-rw-r--r--modules/git/sha1_gogit.go3
-rw-r--r--modules/git/sha1_nogogit.go3
-rw-r--r--modules/git/sha1_test.go3
-rw-r--r--modules/git/signature.go3
-rw-r--r--modules/git/signature_gogit.go3
-rw-r--r--modules/git/signature_nogogit.go3
-rw-r--r--modules/git/submodule.go3
-rw-r--r--modules/git/submodule_test.go3
-rw-r--r--modules/git/tag.go3
-rw-r--r--modules/git/tag_test.go3
-rw-r--r--modules/git/tree.go3
-rw-r--r--modules/git/tree_blob.go3
-rw-r--r--modules/git/tree_blob_gogit.go3
-rw-r--r--modules/git/tree_blob_nogogit.go3
-rw-r--r--modules/git/tree_entry.go3
-rw-r--r--modules/git/tree_entry_gogit.go3
-rw-r--r--modules/git/tree_entry_mode.go3
-rw-r--r--modules/git/tree_entry_nogogit.go3
-rw-r--r--modules/git/tree_entry_test.go3
-rw-r--r--modules/git/tree_gogit.go3
-rw-r--r--modules/git/tree_nogogit.go3
-rw-r--r--modules/git/url/url.go3
-rw-r--r--modules/git/url/url_test.go3
-rw-r--r--modules/git/utils.go3
-rw-r--r--modules/git/utils_test.go3
-rw-r--r--modules/gitgraph/graph.go3
-rw-r--r--modules/gitgraph/graph_models.go3
-rw-r--r--modules/gitgraph/graph_test.go3
-rw-r--r--modules/gitgraph/parser.go3
-rw-r--r--modules/graceful/context.go3
-rw-r--r--modules/graceful/manager.go3
-rw-r--r--modules/graceful/manager_unix.go3
-rw-r--r--modules/graceful/manager_windows.go3
-rw-r--r--modules/graceful/net_unix.go4
-rw-r--r--modules/graceful/net_windows.go4
-rw-r--r--modules/graceful/restart_unix.go4
-rw-r--r--modules/graceful/server.go4
-rw-r--r--modules/graceful/server_hooks.go3
-rw-r--r--modules/graceful/server_http.go3
-rw-r--r--modules/hcaptcha/hcaptcha.go3
-rw-r--r--modules/highlight/highlight.go3
-rw-r--r--modules/highlight/highlight_test.go3
-rw-r--r--modules/hostmatcher/hostmatcher.go3
-rw-r--r--modules/hostmatcher/hostmatcher_test.go3
-rw-r--r--modules/hostmatcher/http.go3
-rw-r--r--modules/html/html.go3
-rw-r--r--modules/httpcache/httpcache.go3
-rw-r--r--modules/httpcache/httpcache_test.go3
-rw-r--r--modules/httplib/httplib.go3
-rw-r--r--modules/indexer/bleve/batch.go3
-rw-r--r--modules/indexer/code/bleve.go3
-rw-r--r--modules/indexer/code/bleve_test.go3
-rw-r--r--modules/indexer/code/elastic_search.go3
-rw-r--r--modules/indexer/code/elastic_search_test.go3
-rw-r--r--modules/indexer/code/git.go3
-rw-r--r--modules/indexer/code/indexer.go3
-rw-r--r--modules/indexer/code/indexer_test.go3
-rw-r--r--modules/indexer/code/search.go3
-rw-r--r--modules/indexer/code/wrapped.go3
-rw-r--r--modules/indexer/issues/bleve.go3
-rw-r--r--modules/indexer/issues/bleve_test.go3
-rw-r--r--modules/indexer/issues/db.go3
-rw-r--r--modules/indexer/issues/elastic_search.go3
-rw-r--r--modules/indexer/issues/indexer.go3
-rw-r--r--modules/indexer/issues/indexer_test.go3
-rw-r--r--modules/indexer/stats/db.go3
-rw-r--r--modules/indexer/stats/indexer.go3
-rw-r--r--modules/indexer/stats/indexer_test.go3
-rw-r--r--modules/indexer/stats/queue.go3
-rw-r--r--modules/issue/template/template.go3
-rw-r--r--modules/issue/template/template_test.go3
-rw-r--r--modules/issue/template/unmarshal.go3
-rw-r--r--modules/json/json.go1
-rw-r--r--modules/lfs/client.go3
-rw-r--r--modules/lfs/client_test.go3
-rw-r--r--modules/lfs/content_store.go3
-rw-r--r--modules/lfs/endpoint.go3
-rw-r--r--modules/lfs/endpoint_test.go3
-rw-r--r--modules/lfs/filesystem_client.go3
-rw-r--r--modules/lfs/http_client.go3
-rw-r--r--modules/lfs/http_client_test.go3
-rw-r--r--modules/lfs/pointer.go3
-rw-r--r--modules/lfs/pointer_scanner_gogit.go3
-rw-r--r--modules/lfs/pointer_scanner_nogogit.go3
-rw-r--r--modules/lfs/pointer_test.go3
-rw-r--r--modules/lfs/shared.go3
-rw-r--r--modules/lfs/transferadapter.go3
-rw-r--r--modules/lfs/transferadapter_test.go3
-rw-r--r--modules/log/buffer.go3
-rw-r--r--modules/log/buffer_test.go3
-rw-r--r--modules/log/colors.go3
-rw-r--r--modules/log/colors_router.go3
-rw-r--r--modules/log/conn.go3
-rw-r--r--modules/log/conn_test.go3
-rw-r--r--modules/log/console.go3
-rw-r--r--modules/log/console_other.go3
-rw-r--r--modules/log/console_test.go3
-rw-r--r--modules/log/console_windows.go3
-rw-r--r--modules/log/errors.go3
-rw-r--r--modules/log/event.go3
-rw-r--r--modules/log/file.go3
-rw-r--r--modules/log/file_test.go3
-rw-r--r--modules/log/flags.go3
-rw-r--r--modules/log/groutinelabel.go3
-rw-r--r--modules/log/groutinelabel_test.go3
-rw-r--r--modules/log/level.go3
-rw-r--r--modules/log/level_test.go3
-rw-r--r--modules/log/log.go3
-rw-r--r--modules/log/log_test.go3
-rw-r--r--modules/log/logger.go3
-rw-r--r--modules/log/multichannel.go3
-rw-r--r--modules/log/provider.go3
-rw-r--r--modules/log/smtp.go3
-rw-r--r--modules/log/smtp_test.go3
-rw-r--r--modules/log/stack.go3
-rw-r--r--modules/log/writer.go3
-rw-r--r--modules/log/writer_test.go3
-rw-r--r--modules/markup/camo.go3
-rw-r--r--modules/markup/camo_test.go3
-rw-r--r--modules/markup/common/footnote.go3
-rw-r--r--modules/markup/common/html.go3
-rw-r--r--modules/markup/common/linkify.go3
-rw-r--r--modules/markup/console/console.go3
-rw-r--r--modules/markup/console/console_test.go3
-rw-r--r--modules/markup/csv/csv.go3
-rw-r--r--modules/markup/csv/csv_test.go3
-rw-r--r--modules/markup/external/external.go3
-rw-r--r--modules/markup/html.go3
-rw-r--r--modules/markup/html_internal_test.go4
-rw-r--r--modules/markup/html_test.go3
-rw-r--r--modules/markup/markdown/ast.go3
-rw-r--r--modules/markup/markdown/convertyaml.go3
-rw-r--r--modules/markup/markdown/goldmark.go3
-rw-r--r--modules/markup/markdown/markdown.go3
-rw-r--r--modules/markup/markdown/markdown_test.go3
-rw-r--r--modules/markup/markdown/math/block_node.go3
-rw-r--r--modules/markup/markdown/math/block_parser.go3
-rw-r--r--modules/markup/markdown/math/block_renderer.go3
-rw-r--r--modules/markup/markdown/math/inline_node.go3
-rw-r--r--modules/markup/markdown/math/inline_parser.go3
-rw-r--r--modules/markup/markdown/math/inline_renderer.go3
-rw-r--r--modules/markup/markdown/math/math.go3
-rw-r--r--modules/markup/markdown/meta.go3
-rw-r--r--modules/markup/markdown/meta_test.go3
-rw-r--r--modules/markup/markdown/renderconfig.go3
-rw-r--r--modules/markup/markdown/renderconfig_test.go3
-rw-r--r--modules/markup/markdown/toc.go3
-rw-r--r--modules/markup/mdstripper/mdstripper.go3
-rw-r--r--modules/markup/mdstripper/mdstripper_test.go3
-rw-r--r--modules/markup/orgmode/orgmode.go3
-rw-r--r--modules/markup/orgmode/orgmode_test.go3
-rw-r--r--modules/markup/renderer.go3
-rw-r--r--modules/markup/renderer_test.go3
-rw-r--r--modules/markup/sanitizer.go3
-rw-r--r--modules/markup/sanitizer_test.go3
-rw-r--r--modules/mcaptcha/mcaptcha.go3
-rwxr-xr-xmodules/metrics/collector.go3
-rw-r--r--modules/migration/comment.go3
-rw-r--r--modules/migration/downloader.go3
-rw-r--r--modules/migration/error.go3
-rw-r--r--modules/migration/file_format.go3
-rw-r--r--modules/migration/file_format_test.go3
-rw-r--r--modules/migration/issue.go3
-rw-r--r--modules/migration/label.go3
-rw-r--r--modules/migration/messenger.go3
-rw-r--r--modules/migration/milestone.go3
-rw-r--r--modules/migration/null_downloader.go3
-rw-r--r--modules/migration/options.go3
-rw-r--r--modules/migration/pullrequest.go3
-rw-r--r--modules/migration/reaction.go3
-rw-r--r--modules/migration/release.go3
-rw-r--r--modules/migration/repo.go3
-rw-r--r--modules/migration/retry_downloader.go3
-rw-r--r--modules/migration/review.go3
-rw-r--r--modules/migration/schemas_bindata.go3
-rw-r--r--modules/migration/schemas_dynamic.go3
-rw-r--r--modules/migration/schemas_static.go3
-rw-r--r--modules/migration/uploader.go3
-rw-r--r--modules/mirror/mirror.go3
-rw-r--r--modules/nosql/leveldb.go3
-rw-r--r--modules/nosql/manager.go3
-rw-r--r--modules/nosql/manager_leveldb.go3
-rw-r--r--modules/nosql/manager_redis.go3
-rw-r--r--modules/nosql/manager_redis_test.go3
-rw-r--r--modules/nosql/redis.go3
-rw-r--r--modules/nosql/redis_test.go3
-rw-r--r--modules/notification/action/action.go3
-rw-r--r--modules/notification/action/action_test.go3
-rw-r--r--modules/notification/base/notifier.go3
-rw-r--r--modules/notification/base/null.go3
-rw-r--r--modules/notification/indexer/indexer.go3
-rw-r--r--modules/notification/mail/mail.go3
-rw-r--r--modules/notification/mirror/mirror.go3
-rw-r--r--modules/notification/notification.go3
-rw-r--r--modules/notification/ui/ui.go3
-rw-r--r--modules/notification/webhook/webhook.go3
-rw-r--r--modules/options/base.go3
-rw-r--r--modules/options/dynamic.go3
-rw-r--r--modules/options/options.go3
-rw-r--r--modules/options/options_bindata.go3
-rw-r--r--modules/options/static.go3
-rw-r--r--modules/packages/composer/metadata.go3
-rw-r--r--modules/packages/composer/metadata_test.go3
-rw-r--r--modules/packages/conan/conanfile_parser.go3
-rw-r--r--modules/packages/conan/conanfile_parser_test.go3
-rw-r--r--modules/packages/conan/conaninfo_parser.go3
-rw-r--r--modules/packages/conan/conaninfo_parser_test.go3
-rw-r--r--modules/packages/conan/metadata.go3
-rw-r--r--modules/packages/conan/reference.go3
-rw-r--r--modules/packages/conan/reference_test.go3
-rw-r--r--modules/packages/container/helm/helm.go3
-rw-r--r--modules/packages/container/metadata.go3
-rw-r--r--modules/packages/container/metadata_test.go3
-rw-r--r--modules/packages/container/oci/digest.go3
-rw-r--r--modules/packages/container/oci/mediatype.go3
-rw-r--r--modules/packages/container/oci/oci.go3
-rw-r--r--modules/packages/container/oci/reference.go3
-rw-r--r--modules/packages/content_store.go3
-rw-r--r--modules/packages/hashed_buffer.go3
-rw-r--r--modules/packages/hashed_buffer_test.go3
-rw-r--r--modules/packages/helm/metadata.go3
-rw-r--r--modules/packages/maven/metadata.go3
-rw-r--r--modules/packages/maven/metadata_test.go3
-rw-r--r--modules/packages/multi_hasher.go3
-rw-r--r--modules/packages/multi_hasher_test.go3
-rw-r--r--modules/packages/npm/creator.go3
-rw-r--r--modules/packages/npm/creator_test.go3
-rw-r--r--modules/packages/npm/metadata.go3
-rw-r--r--modules/packages/nuget/metadata.go3
-rw-r--r--modules/packages/nuget/metadata_test.go3
-rw-r--r--modules/packages/nuget/symbol_extractor.go3
-rw-r--r--modules/packages/nuget/symbol_extractor_test.go3
-rw-r--r--modules/packages/pub/metadata.go3
-rw-r--r--modules/packages/pub/metadata_test.go3
-rw-r--r--modules/packages/pypi/metadata.go3
-rw-r--r--modules/packages/rubygems/marshal.go3
-rw-r--r--modules/packages/rubygems/marshal_test.go3
-rw-r--r--modules/packages/rubygems/metadata.go3
-rw-r--r--modules/packages/rubygems/metadata_test.go3
-rw-r--r--modules/packages/vagrant/metadata.go3
-rw-r--r--modules/packages/vagrant/metadata_test.go3
-rw-r--r--modules/password/password.go3
-rw-r--r--modules/password/password_test.go3
-rw-r--r--modules/password/pwn.go3
-rw-r--r--modules/pprof/pprof.go3
-rw-r--r--modules/private/hook.go3
-rw-r--r--modules/private/internal.go3
-rw-r--r--modules/private/key.go3
-rw-r--r--modules/private/mail.go3
-rw-r--r--modules/private/manager.go3
-rw-r--r--modules/private/restore_repo.go3
-rw-r--r--modules/private/serv.go3
-rw-r--r--modules/process/context.go3
-rw-r--r--modules/process/error.go3
-rw-r--r--modules/process/manager.go3
-rw-r--r--modules/process/manager_exec.go3
-rw-r--r--modules/process/manager_stacktraces.go3
-rw-r--r--modules/process/manager_test.go3
-rw-r--r--modules/process/manager_unix.go3
-rw-r--r--modules/process/manager_windows.go3
-rw-r--r--modules/process/process.go3
-rw-r--r--modules/proxy/proxy.go3
-rw-r--r--modules/proxyprotocol/conn.go3
-rw-r--r--modules/proxyprotocol/errors.go3
-rw-r--r--modules/proxyprotocol/listener.go3
-rw-r--r--modules/proxyprotocol/util.go3
-rw-r--r--modules/public/mime_types.go3
-rw-r--r--modules/public/public.go3
-rw-r--r--modules/public/public_bindata.go3
-rw-r--r--modules/public/public_test.go3
-rw-r--r--modules/public/serve_dynamic.go3
-rw-r--r--modules/public/serve_static.go3
-rw-r--r--modules/queue/bytefifo.go3
-rw-r--r--modules/queue/helper.go3
-rw-r--r--modules/queue/manager.go3
-rw-r--r--modules/queue/queue.go3
-rw-r--r--modules/queue/queue_bytefifo.go3
-rw-r--r--modules/queue/queue_channel.go3
-rw-r--r--modules/queue/queue_channel_test.go3
-rw-r--r--modules/queue/queue_disk.go3
-rw-r--r--modules/queue/queue_disk_channel.go3
-rw-r--r--modules/queue/queue_disk_channel_test.go3
-rw-r--r--modules/queue/queue_disk_test.go3
-rw-r--r--modules/queue/queue_redis.go3
-rw-r--r--modules/queue/queue_test.go3
-rw-r--r--modules/queue/queue_wrapped.go3
-rw-r--r--modules/queue/setting.go3
-rw-r--r--modules/queue/unique_queue.go3
-rw-r--r--modules/queue/unique_queue_channel.go3
-rw-r--r--modules/queue/unique_queue_channel_test.go3
-rw-r--r--modules/queue/unique_queue_disk.go3
-rw-r--r--modules/queue/unique_queue_disk_channel.go3
-rw-r--r--modules/queue/unique_queue_redis.go3
-rw-r--r--modules/queue/unique_queue_wrapped.go3
-rw-r--r--modules/queue/workerpool.go3
-rw-r--r--modules/recaptcha/recaptcha.go3
-rw-r--r--modules/references/references.go3
-rw-r--r--modules/references/references_test.go3
-rw-r--r--modules/regexplru/regexplru.go3
-rw-r--r--modules/regexplru/regexplru_test.go3
-rw-r--r--modules/repository/collaborator.go3
-rw-r--r--modules/repository/collaborator_test.go3
-rw-r--r--modules/repository/commits.go3
-rw-r--r--modules/repository/commits_test.go3
-rw-r--r--modules/repository/create.go3
-rw-r--r--modules/repository/create_test.go3
-rw-r--r--modules/repository/delete.go3
-rw-r--r--modules/repository/env.go3
-rw-r--r--modules/repository/fork.go3
-rw-r--r--modules/repository/generate.go3
-rw-r--r--modules/repository/generate_test.go3
-rw-r--r--modules/repository/hooks.go3
-rw-r--r--modules/repository/init.go3
-rw-r--r--modules/repository/main_test.go3
-rw-r--r--modules/repository/push.go3
-rw-r--r--modules/repository/repo.go3
-rw-r--r--modules/repository/temp.go3
-rw-r--r--modules/secret/secret.go3
-rw-r--r--modules/secret/secret_test.go3
-rw-r--r--modules/session/db.go3
-rw-r--r--modules/session/store.go3
-rw-r--r--modules/session/virtual.go3
-rw-r--r--modules/setting/attachment.go3
-rw-r--r--modules/setting/cache.go3
-rw-r--r--modules/setting/cors.go3
-rw-r--r--modules/setting/cron.go3
-rw-r--r--modules/setting/cron_test.go3
-rw-r--r--modules/setting/database.go3
-rw-r--r--modules/setting/database_sqlite.go3
-rw-r--r--modules/setting/database_test.go3
-rw-r--r--modules/setting/directory.go3
-rw-r--r--modules/setting/federation.go3
-rw-r--r--modules/setting/git.go3
-rw-r--r--modules/setting/i18n.go3
-rw-r--r--modules/setting/indexer.go3
-rw-r--r--modules/setting/indexer_test.go3
-rw-r--r--modules/setting/lfs.go3
-rw-r--r--modules/setting/log.go3
-rw-r--r--modules/setting/mailer.go3
-rw-r--r--modules/setting/markup.go3
-rw-r--r--modules/setting/migrations.go3
-rw-r--r--modules/setting/mime_type_map.go3
-rw-r--r--modules/setting/mirror.go3
-rw-r--r--modules/setting/oauth2_client.go3
-rw-r--r--modules/setting/packages.go3
-rw-r--r--modules/setting/packages_test.go3
-rw-r--r--modules/setting/picture.go3
-rw-r--r--modules/setting/project.go3
-rw-r--r--modules/setting/proxy.go3
-rw-r--r--modules/setting/queue.go3
-rw-r--r--modules/setting/repository.go3
-rw-r--r--modules/setting/service.go3
-rw-r--r--modules/setting/session.go3
-rw-r--r--modules/setting/setting.go3
-rw-r--r--modules/setting/setting_test.go3
-rw-r--r--modules/setting/storage.go3
-rw-r--r--modules/setting/storage_test.go3
-rw-r--r--modules/setting/task.go3
-rw-r--r--modules/setting/webhook.go3
-rw-r--r--modules/sitemap/sitemap.go3
-rw-r--r--modules/sitemap/sitemap_test.go3
-rw-r--r--modules/ssh/init.go3
-rw-r--r--modules/ssh/ssh.go3
-rw-r--r--modules/ssh/ssh_graceful.go3
-rw-r--r--modules/storage/helper.go3
-rw-r--r--modules/storage/local.go3
-rw-r--r--modules/storage/local_test.go3
-rw-r--r--modules/storage/minio.go3
-rw-r--r--modules/storage/storage.go3
-rw-r--r--modules/structs/activitypub.go3
-rw-r--r--modules/structs/admin_user.go3
-rw-r--r--modules/structs/attachment.go3
-rw-r--r--modules/structs/commit_status.go3
-rw-r--r--modules/structs/cron.go3
-rw-r--r--modules/structs/doc.go3
-rw-r--r--modules/structs/fork.go3
-rw-r--r--modules/structs/git_blob.go3
-rw-r--r--modules/structs/git_hook.go3
-rw-r--r--modules/structs/hook.go3
-rw-r--r--modules/structs/issue.go3
-rw-r--r--modules/structs/issue_comment.go3
-rw-r--r--modules/structs/issue_label.go3
-rw-r--r--modules/structs/issue_milestone.go3
-rw-r--r--modules/structs/issue_reaction.go3
-rw-r--r--modules/structs/issue_stopwatch.go3
-rw-r--r--modules/structs/issue_test.go3
-rw-r--r--modules/structs/issue_tracked_time.go3
-rw-r--r--modules/structs/lfs_lock.go3
-rw-r--r--modules/structs/mirror.go3
-rw-r--r--modules/structs/miscellaneous.go3
-rw-r--r--modules/structs/nodeinfo.go3
-rw-r--r--modules/structs/notifications.go3
-rw-r--r--modules/structs/org.go3
-rw-r--r--modules/structs/org_member.go3
-rw-r--r--modules/structs/org_team.go3
-rw-r--r--modules/structs/org_type.go3
-rw-r--r--modules/structs/package.go3
-rw-r--r--modules/structs/pull.go3
-rw-r--r--modules/structs/pull_review.go3
-rw-r--r--modules/structs/release.go3
-rw-r--r--modules/structs/repo.go3
-rw-r--r--modules/structs/repo_branch.go3
-rw-r--r--modules/structs/repo_collaborator.go3
-rw-r--r--modules/structs/repo_commit.go3
-rw-r--r--modules/structs/repo_file.go3
-rw-r--r--modules/structs/repo_key.go3
-rw-r--r--modules/structs/repo_note.go3
-rw-r--r--modules/structs/repo_refs.go3
-rw-r--r--modules/structs/repo_tag.go3
-rw-r--r--modules/structs/repo_topic.go3
-rw-r--r--modules/structs/repo_tree.go3
-rw-r--r--modules/structs/repo_watch.go3
-rw-r--r--modules/structs/repo_wiki.go3
-rw-r--r--modules/structs/settings.go3
-rw-r--r--modules/structs/status.go3
-rw-r--r--modules/structs/task.go3
-rw-r--r--modules/structs/user.go3
-rw-r--r--modules/structs/user_app.go3
-rw-r--r--modules/structs/user_email.go3
-rw-r--r--modules/structs/user_gpgkey.go3
-rw-r--r--modules/structs/user_key.go3
-rw-r--r--modules/svg/discover_bindata.go3
-rw-r--r--modules/svg/discover_nobindata.go3
-rw-r--r--modules/svg/svg.go3
-rw-r--r--modules/sync/exclusive_pool.go3
-rw-r--r--modules/sync/status_pool.go3
-rw-r--r--modules/sync/status_pool_test.go3
-rw-r--r--modules/system/appstate.go3
-rw-r--r--modules/system/appstate_test.go3
-rw-r--r--modules/system/db.go3
-rw-r--r--modules/system/item_runtime.go3
-rw-r--r--modules/templates/base.go3
-rw-r--r--modules/templates/dynamic.go3
-rw-r--r--modules/templates/helper.go3
-rw-r--r--modules/templates/helper_test.go3
-rw-r--r--modules/templates/htmlrenderer.go3
-rw-r--r--modules/templates/mailer.go3
-rw-r--r--modules/templates/static.go3
-rw-r--r--modules/templates/templates_bindata.go3
-rw-r--r--modules/templates/vars/vars.go3
-rw-r--r--modules/templates/vars/vars_test.go3
-rw-r--r--modules/test/context_tests.go3
-rw-r--r--modules/test/utils.go3
-rw-r--r--modules/timeutil/executable.go3
-rw-r--r--modules/timeutil/language.go3
-rw-r--r--modules/timeutil/since.go3
-rw-r--r--modules/timeutil/since_test.go3
-rw-r--r--modules/timeutil/timestamp.go3
-rw-r--r--modules/translation/i18n/errors.go3
-rw-r--r--modules/translation/i18n/format.go3
-rw-r--r--modules/translation/i18n/i18n.go3
-rw-r--r--modules/translation/i18n/i18n_test.go3
-rw-r--r--modules/translation/i18n/localestore.go3
-rw-r--r--modules/translation/translation.go3
-rw-r--r--modules/typesniffer/typesniffer.go3
-rw-r--r--modules/typesniffer/typesniffer_test.go3
-rw-r--r--modules/updatechecker/update_checker.go3
-rw-r--r--modules/upload/upload.go3
-rw-r--r--modules/upload/upload_test.go3
-rw-r--r--modules/uri/uri.go3
-rw-r--r--modules/uri/uri_test.go3
-rw-r--r--modules/user/user.go3
-rw-r--r--modules/user/user_test.go3
-rw-r--r--modules/util/compare.go3
-rw-r--r--modules/util/error.go3
-rw-r--r--modules/util/file_unix.go3
-rw-r--r--modules/util/file_unix_test.go3
-rw-r--r--modules/util/file_windows.go3
-rw-r--r--modules/util/filebuffer/file_backed_buffer.go3
-rw-r--r--modules/util/filebuffer/file_backed_buffer_test.go3
-rw-r--r--modules/util/io.go3
-rw-r--r--modules/util/legacy.go3
-rw-r--r--modules/util/legacy_test.go3
-rw-r--r--modules/util/paginate.go3
-rw-r--r--modules/util/paginate_test.go3
-rw-r--r--modules/util/path.go3
-rw-r--r--modules/util/path_test.go3
-rw-r--r--modules/util/remove.go3
-rw-r--r--modules/util/sanitize.go3
-rw-r--r--modules/util/sanitize_test.go3
-rw-r--r--modules/util/sec_to_time.go3
-rw-r--r--modules/util/sec_to_time_test.go3
-rw-r--r--modules/util/shellquote.go3
-rw-r--r--modules/util/shellquote_test.go3
-rw-r--r--modules/util/slice.go3
-rw-r--r--modules/util/string.go3
-rw-r--r--modules/util/string_test.go3
-rw-r--r--modules/util/timer.go3
-rw-r--r--modules/util/truncate.go3
-rw-r--r--modules/util/truncate_test.go3
-rw-r--r--modules/util/url.go3
-rw-r--r--modules/util/util.go3
-rw-r--r--modules/util/util_test.go3
-rw-r--r--modules/validation/binding.go3
-rw-r--r--modules/validation/binding_test.go3
-rw-r--r--modules/validation/glob_pattern_test.go3
-rw-r--r--modules/validation/helpers.go3
-rw-r--r--modules/validation/helpers_test.go3
-rw-r--r--modules/validation/refname_test.go3
-rw-r--r--modules/validation/regex_pattern_test.go3
-rw-r--r--modules/validation/validurl_test.go3
-rw-r--r--modules/watcher/watcher.go3
-rw-r--r--modules/web/middleware/binding.go3
-rw-r--r--modules/web/middleware/cookie.go3
-rw-r--r--modules/web/middleware/data.go3
-rw-r--r--modules/web/middleware/flash.go3
-rw-r--r--modules/web/middleware/locale.go3
-rw-r--r--modules/web/middleware/request.go3
-rw-r--r--modules/web/route.go3
-rw-r--r--modules/web/route_test.go3
-rw-r--r--modules/web/routing/context.go3
-rw-r--r--modules/web/routing/funcinfo.go3
-rw-r--r--modules/web/routing/funcinfo_test.go3
-rw-r--r--modules/web/routing/logger.go3
-rw-r--r--modules/web/routing/logger_manager.go3
-rw-r--r--modules/web/routing/requestrecord.go3
-rw-r--r--modules/web/wrap.go3
-rw-r--r--modules/web/wrap_convert.go3
726 files changed, 734 insertions, 1455 deletions
diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go
index 9bcef69de1..ed5c9990d6 100644
--- a/modules/activitypub/client.go
+++ b/modules/activitypub/client.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go
index 62068d53b3..b5f978c4dd 100644
--- a/modules/activitypub/client_test.go
+++ b/modules/activitypub/client_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/keypair.go b/modules/activitypub/keypair.go
index fe6aba9058..299bdc43e3 100644
--- a/modules/activitypub/keypair.go
+++ b/modules/activitypub/keypair.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/keypair_test.go b/modules/activitypub/keypair_test.go
index defe498614..888254c9da 100644
--- a/modules/activitypub/keypair_test.go
+++ b/modules/activitypub/keypair_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go
index 7fa2b09265..15399ca380 100644
--- a/modules/activitypub/main_test.go
+++ b/modules/activitypub/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/user_settings.go b/modules/activitypub/user_settings.go
index d192b9cdb2..ec5fa59842 100644
--- a/modules/activitypub/user_settings.go
+++ b/modules/activitypub/user_settings.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/user_settings_test.go b/modules/activitypub/user_settings_test.go
index beefde232f..78ebf8e824 100644
--- a/modules/activitypub/user_settings_test.go
+++ b/modules/activitypub/user_settings_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/analyze/code_langauge.go b/modules/analyze/code_langauge.go
index baec2cebc5..74e7a06d06 100644
--- a/modules/analyze/code_langauge.go
+++ b/modules/analyze/code_langauge.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/generated.go b/modules/analyze/generated.go
index 0f14d28545..f608387bfe 100644
--- a/modules/analyze/generated.go
+++ b/modules/analyze/generated.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/vendor.go b/modules/analyze/vendor.go
index 976a6ddc7b..adcca923dd 100644
--- a/modules/analyze/vendor.go
+++ b/modules/analyze/vendor.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/vendor_test.go b/modules/analyze/vendor_test.go
index 2784e49d34..aafd3c431b 100644
--- a/modules/analyze/vendor_test.go
+++ b/modules/analyze/vendor_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/auth/openid/discovery_cache.go b/modules/auth/openid/discovery_cache.go
index 68cd7a8756..3a8d119bdd 100644
--- a/modules/auth/openid/discovery_cache.go
+++ b/modules/auth/openid/discovery_cache.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/openid/discovery_cache_test.go b/modules/auth/openid/discovery_cache_test.go
index 28546f6031..5a7f450937 100644
--- a/modules/auth/openid/discovery_cache_test.go
+++ b/modules/auth/openid/discovery_cache_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/openid/openid.go b/modules/auth/openid/openid.go
index 8926fc6d7a..249ce02335 100644
--- a/modules/auth/openid/openid.go
+++ b/modules/auth/openid/openid.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index 39e93d7162..cca1482b1d 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build pam
diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go
index 414d7631b5..a48e89860e 100644
--- a/modules/auth/pam/pam_stub.go
+++ b/modules/auth/pam/pam_stub.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !pam
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index 08565d2f31..c277d59c41 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -1,8 +1,7 @@
//go:build pam
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pam
diff --git a/modules/auth/webauthn/webauthn.go b/modules/auth/webauthn/webauthn.go
index e39b6f46d6..ec60a86100 100644
--- a/modules/auth/webauthn/webauthn.go
+++ b/modules/auth/webauthn/webauthn.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webauthn
diff --git a/modules/auth/webauthn/webauthn_test.go b/modules/auth/webauthn/webauthn_test.go
index 71fb9d2757..1beeb64cd6 100644
--- a/modules/auth/webauthn/webauthn_test.go
+++ b/modules/auth/webauthn/webauthn_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webauthn
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go
index 2de77de009..9ee926b059 100644
--- a/modules/avatar/avatar.go
+++ b/modules/avatar/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatar
diff --git a/modules/avatar/avatar_test.go b/modules/avatar/avatar_test.go
index a2acc54438..5ef4ed379b 100644
--- a/modules/avatar/avatar_test.go
+++ b/modules/avatar/avatar_test.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatar
diff --git a/modules/avatar/identicon/block.go b/modules/avatar/identicon/block.go
index 270f05e1b0..cb1803a231 100644
--- a/modules/avatar/identicon/block.go
+++ b/modules/avatar/identicon/block.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
diff --git a/modules/avatar/identicon/colors.go b/modules/avatar/identicon/colors.go
index a8d7090369..09a98bd0e9 100644
--- a/modules/avatar/identicon/colors.go
+++ b/modules/avatar/identicon/colors.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package identicon
diff --git a/modules/avatar/identicon/identicon.go b/modules/avatar/identicon/identicon.go
index cc7e2a791d..63926d5f19 100644
--- a/modules/avatar/identicon/identicon.go
+++ b/modules/avatar/identicon/identicon.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
// Generate pseudo-random avatars by IP, E-mail, etc.
diff --git a/modules/avatar/identicon/identicon_test.go b/modules/avatar/identicon/identicon_test.go
index 44635fbb3b..23bcc73e2e 100644
--- a/modules/avatar/identicon/identicon_test.go
+++ b/modules/avatar/identicon/identicon_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build test_avatar_identicon
diff --git a/modules/avatar/identicon/polygon.go b/modules/avatar/identicon/polygon.go
index 88440633c2..ecfc179a5c 100644
--- a/modules/avatar/identicon/polygon.go
+++ b/modules/avatar/identicon/polygon.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
diff --git a/modules/base/base.go b/modules/base/base.go
index 026f68f646..dddce202da 100644
--- a/modules/base/base.go
+++ b/modules/base/base.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/natural_sort.go b/modules/base/natural_sort.go
index 46cdd52932..e920177f89 100644
--- a/modules/base/natural_sort.go
+++ b/modules/base/natural_sort.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/natural_sort_test.go b/modules/base/natural_sort_test.go
index 2faa5acf38..91e864ad2a 100644
--- a/modules/base/natural_sort_test.go
+++ b/modules/base/natural_sort_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/tool.go b/modules/base/tool.go
index df0947ec61..994e58ac3c 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go
index 87de898e0b..81f4b464e6 100644
--- a/modules/base/tool_test.go
+++ b/modules/base/tool_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/cache/cache.go b/modules/cache/cache.go
index d98b0a0cec..2e7d5bb603 100644
--- a/modules/cache/cache.go
+++ b/modules/cache/cache.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_redis.go b/modules/cache/cache_redis.go
index 7bb71f08ce..8e056ff2ec 100644
--- a/modules/cache/cache_redis.go
+++ b/modules/cache/cache_redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_test.go b/modules/cache/cache_test.go
index f418f77e46..1c8f7d55ba 100644
--- a/modules/cache/cache_test.go
+++ b/modules/cache/cache_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_twoqueue.go b/modules/cache/cache_twoqueue.go
index 9c26b011b6..2e2efd00f2 100644
--- a/modules/cache/cache_twoqueue.go
+++ b/modules/cache/cache_twoqueue.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/charset/ambiguous.go b/modules/charset/ambiguous.go
index 9dab3b0951..c5b0c2c54d 100644
--- a/modules/charset/ambiguous.go
+++ b/modules/charset/ambiguous.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/ambiguous/generate.go b/modules/charset/ambiguous/generate.go
index 7dd2821aae..b0c2531008 100644
--- a/modules/charset/ambiguous/generate.go
+++ b/modules/charset/ambiguous/generate.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
@@ -135,8 +134,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("ambiguousTemplate").Parse(`// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package charset
diff --git a/modules/charset/ambiguous_gen.go b/modules/charset/ambiguous_gen.go
index cc270affac..c88ffd5aa5 100644
--- a/modules/charset/ambiguous_gen.go
+++ b/modules/charset/ambiguous_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/ambiguous_gen_test.go b/modules/charset/ambiguous_gen_test.go
index bd64e1c5b1..221c27d0e1 100644
--- a/modules/charset/ambiguous_gen_test.go
+++ b/modules/charset/ambiguous_gen_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/breakwriter.go b/modules/charset/breakwriter.go
index 619826ff21..a87e846466 100644
--- a/modules/charset/breakwriter.go
+++ b/modules/charset/breakwriter.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/breakwriter_test.go b/modules/charset/breakwriter_test.go
index 6bbed42ea5..5eeeedc4e2 100644
--- a/modules/charset/breakwriter_test.go
+++ b/modules/charset/breakwriter_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/charset.go b/modules/charset/charset.go
index a1210d2f05..51152142a5 100644
--- a/modules/charset/charset.go
+++ b/modules/charset/charset.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go
index 6dd13c039d..fc56799b47 100644
--- a/modules/charset/charset_test.go
+++ b/modules/charset/charset_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape.go b/modules/charset/escape.go
index b264a569ff..ce2eb1446d 100644
--- a/modules/charset/escape.go
+++ b/modules/charset/escape.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:generate go run invisible/generate.go -v -o ./invisible_gen.go
diff --git a/modules/charset/escape_status.go b/modules/charset/escape_status.go
index 7ff0ef112b..37b6ad86d4 100644
--- a/modules/charset/escape_status.go
+++ b/modules/charset/escape_status.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go
index e5f303d26f..d29e393ab4 100644
--- a/modules/charset/escape_stream.go
+++ b/modules/charset/escape_stream.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape_test.go b/modules/charset/escape_test.go
index a7232a4658..abe767f4a5 100644
--- a/modules/charset/escape_test.go
+++ b/modules/charset/escape_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/htmlstream.go b/modules/charset/htmlstream.go
index b354ce6a48..61f29120a6 100644
--- a/modules/charset/htmlstream.go
+++ b/modules/charset/htmlstream.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/invisible/generate.go b/modules/charset/invisible/generate.go
index 39eddd58dd..9dfc253333 100644
--- a/modules/charset/invisible/generate.go
+++ b/modules/charset/invisible/generate.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
@@ -88,8 +87,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("invisibleTemplate").Parse(`// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package charset
diff --git a/modules/charset/invisible_gen.go b/modules/charset/invisible_gen.go
index b3bfebe0c0..812f0e34b3 100644
--- a/modules/charset/invisible_gen.go
+++ b/modules/charset/invisible_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/container/set.go b/modules/container/set.go
index 4b4c74525d..15779983fd 100644
--- a/modules/container/set.go
+++ b/modules/container/set.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/container/set_test.go b/modules/container/set_test.go
index 6654763e56..1502236034 100644
--- a/modules/container/set_test.go
+++ b/modules/container/set_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/context/access_log.go b/modules/context/access_log.go
index 1a10c4763a..05c0f86218 100644
--- a/modules/context/access_log.go
+++ b/modules/context/access_log.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api.go b/modules/context/api.go
index b9d130e2a8..f49997a787 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api_org.go b/modules/context/api_org.go
index 2231677d42..dad02b1719 100644
--- a/modules/context/api_org.go
+++ b/modules/context/api_org.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api_test.go b/modules/context/api_test.go
index 323fdbd2cc..911a49949e 100644
--- a/modules/context/api_test.go
+++ b/modules/context/api_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/auth.go b/modules/context/auth.go
index e6d882eb5b..7cc29debbd 100644
--- a/modules/context/auth.go
+++ b/modules/context/auth.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/captcha.go b/modules/context/captcha.go
index 0bd003da6c..735613504c 100644
--- a/modules/context/captcha.go
+++ b/modules/context/captcha.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/context.go b/modules/context/context.go
index 47368bb280..0d632b67c0 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/form.go b/modules/context/form.go
index 4f48d746b9..f9c4ab6a98 100644
--- a/modules/context/form.go
+++ b/modules/context/form.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/org.go b/modules/context/org.go
index 89260b8654..39df29a860 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/package.go b/modules/context/package.go
index ce0f9a511b..65a9d74b77 100644
--- a/modules/context/package.go
+++ b/modules/context/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/pagination.go b/modules/context/pagination.go
index 617b472f0d..3effd88f10 100644
--- a/modules/context/pagination.go
+++ b/modules/context/pagination.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/permission.go b/modules/context/permission.go
index fd2263c75f..8cb5d09eb9 100644
--- a/modules/context/permission.go
+++ b/modules/context/permission.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/private.go b/modules/context/private.go
index 9e7977b5d5..24f50fa471 100644
--- a/modules/context/private.go
+++ b/modules/context/private.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 1a83c49e95..57cf2fae5a 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/response.go b/modules/context/response.go
index 112964dbe1..40eb5c0d35 100644
--- a/modules/context/response.go
+++ b/modules/context/response.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/utils.go b/modules/context/utils.go
index a72c8b47e6..1fa99953a2 100644
--- a/modules/context/utils.go
+++ b/modules/context/utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/convert/convert.go b/modules/convert/convert.go
index 78eb62d42d..107854e013 100644
--- a/modules/convert/convert.go
+++ b/modules/convert/convert.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/git_commit.go b/modules/convert/git_commit.go
index 6015a73712..59842e4020 100644
--- a/modules/convert/git_commit.go
+++ b/modules/convert/git_commit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/git_commit_test.go b/modules/convert/git_commit_test.go
index 0bba0e502e..8c4ef88ebe 100644
--- a/modules/convert/git_commit_test.go
+++ b/modules/convert/git_commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue.go b/modules/convert/issue.go
index 7c11b2a89f..ff3466cb3f 100644
--- a/modules/convert/issue.go
+++ b/modules/convert/issue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue_comment.go b/modules/convert/issue_comment.go
index c33cf5c111..81cd1ac245 100644
--- a/modules/convert/issue_comment.go
+++ b/modules/convert/issue_comment.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue_test.go b/modules/convert/issue_test.go
index ec672abad2..4d780f3f00 100644
--- a/modules/convert/issue_test.go
+++ b/modules/convert/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/main_test.go b/modules/convert/main_test.go
index 84f16b9af3..4c8e57bf79 100644
--- a/modules/convert/main_test.go
+++ b/modules/convert/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/mirror.go b/modules/convert/mirror.go
index b2414f4677..1dcfc9b64d 100644
--- a/modules/convert/mirror.go
+++ b/modules/convert/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/notification.go b/modules/convert/notification.go
index 55f782f8f6..49a1b148fb 100644
--- a/modules/convert/notification.go
+++ b/modules/convert/notification.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/package.go b/modules/convert/package.go
index 9713cda48b..900f1dd816 100644
--- a/modules/convert/package.go
+++ b/modules/convert/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull.go b/modules/convert/pull.go
index ca9a4c39c5..4291d737a4 100644
--- a/modules/convert/pull.go
+++ b/modules/convert/pull.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go
index e8a543fea9..66c5018ee2 100644
--- a/modules/convert/pull_review.go
+++ b/modules/convert/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull_test.go b/modules/convert/pull_test.go
index a0a672d3a5..21d410cfcb 100644
--- a/modules/convert/pull_test.go
+++ b/modules/convert/pull_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/release.go b/modules/convert/release.go
index 5fc95dab72..95c6d03ab1 100644
--- a/modules/convert/release.go
+++ b/modules/convert/release.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/repository.go b/modules/convert/repository.go
index 09b84afa6c..3c75f588fd 100644
--- a/modules/convert/repository.go
+++ b/modules/convert/repository.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/status.go b/modules/convert/status.go
index 7ed28a9c10..5eb38ad063 100644
--- a/modules/convert/status.go
+++ b/modules/convert/status.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/user.go b/modules/convert/user.go
index 093994856c..6b90539fd9 100644
--- a/modules/convert/user.go
+++ b/modules/convert/user.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/user_test.go b/modules/convert/user_test.go
index 89d912e460..c3ab4187b7 100644
--- a/modules/convert/user_test.go
+++ b/modules/convert/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/utils.go b/modules/convert/utils.go
index 52fbcf547f..cdce60831c 100644
--- a/modules/convert/utils.go
+++ b/modules/convert/utils.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/utils_test.go b/modules/convert/utils_test.go
index e0ab15dfd8..d1ec5980ce 100644
--- a/modules/convert/utils_test.go
+++ b/modules/convert/utils_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/wiki.go b/modules/convert/wiki.go
index 1112da43f8..20d76162c7 100644
--- a/modules/convert/wiki.go
+++ b/modules/convert/wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/csv/csv.go b/modules/csv/csv.go
index fe0c350960..c5497befe7 100644
--- a/modules/csv/csv.go
+++ b/modules/csv/csv.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package csv
diff --git a/modules/csv/csv_test.go b/modules/csv/csv_test.go
index 5a8e13c811..c627597fa3 100644
--- a/modules/csv/csv_test.go
+++ b/modules/csv/csv_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package csv
diff --git a/modules/doctor/authorizedkeys.go b/modules/doctor/authorizedkeys.go
index b3e9699a02..e4d85c4a18 100644
--- a/modules/doctor/authorizedkeys.go
+++ b/modules/doctor/authorizedkeys.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/breaking.go b/modules/doctor/breaking.go
index 474997acd8..77e3d4e8ef 100644
--- a/modules/doctor/breaking.go
+++ b/modules/doctor/breaking.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/checkOldArchives.go b/modules/doctor/checkOldArchives.go
index cefb3817bf..390dfb43aa 100644
--- a/modules/doctor/checkOldArchives.go
+++ b/modules/doctor/checkOldArchives.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go
index 602b2e523e..bb560ac6a3 100644
--- a/modules/doctor/dbconsistency.go
+++ b/modules/doctor/dbconsistency.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/dbversion.go b/modules/doctor/dbversion.go
index 8afd9f44fd..3ddca92fb3 100644
--- a/modules/doctor/dbversion.go
+++ b/modules/doctor/dbversion.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go
index 5d14cef55c..2025edc58d 100644
--- a/modules/doctor/doctor.go
+++ b/modules/doctor/doctor.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/fix16961.go b/modules/doctor/fix16961.go
index d9f895739f..ea14a9b2c4 100644
--- a/modules/doctor/fix16961.go
+++ b/modules/doctor/fix16961.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/fix16961_test.go b/modules/doctor/fix16961_test.go
index f5e5667c09..498ed9c8d5 100644
--- a/modules/doctor/fix16961_test.go
+++ b/modules/doctor/fix16961_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/heads.go b/modules/doctor/heads.go
index b1bfd50b20..41fca01d57 100644
--- a/modules/doctor/heads.go
+++ b/modules/doctor/heads.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/mergebase.go b/modules/doctor/mergebase.go
index 9f5e336461..e79369e581 100644
--- a/modules/doctor/mergebase.go
+++ b/modules/doctor/mergebase.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go
index 6f0e066f54..73df513901 100644
--- a/modules/doctor/misc.go
+++ b/modules/doctor/misc.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go
index 5a27045457..ad50078d3e 100644
--- a/modules/doctor/paths.go
+++ b/modules/doctor/paths.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/storage.go b/modules/doctor/storage.go
index 8ae9168ea6..aa987de447 100644
--- a/modules/doctor/storage.go
+++ b/modules/doctor/storage.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/usertype.go b/modules/doctor/usertype.go
index 166e38bd24..550e536cbd 100644
--- a/modules/doctor/usertype.go
+++ b/modules/doctor/usertype.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/emoji/emoji.go b/modules/emoji/emoji.go
index 89a86a7f3e..3d4ef8599b 100644
--- a/modules/emoji/emoji.go
+++ b/modules/emoji/emoji.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/emoji/emoji_data.go b/modules/emoji/emoji_data.go
index 1e14d3de6b..b73013ea1b 100644
--- a/modules/emoji/emoji_data.go
+++ b/modules/emoji/emoji_data.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/emoji/emoji_test.go b/modules/emoji/emoji_test.go
index def252896f..2526cd121e 100644
--- a/modules/emoji/emoji_test.go
+++ b/modules/emoji/emoji_test.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/eventsource/event.go b/modules/eventsource/event.go
index 281a1bb135..d5d2f323af 100644
--- a/modules/eventsource/event.go
+++ b/modules/eventsource/event.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/event_test.go b/modules/eventsource/event_test.go
index a80e062f0e..4c4272880d 100644
--- a/modules/eventsource/event_test.go
+++ b/modules/eventsource/event_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/manager.go b/modules/eventsource/manager.go
index 812d673992..7ed2a82903 100644
--- a/modules/eventsource/manager.go
+++ b/modules/eventsource/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go
index 44e878fd4e..97d08aa8a8 100644
--- a/modules/eventsource/manager_run.go
+++ b/modules/eventsource/manager_run.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/messenger.go b/modules/eventsource/messenger.go
index 091e1a5c1c..6df26716be 100644
--- a/modules/eventsource/messenger.go
+++ b/modules/eventsource/messenger.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/generate/generate.go b/modules/generate/generate.go
index 326fe8036b..f29634e05e 100644
--- a/modules/generate/generate.go
+++ b/modules/generate/generate.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package generate
diff --git a/modules/git/batch_reader.go b/modules/git/batch_reader.go
index feb0dd31be..75539c0d0a 100644
--- a/modules/git/batch_reader.go
+++ b/modules/git/batch_reader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blame.go b/modules/git/blame.go
index 832b12213c..fea75b4818 100644
--- a/modules/git/blame.go
+++ b/modules/git/blame.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blame_test.go b/modules/git/blame_test.go
index 4bee8cd27a..94277b7c1d 100644
--- a/modules/git/blame_test.go
+++ b/modules/git/blame_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blob.go b/modules/git/blob.go
index 9567affd03..8864f54d1b 100644
--- a/modules/git/blob.go
+++ b/modules/git/blob.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blob_gogit.go b/modules/git/blob_gogit.go
index 2a2b51e422..aa206409d0 100644
--- a/modules/git/blob_gogit.go
+++ b/modules/git/blob_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/blob_nogogit.go b/modules/git/blob_nogogit.go
index 89bb98162f..511332eb50 100644
--- a/modules/git/blob_nogogit.go
+++ b/modules/git/blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/blob_test.go b/modules/git/blob_test.go
index 39f3f11162..63374384f6 100644
--- a/modules/git/blob_test.go
+++ b/modules/git/blob_test.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/command.go b/modules/git/command.go
index 0d94494f11..d88fcd1a8c 100644
--- a/modules/git/command.go
+++ b/modules/git/command.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/command_race_test.go b/modules/git/command_race_test.go
index ae2acc3a5a..f567406822 100644
--- a/modules/git/command_race_test.go
+++ b/modules/git/command_race_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build race
diff --git a/modules/git/command_test.go b/modules/git/command_test.go
index 52d25c9c74..2dca2d0d34 100644
--- a/modules/git/command_test.go
+++ b/modules/git/command_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit.go b/modules/git/commit.go
index 061adc1082..14710de612 100644
--- a/modules/git/commit.go
+++ b/modules/git/commit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_convert_gogit.go b/modules/git/commit_convert_gogit.go
index bb9d3bf8ce..669f1b15d5 100644
--- a/modules/git/commit_convert_gogit.go
+++ b/modules/git/commit_convert_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/commit_info.go b/modules/git/commit_info.go
index 83e23545de..c740a4e13e 100644
--- a/modules/git/commit_info.go
+++ b/modules/git/commit_info.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_info_gogit.go b/modules/git/commit_info_gogit.go
index 341698ab34..20db5691eb 100644
--- a/modules/git/commit_info_gogit.go
+++ b/modules/git/commit_info_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/commit_info_nogogit.go b/modules/git/commit_info_nogogit.go
index d7bca3b948..e469d2cab6 100644
--- a/modules/git/commit_info_nogogit.go
+++ b/modules/git/commit_info_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/commit_info_test.go b/modules/git/commit_info_test.go
index 4bc3596896..1e331fac00 100644
--- a/modules/git/commit_info_test.go
+++ b/modules/git/commit_info_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go
index 3c1f6f5ffd..23607c43ab 100644
--- a/modules/git/commit_reader.go
+++ b/modules/git/commit_reader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_test.go b/modules/git/commit_test.go
index fb8c22dfd3..1d6fb00183 100644
--- a/modules/git/commit_test.go
+++ b/modules/git/commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/diff.go b/modules/git/diff.go
index 1a43d0dd4a..10ef3d83fb 100644
--- a/modules/git/diff.go
+++ b/modules/git/diff.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/diff_test.go b/modules/git/diff_test.go
index de71248508..0f865c52a8 100644
--- a/modules/git/diff_test.go
+++ b/modules/git/diff_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/error.go b/modules/git/error.go
index ebfea8e702..dc10d451b3 100644
--- a/modules/git/error.go
+++ b/modules/git/error.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/foreachref/format.go b/modules/git/foreachref/format.go
index c9aa5233e1..97e8ee4724 100644
--- a/modules/git/foreachref/format.go
+++ b/modules/git/foreachref/format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref
diff --git a/modules/git/foreachref/format_test.go b/modules/git/foreachref/format_test.go
index 5aca10f752..392a95a4e6 100644
--- a/modules/git/foreachref/format_test.go
+++ b/modules/git/foreachref/format_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref_test
diff --git a/modules/git/foreachref/parser.go b/modules/git/foreachref/parser.go
index bf83a10ed5..de69eaa2c8 100644
--- a/modules/git/foreachref/parser.go
+++ b/modules/git/foreachref/parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref
diff --git a/modules/git/foreachref/parser_test.go b/modules/git/foreachref/parser_test.go
index cb36428604..5468318ca8 100644
--- a/modules/git/foreachref/parser_test.go
+++ b/modules/git/foreachref/parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref_test
diff --git a/modules/git/git.go b/modules/git/git.go
index 18d62838df..f5919d82dc 100644
--- a/modules/git/git.go
+++ b/modules/git/git.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/git_test.go b/modules/git/git_test.go
index 0915737878..e3bfe496da 100644
--- a/modules/git/git_test.go
+++ b/modules/git/git_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/hook.go b/modules/git/hook.go
index c50f891224..46f93ce13e 100644
--- a/modules/git/hook.go
+++ b/modules/git/hook.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/last_commit_cache.go b/modules/git/last_commit_cache.go
index 2b51d59720..ec8f1cce62 100644
--- a/modules/git/last_commit_cache.go
+++ b/modules/git/last_commit_cache.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/last_commit_cache_gogit.go b/modules/git/last_commit_cache_gogit.go
index 82c76bad20..90e609fc81 100644
--- a/modules/git/last_commit_cache_gogit.go
+++ b/modules/git/last_commit_cache_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/last_commit_cache_nogogit.go b/modules/git/last_commit_cache_nogogit.go
index 1f4d693a26..155cb3cb7c 100644
--- a/modules/git/last_commit_cache_nogogit.go
+++ b/modules/git/last_commit_cache_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/log_name_status.go b/modules/git/log_name_status.go
index dee4fc226e..fe3b6598d7 100644
--- a/modules/git/log_name_status.go
+++ b/modules/git/log_name_status.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/notes.go b/modules/git/notes.go
index a8dd66df0b..63539cb3a2 100644
--- a/modules/git/notes.go
+++ b/modules/git/notes.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/notes_gogit.go b/modules/git/notes_gogit.go
index fe6d1f1e58..c2297d8970 100644
--- a/modules/git/notes_gogit.go
+++ b/modules/git/notes_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/notes_nogogit.go b/modules/git/notes_nogogit.go
index ba216ce3e4..4da375c321 100644
--- a/modules/git/notes_nogogit.go
+++ b/modules/git/notes_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/notes_test.go b/modules/git/notes_test.go
index 34e7178bea..267671d8fa 100644
--- a/modules/git/notes_test.go
+++ b/modules/git/notes_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/parse_gogit.go b/modules/git/parse_gogit.go
index 4a8dcfdf35..226ef5df73 100644
--- a/modules/git/parse_gogit.go
+++ b/modules/git/parse_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/parse_gogit_test.go b/modules/git/parse_gogit_test.go
index 075de6d25d..f6e32401e6 100644
--- a/modules/git/parse_gogit_test.go
+++ b/modules/git/parse_gogit_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/parse_nogogit.go b/modules/git/parse_nogogit.go
index fb5b63def9..8b94c69200 100644
--- a/modules/git/parse_nogogit.go
+++ b/modules/git/parse_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/parse_nogogit_test.go b/modules/git/parse_nogogit_test.go
index cecd3960da..23fddb014c 100644
--- a/modules/git/parse_nogogit_test.go
+++ b/modules/git/parse_nogogit_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/pipeline/catfile.go b/modules/git/pipeline/catfile.go
index c1d4bd1665..4677218150 100644
--- a/modules/git/pipeline/catfile.go
+++ b/modules/git/pipeline/catfile.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go
index 18cce34289..ee0505f29f 100644
--- a/modules/git/pipeline/lfs.go
+++ b/modules/git/pipeline/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/pipeline/lfs_nogogit.go b/modules/git/pipeline/lfs_nogogit.go
index 061da8ca50..49390f7c00 100644
--- a/modules/git/pipeline/lfs_nogogit.go
+++ b/modules/git/pipeline/lfs_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/pipeline/namerev.go b/modules/git/pipeline/namerev.go
index 85ba7db23e..ad583a7479 100644
--- a/modules/git/pipeline/namerev.go
+++ b/modules/git/pipeline/namerev.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/pipeline/revlist.go b/modules/git/pipeline/revlist.go
index 93142034ec..09bb2c8b3c 100644
--- a/modules/git/pipeline/revlist.go
+++ b/modules/git/pipeline/revlist.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/ref.go b/modules/git/ref.go
index 2f459148a2..cd8d268184 100644
--- a/modules/git/ref.go
+++ b/modules/git/ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/remote.go b/modules/git/remote.go
index c416eea136..3585313f6a 100644
--- a/modules/git/remote.go
+++ b/modules/git/remote.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo.go b/modules/git/repo.go
index 8ba3ae4fda..4ba40d20af 100644
--- a/modules/git/repo.go
+++ b/modules/git/repo.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_archive.go b/modules/git/repo_archive.go
index 13be2004ca..cff9724f00 100644
--- a/modules/git/repo_archive.go
+++ b/modules/git/repo_archive.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go
index d9c50be6f7..d3a3dc8c83 100644
--- a/modules/git/repo_attribute.go
+++ b/modules/git/repo_attribute.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_attribute_test.go b/modules/git/repo_attribute_test.go
index 901a0aa244..6882874d2d 100644
--- a/modules/git/repo_attribute_test.go
+++ b/modules/git/repo_attribute_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_base.go b/modules/git/repo_base.go
index 710f0de9f6..2c6df8b9c4 100644
--- a/modules/git/repo_base.go
+++ b/modules/git/repo_base.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_base_gogit.go b/modules/git/repo_base_gogit.go
index 8fe9c404c3..ef59ead900 100644
--- a/modules/git/repo_base_gogit.go
+++ b/modules/git/repo_base_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_base_nogogit.go b/modules/git/repo_base_nogogit.go
index 56af2c640f..a0216d14a6 100644
--- a/modules/git/repo_base_nogogit.go
+++ b/modules/git/repo_base_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_blame.go b/modules/git/repo_blame.go
index 8a3707aa09..7f44735f9f 100644
--- a/modules/git/repo_blame.go
+++ b/modules/git/repo_blame.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_blob.go b/modules/git/repo_blob.go
index 5397f24cb6..698b6c7074 100644
--- a/modules/git/repo_blob.go
+++ b/modules/git/repo_blob.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_blob_gogit.go b/modules/git/repo_blob_gogit.go
index 5640011f4a..7f0892f6f5 100644
--- a/modules/git/repo_blob_gogit.go
+++ b/modules/git/repo_blob_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_blob_nogogit.go b/modules/git/repo_blob_nogogit.go
index 44ba0a36b1..184a2bc9dd 100644
--- a/modules/git/repo_blob_nogogit.go
+++ b/modules/git/repo_blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_blob_test.go b/modules/git/repo_blob_test.go
index 9f0b865377..026c73a283 100644
--- a/modules/git/repo_blob_test.go
+++ b/modules/git/repo_blob_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_branch.go b/modules/git/repo_branch.go
index a3fc7e0c42..14dcf14d8a 100644
--- a/modules/git/repo_branch.go
+++ b/modules/git/repo_branch.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_branch_gogit.go b/modules/git/repo_branch_gogit.go
index dc29576562..ca19d3827e 100644
--- a/modules/git/repo_branch_gogit.go
+++ b/modules/git/repo_branch_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_branch_nogogit.go b/modules/git/repo_branch_nogogit.go
index 95c3718841..b1d0df6474 100644
--- a/modules/git/repo_branch_nogogit.go
+++ b/modules/git/repo_branch_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_branch_test.go b/modules/git/repo_branch_test.go
index 58a738e28b..fe788946e5 100644
--- a/modules/git/repo_branch_test.go
+++ b/modules/git/repo_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go
index 90259fd746..8343e34843 100644
--- a/modules/git/repo_commit.go
+++ b/modules/git/repo_commit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commit_gogit.go b/modules/git/repo_commit_gogit.go
index 14fec3f9c6..b6c42a802f 100644
--- a/modules/git/repo_commit_gogit.go
+++ b/modules/git/repo_commit_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go
index 13a7be778f..35a705fea3 100644
--- a/modules/git/repo_commit_nogogit.go
+++ b/modules/git/repo_commit_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go
index 7b3a5101f2..af8c0592fe 100644
--- a/modules/git/repo_commit_test.go
+++ b/modules/git/repo_commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commitgraph.go b/modules/git/repo_commitgraph.go
index 075b59ad06..492438be37 100644
--- a/modules/git/repo_commitgraph.go
+++ b/modules/git/repo_commitgraph.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commitgraph_gogit.go b/modules/git/repo_commitgraph_gogit.go
index 6b00a4fdc4..8e92c30e54 100644
--- a/modules/git/repo_commitgraph_gogit.go
+++ b/modules/git/repo_commitgraph_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go
index 7575b11658..b1b55c88a4 100644
--- a/modules/git/repo_compare.go
+++ b/modules/git/repo_compare.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_compare_test.go b/modules/git/repo_compare_test.go
index 63f7254dea..5b50bc82ad 100644
--- a/modules/git/repo_compare_test.go
+++ b/modules/git/repo_compare_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_gpg.go b/modules/git/repo_gpg.go
index 25188d07e3..4803be5816 100644
--- a/modules/git/repo_gpg.go
+++ b/modules/git/repo_gpg.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_hook.go b/modules/git/repo_hook.go
index a652e938fa..cdf076505d 100644
--- a/modules/git/repo_hook.go
+++ b/modules/git/repo_hook.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go
index 5542883288..99eb2b540b 100644
--- a/modules/git/repo_index.go
+++ b/modules/git/repo_index.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_language_stats.go b/modules/git/repo_language_stats.go
index daeb4b591f..74c76b40a4 100644
--- a/modules/git/repo_language_stats.go
+++ b/modules/git/repo_language_stats.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_language_stats_gogit.go b/modules/git/repo_language_stats_gogit.go
index 503e774e7a..9674eca275 100644
--- a/modules/git/repo_language_stats_gogit.go
+++ b/modules/git/repo_language_stats_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_language_stats_nogogit.go b/modules/git/repo_language_stats_nogogit.go
index baeb114909..a1d28f40e8 100644
--- a/modules/git/repo_language_stats_nogogit.go
+++ b/modules/git/repo_language_stats_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_language_stats_test.go b/modules/git/repo_language_stats_test.go
index 0234c77c0b..d616d95741 100644
--- a/modules/git/repo_language_stats_test.go
+++ b/modules/git/repo_language_stats_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_object.go b/modules/git/repo_object.go
index af448b0110..9edc201fea 100644
--- a/modules/git/repo_object.go
+++ b/modules/git/repo_object.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_ref.go b/modules/git/repo_ref.go
index 397434e12f..54e424bb83 100644
--- a/modules/git/repo_ref.go
+++ b/modules/git/repo_ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_ref_gogit.go b/modules/git/repo_ref_gogit.go
index d11c58e005..8a68a4574f 100644
--- a/modules/git/repo_ref_gogit.go
+++ b/modules/git/repo_ref_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_ref_nogogit.go b/modules/git/repo_ref_nogogit.go
index d766a8cac3..ac53d661b5 100644
--- a/modules/git/repo_ref_nogogit.go
+++ b/modules/git/repo_ref_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_ref_test.go b/modules/git/repo_ref_test.go
index afd38ca251..776d7ce3e1 100644
--- a/modules/git/repo_ref_test.go
+++ b/modules/git/repo_ref_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go
index 002e2525e2..d6e91f25a9 100644
--- a/modules/git/repo_stats.go
+++ b/modules/git/repo_stats.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_stats_test.go b/modules/git/repo_stats_test.go
index 494a161305..668ed67999 100644
--- a/modules/git/repo_stats_test.go
+++ b/modules/git/repo_stats_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tag.go b/modules/git/repo_tag.go
index 8585d824f9..8aa06545d4 100644
--- a/modules/git/repo_tag.go
+++ b/modules/git/repo_tag.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tag_gogit.go b/modules/git/repo_tag_gogit.go
index c6dec28987..2bc75e7cf9 100644
--- a/modules/git/repo_tag_gogit.go
+++ b/modules/git/repo_tag_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_tag_nogogit.go b/modules/git/repo_tag_nogogit.go
index 5d3aace52f..1fb631002b 100644
--- a/modules/git/repo_tag_nogogit.go
+++ b/modules/git/repo_tag_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_tag_test.go b/modules/git/repo_tag_test.go
index 6a00473bb7..589349a72c 100644
--- a/modules/git/repo_tag_test.go
+++ b/modules/git/repo_tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_test.go b/modules/git/repo_test.go
index 8ca170cd1f..2a39148192 100644
--- a/modules/git/repo_test.go
+++ b/modules/git/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tree.go b/modules/git/repo_tree.go
index ba81bfc6db..5fea5c0aea 100644
--- a/modules/git/repo_tree.go
+++ b/modules/git/repo_tree.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tree_gogit.go b/modules/git/repo_tree_gogit.go
index e720164936..e0e5e73fa3 100644
--- a/modules/git/repo_tree_gogit.go
+++ b/modules/git/repo_tree_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go
index dc4a5becb9..16ea6bbd8a 100644
--- a/modules/git/repo_tree_nogogit.go
+++ b/modules/git/repo_tree_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/sha1.go b/modules/git/sha1.go
index 15f282c6e4..3a02484bc2 100644
--- a/modules/git/sha1.go
+++ b/modules/git/sha1.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/sha1_gogit.go b/modules/git/sha1_gogit.go
index 16501efb43..28f35d17a9 100644
--- a/modules/git/sha1_gogit.go
+++ b/modules/git/sha1_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/sha1_nogogit.go b/modules/git/sha1_nogogit.go
index a2620cba69..d818d86a3a 100644
--- a/modules/git/sha1_nogogit.go
+++ b/modules/git/sha1_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/sha1_test.go b/modules/git/sha1_test.go
index c5c00f5445..db2944fc53 100644
--- a/modules/git/sha1_test.go
+++ b/modules/git/sha1_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/signature.go b/modules/git/signature.go
index b59db8f490..b5b17f23b0 100644
--- a/modules/git/signature.go
+++ b/modules/git/signature.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/signature_gogit.go b/modules/git/signature_gogit.go
index 5ab38cd852..c984ad6e20 100644
--- a/modules/git/signature_gogit.go
+++ b/modules/git/signature_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/signature_nogogit.go b/modules/git/signature_nogogit.go
index 3fa5c8da3e..a203d5ce6d 100644
--- a/modules/git/signature_nogogit.go
+++ b/modules/git/signature_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/submodule.go b/modules/git/submodule.go
index ee61f61179..3afaa334db 100644
--- a/modules/git/submodule.go
+++ b/modules/git/submodule.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/submodule_test.go b/modules/git/submodule_test.go
index 653f0a6f08..e05f2510c4 100644
--- a/modules/git/submodule_test.go
+++ b/modules/git/submodule_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tag.go b/modules/git/tag.go
index 3482f81e90..d0ddef64e0 100644
--- a/modules/git/tag.go
+++ b/modules/git/tag.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tag_test.go b/modules/git/tag_test.go
index e5f1660b8e..2337e69c6a 100644
--- a/modules/git/tag_test.go
+++ b/modules/git/tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree.go b/modules/git/tree.go
index f5944dd29c..856b8cef53 100644
--- a/modules/git/tree.go
+++ b/modules/git/tree.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_blob.go b/modules/git/tree_blob.go
index 19edcf4c6c..31d9f3d73b 100644
--- a/modules/git/tree_blob.go
+++ b/modules/git/tree_blob.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_blob_gogit.go b/modules/git/tree_blob_gogit.go
index bb010b5883..f1afc5d0a6 100644
--- a/modules/git/tree_blob_gogit.go
+++ b/modules/git/tree_blob_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_blob_nogogit.go b/modules/git/tree_blob_nogogit.go
index 3770004d6d..92d3d107a7 100644
--- a/modules/git/tree_blob_nogogit.go
+++ b/modules/git/tree_blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go
index 3644d00f36..84b6ea4075 100644
--- a/modules/git/tree_entry.go
+++ b/modules/git/tree_entry.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_entry_gogit.go b/modules/git/tree_entry_gogit.go
index 2b2992c32a..194dd12f7d 100644
--- a/modules/git/tree_entry_gogit.go
+++ b/modules/git/tree_entry_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_entry_mode.go b/modules/git/tree_entry_mode.go
index d999ccc02a..a399118cf8 100644
--- a/modules/git/tree_entry_mode.go
+++ b/modules/git/tree_entry_mode.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_entry_nogogit.go b/modules/git/tree_entry_nogogit.go
index aff67a3b22..cda755886a 100644
--- a/modules/git/tree_entry_nogogit.go
+++ b/modules/git/tree_entry_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/tree_entry_test.go b/modules/git/tree_entry_test.go
index c512c7348e..30eee13669 100644
--- a/modules/git/tree_entry_test.go
+++ b/modules/git/tree_entry_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_gogit.go b/modules/git/tree_gogit.go
index 480c5e44da..fa601e6533 100644
--- a/modules/git/tree_gogit.go
+++ b/modules/git/tree_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_nogogit.go b/modules/git/tree_nogogit.go
index 5cbb5ffc94..185317e7a7 100644
--- a/modules/git/tree_nogogit.go
+++ b/modules/git/tree_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/url/url.go b/modules/git/url/url.go
index b41cfab7ef..637685183e 100644
--- a/modules/git/url/url.go
+++ b/modules/git/url/url.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package url
diff --git a/modules/git/url/url_test.go b/modules/git/url/url_test.go
index 611bef8672..da820ed889 100644
--- a/modules/git/url/url_test.go
+++ b/modules/git/url/url_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package url
diff --git a/modules/git/utils.go b/modules/git/utils.go
index a439dabae1..628faf509f 100644
--- a/modules/git/utils.go
+++ b/modules/git/utils.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/utils_test.go b/modules/git/utils_test.go
index 9a2d481b63..718db700ae 100644
--- a/modules/git/utils_test.go
+++ b/modules/git/utils_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/gitgraph/graph.go b/modules/gitgraph/graph.go
index d6342c9280..baedfe5980 100644
--- a/modules/gitgraph/graph.go
+++ b/modules/gitgraph/graph.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/graph_models.go b/modules/gitgraph/graph_models.go
index c153e5d3be..0e0fc1cd01 100644
--- a/modules/gitgraph/graph_models.go
+++ b/modules/gitgraph/graph_models.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/graph_test.go b/modules/gitgraph/graph_test.go
index 2cfbe4b2fa..18d427acd9 100644
--- a/modules/gitgraph/graph_test.go
+++ b/modules/gitgraph/graph_test.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/parser.go b/modules/gitgraph/parser.go
index 5432962784..f6bf9b0b90 100644
--- a/modules/gitgraph/parser.go
+++ b/modules/gitgraph/parser.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/graceful/context.go b/modules/graceful/context.go
index b9d975a1d5..6b5b207ff3 100644
--- a/modules/graceful/context.go
+++ b/modules/graceful/context.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go
index 21f019fb56..c7b4c101ef 100644
--- a/modules/graceful/manager.go
+++ b/modules/graceful/manager.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go
index ba1dbd38f6..ca6ccc1b66 100644
--- a/modules/graceful/manager_unix.go
+++ b/modules/graceful/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go
index 10c1d67b97..212ddf437c 100644
--- a/modules/graceful/manager_windows.go
+++ b/modules/graceful/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go
index 0bb589e231..a2620d2c80 100644
--- a/modules/graceful/net_unix.go
+++ b/modules/graceful/net_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/net_windows.go b/modules/graceful/net_windows.go
index 07ae51b8dd..a2f58e224a 100644
--- a/modules/graceful/net_windows.go
+++ b/modules/graceful/net_windows.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go
index 1d0d1059e9..406fe6c8af 100644
--- a/modules/graceful/restart_unix.go
+++ b/modules/graceful/restart_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/server.go b/modules/graceful/server.go
index 30a460a943..e42d35cd49 100644
--- a/modules/graceful/server.go
+++ b/modules/graceful/server.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is highly inspired by endless go
package graceful
diff --git a/modules/graceful/server_hooks.go b/modules/graceful/server_hooks.go
index c634905711..9b67589571 100644
--- a/modules/graceful/server_hooks.go
+++ b/modules/graceful/server_hooks.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/server_http.go b/modules/graceful/server_http.go
index 8ab2bdf41f..a1f8e0ff52 100644
--- a/modules/graceful/server_http.go
+++ b/modules/graceful/server_http.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/hcaptcha/hcaptcha.go b/modules/hcaptcha/hcaptcha.go
index 95fe2dd1c3..4d20cfd483 100644
--- a/modules/hcaptcha/hcaptcha.go
+++ b/modules/hcaptcha/hcaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hcaptcha
diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go
index 3836c05880..05e472c083 100644
--- a/modules/highlight/highlight.go
+++ b/modules/highlight/highlight.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package highlight
diff --git a/modules/highlight/highlight_test.go b/modules/highlight/highlight_test.go
index 1899753746..7a9887728f 100644
--- a/modules/highlight/highlight_test.go
+++ b/modules/highlight/highlight_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package highlight
diff --git a/modules/hostmatcher/hostmatcher.go b/modules/hostmatcher/hostmatcher.go
index a092e07f41..1069310316 100644
--- a/modules/hostmatcher/hostmatcher.go
+++ b/modules/hostmatcher/hostmatcher.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/hostmatcher/hostmatcher_test.go b/modules/hostmatcher/hostmatcher_test.go
index b93976df6a..c781847471 100644
--- a/modules/hostmatcher/hostmatcher_test.go
+++ b/modules/hostmatcher/hostmatcher_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/hostmatcher/http.go b/modules/hostmatcher/http.go
index 84cd2974ec..65f5f78b14 100644
--- a/modules/hostmatcher/http.go
+++ b/modules/hostmatcher/http.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/html/html.go b/modules/html/html.go
index dafdb503b6..3219b939f4 100644
--- a/modules/html/html.go
+++ b/modules/html/html.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package html
diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go
index 750233d4a7..1247a81fea 100644
--- a/modules/httpcache/httpcache.go
+++ b/modules/httpcache/httpcache.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httpcache
diff --git a/modules/httpcache/httpcache_test.go b/modules/httpcache/httpcache_test.go
index 49e54d147e..624d2f4d4b 100644
--- a/modules/httpcache/httpcache_test.go
+++ b/modules/httpcache/httpcache_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httpcache
diff --git a/modules/httplib/httplib.go b/modules/httplib/httplib.go
index 32790fb54b..a1984400d6 100644
--- a/modules/httplib/httplib.go
+++ b/modules/httplib/httplib.go
@@ -1,7 +1,6 @@
// Copyright 2013 The Beego Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httplib
diff --git a/modules/indexer/bleve/batch.go b/modules/indexer/bleve/batch.go
index 79994e6e5b..77675147b2 100644
--- a/modules/indexer/bleve/batch.go
+++ b/modules/indexer/bleve/batch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package bleve
diff --git a/modules/indexer/code/bleve.go b/modules/indexer/code/bleve.go
index 3ea1c86178..6ee2639d34 100644
--- a/modules/indexer/code/bleve.go
+++ b/modules/indexer/code/bleve.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/bleve_test.go b/modules/indexer/code/bleve_test.go
index a34d54bc0e..00bcd5c90c 100644
--- a/modules/indexer/code/bleve_test.go
+++ b/modules/indexer/code/bleve_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/elastic_search.go b/modules/indexer/code/elastic_search.go
index dd3c9c9771..68c8096758 100644
--- a/modules/indexer/code/elastic_search.go
+++ b/modules/indexer/code/elastic_search.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/elastic_search_test.go b/modules/indexer/code/elastic_search_test.go
index fc58633f16..e7506eefa6 100644
--- a/modules/indexer/code/elastic_search_test.go
+++ b/modules/indexer/code/elastic_search_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/git.go b/modules/indexer/code/git.go
index 774dcc8149..bbcc6ba487 100644
--- a/modules/indexer/code/git.go
+++ b/modules/indexer/code/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go
index 9845ade3dd..d07ab10db0 100644
--- a/modules/indexer/code/indexer.go
+++ b/modules/indexer/code/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go
index 06923dfd25..c353d5b688 100644
--- a/modules/indexer/code/indexer_test.go
+++ b/modules/indexer/code/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/search.go b/modules/indexer/code/search.go
index df255fa875..1de9ffc224 100644
--- a/modules/indexer/code/search.go
+++ b/modules/indexer/code/search.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/wrapped.go b/modules/indexer/code/wrapped.go
index ba58236fba..33ba57a094 100644
--- a/modules/indexer/code/wrapped.go
+++ b/modules/indexer/code/wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/issues/bleve.go b/modules/indexer/issues/bleve.go
index dff1cf0c60..952bddfb29 100644
--- a/modules/indexer/issues/bleve.go
+++ b/modules/indexer/issues/bleve.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/bleve_test.go b/modules/indexer/issues/bleve_test.go
index 42d22f06a2..22827158e4 100644
--- a/modules/indexer/issues/bleve_test.go
+++ b/modules/indexer/issues/bleve_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/db.go b/modules/indexer/issues/db.go
index d21c86337e..d28b536e02 100644
--- a/modules/indexer/issues/db.go
+++ b/modules/indexer/issues/db.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/elastic_search.go b/modules/indexer/issues/elastic_search.go
index 97e32b8975..ee8e3df62f 100644
--- a/modules/indexer/issues/elastic_search.go
+++ b/modules/indexer/issues/elastic_search.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go
index 5b0279d1ab..55d3c7bc09 100644
--- a/modules/indexer/issues/indexer.go
+++ b/modules/indexer/issues/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go
index e8b9ff8370..ff0541d049 100644
--- a/modules/indexer/issues/indexer_test.go
+++ b/modules/indexer/issues/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go
index d39b1dcf2a..068626c4fa 100644
--- a/modules/indexer/stats/db.go
+++ b/modules/indexer/stats/db.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/indexer.go b/modules/indexer/stats/indexer.go
index f4fe54b8cb..1c01e25e29 100644
--- a/modules/indexer/stats/indexer.go
+++ b/modules/indexer/stats/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go
index a4a8b63241..f9a1bc520a 100644
--- a/modules/indexer/stats/indexer_test.go
+++ b/modules/indexer/stats/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/queue.go b/modules/indexer/stats/queue.go
index f983fcd11d..32379f2859 100644
--- a/modules/indexer/stats/queue.go
+++ b/modules/indexer/stats/queue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/issue/template/template.go b/modules/issue/template/template.go
index 0bdf5a1987..f8bce3f465 100644
--- a/modules/issue/template/template.go
+++ b/modules/issue/template/template.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/issue/template/template_test.go b/modules/issue/template/template_test.go
index c3863a64a6..0845642cd3 100644
--- a/modules/issue/template/template_test.go
+++ b/modules/issue/template/template_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/issue/template/unmarshal.go b/modules/issue/template/unmarshal.go
index 3398719cf6..f43a83fb62 100644
--- a/modules/issue/template/unmarshal.go
+++ b/modules/issue/template/unmarshal.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/json/json.go b/modules/json/json.go
index 4361262a2f..35691eec86 100644
--- a/modules/json/json.go
+++ b/modules/json/json.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
package json
diff --git a/modules/lfs/client.go b/modules/lfs/client.go
index aaf61aefcf..f810e5c7aa 100644
--- a/modules/lfs/client.go
+++ b/modules/lfs/client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/client_test.go b/modules/lfs/client_test.go
index 88986f06d6..a1369301e0 100644
--- a/modules/lfs/client_test.go
+++ b/modules/lfs/client_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go
index 0eedf4de17..94277a6b8e 100644
--- a/modules/lfs/content_store.go
+++ b/modules/lfs/content_store.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/endpoint.go b/modules/lfs/endpoint.go
index 943966ed15..3ae3cf077b 100644
--- a/modules/lfs/endpoint.go
+++ b/modules/lfs/endpoint.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/endpoint_test.go b/modules/lfs/endpoint_test.go
index 69f4768650..118abe2d4e 100644
--- a/modules/lfs/endpoint_test.go
+++ b/modules/lfs/endpoint_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/filesystem_client.go b/modules/lfs/filesystem_client.go
index dc72981a9e..835551e00c 100644
--- a/modules/lfs/filesystem_client.go
+++ b/modules/lfs/filesystem_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go
index a1a3e7f363..ec0d6269bd 100644
--- a/modules/lfs/http_client.go
+++ b/modules/lfs/http_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/http_client_test.go b/modules/lfs/http_client_test.go
index 8f6dcb1966..a8c7e379f6 100644
--- a/modules/lfs/http_client_test.go
+++ b/modules/lfs/http_client_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/pointer.go b/modules/lfs/pointer.go
index 2a3a2116b4..b5e13d56a3 100644
--- a/modules/lfs/pointer.go
+++ b/modules/lfs/pointer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/pointer_scanner_gogit.go b/modules/lfs/pointer_scanner_gogit.go
index ed27cb1f55..f4302c23bc 100644
--- a/modules/lfs/pointer_scanner_gogit.go
+++ b/modules/lfs/pointer_scanner_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/lfs/pointer_scanner_nogogit.go b/modules/lfs/pointer_scanner_nogogit.go
index d17f1f7b98..658b98feab 100644
--- a/modules/lfs/pointer_scanner_nogogit.go
+++ b/modules/lfs/pointer_scanner_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/lfs/pointer_test.go b/modules/lfs/pointer_test.go
index 9cd8b15c9e..41b5459fef 100644
--- a/modules/lfs/pointer_test.go
+++ b/modules/lfs/pointer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/shared.go b/modules/lfs/shared.go
index d010b05ee5..6b2e55f2fb 100644
--- a/modules/lfs/shared.go
+++ b/modules/lfs/shared.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go
index 2fdd92c810..649497aabb 100644
--- a/modules/lfs/transferadapter.go
+++ b/modules/lfs/transferadapter.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/transferadapter_test.go b/modules/lfs/transferadapter_test.go
index b26d516c68..f86d2c54be 100644
--- a/modules/lfs/transferadapter_test.go
+++ b/modules/lfs/transferadapter_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/log/buffer.go b/modules/log/buffer.go
index 9535522bb6..1eee2465f1 100644
--- a/modules/log/buffer.go
+++ b/modules/log/buffer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/buffer_test.go b/modules/log/buffer_test.go
index 8ec74bc78d..1c39006050 100644
--- a/modules/log/buffer_test.go
+++ b/modules/log/buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/colors.go b/modules/log/colors.go
index 15e23a0dac..02781afe84 100644
--- a/modules/log/colors.go
+++ b/modules/log/colors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/colors_router.go b/modules/log/colors_router.go
index 888198d4e9..efc7337b6b 100644
--- a/modules/log/colors_router.go
+++ b/modules/log/colors_router.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/conn.go b/modules/log/conn.go
index 155f2866ca..39d5234214 100644
--- a/modules/log/conn.go
+++ b/modules/log/conn.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/conn_test.go b/modules/log/conn_test.go
index 1d373506a4..445bd77653 100644
--- a/modules/log/conn_test.go
+++ b/modules/log/conn_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console.go b/modules/log/console.go
index fc7c9b4967..8764d984ac 100644
--- a/modules/log/console.go
+++ b/modules/log/console.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console_other.go b/modules/log/console_other.go
index b5cac55b52..c30be41544 100644
--- a/modules/log/console_other.go
+++ b/modules/log/console_other.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/log/console_test.go b/modules/log/console_test.go
index 4da87b48a3..e4c3882d4f 100644
--- a/modules/log/console_test.go
+++ b/modules/log/console_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console_windows.go b/modules/log/console_windows.go
index ea47e5d624..54dac12fa0 100644
--- a/modules/log/console_windows.go
+++ b/modules/log/console_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/errors.go b/modules/log/errors.go
index 1fe54d4265..942639a434 100644
--- a/modules/log/errors.go
+++ b/modules/log/errors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/event.go b/modules/log/event.go
index aebd156212..4466f7ff34 100644
--- a/modules/log/event.go
+++ b/modules/log/event.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/file.go b/modules/log/file.go
index d0cba7817c..13386a320f 100644
--- a/modules/log/file.go
+++ b/modules/log/file.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/file_test.go b/modules/log/file_test.go
index cc2b9fe077..f1ca23d342 100644
--- a/modules/log/file_test.go
+++ b/modules/log/file_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/flags.go b/modules/log/flags.go
index 95950548ec..4a3732600b 100644
--- a/modules/log/flags.go
+++ b/modules/log/flags.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/groutinelabel.go b/modules/log/groutinelabel.go
index 0d3739fd98..829c217574 100644
--- a/modules/log/groutinelabel.go
+++ b/modules/log/groutinelabel.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/groutinelabel_test.go b/modules/log/groutinelabel_test.go
index 8e23721b86..34e99653d6 100644
--- a/modules/log/groutinelabel_test.go
+++ b/modules/log/groutinelabel_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/level.go b/modules/log/level.go
index 5964ed8f8b..3c8a736b30 100644
--- a/modules/log/level.go
+++ b/modules/log/level.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/level_test.go b/modules/log/level_test.go
index 47f77738c5..cd18a807d8 100644
--- a/modules/log/level_test.go
+++ b/modules/log/level_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/log.go b/modules/log/log.go
index 4303ecf4c0..73f908dfab 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/log_test.go b/modules/log/log_test.go
index 33f68c8e8e..819cdb521f 100644
--- a/modules/log/log_test.go
+++ b/modules/log/log_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/logger.go b/modules/log/logger.go
index 0045d79322..56e39c392e 100644
--- a/modules/log/logger.go
+++ b/modules/log/logger.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/multichannel.go b/modules/log/multichannel.go
index 519abf663d..8ccb08179c 100644
--- a/modules/log/multichannel.go
+++ b/modules/log/multichannel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/provider.go b/modules/log/provider.go
index e03e6f74a7..490c3fa71b 100644
--- a/modules/log/provider.go
+++ b/modules/log/provider.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/smtp.go b/modules/log/smtp.go
index 61af50b81a..e385020c67 100644
--- a/modules/log/smtp.go
+++ b/modules/log/smtp.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/smtp_test.go b/modules/log/smtp_test.go
index c8758bf6be..d7d28f28f8 100644
--- a/modules/log/smtp_test.go
+++ b/modules/log/smtp_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/stack.go b/modules/log/stack.go
index 4b40d81ab7..d4496cff03 100644
--- a/modules/log/stack.go
+++ b/modules/log/stack.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/writer.go b/modules/log/writer.go
index 1c4f5b4a19..ac4b3c8c4e 100644
--- a/modules/log/writer.go
+++ b/modules/log/writer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/writer_test.go b/modules/log/writer_test.go
index 99a5fd3406..8c03f87d90 100644
--- a/modules/log/writer_test.go
+++ b/modules/log/writer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/markup/camo.go b/modules/markup/camo.go
index f804447f2d..e93797de2b 100644
--- a/modules/markup/camo.go
+++ b/modules/markup/camo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/camo_test.go b/modules/markup/camo_test.go
index cc917039d8..ba58835221 100644
--- a/modules/markup/camo_test.go
+++ b/modules/markup/camo_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go
index d07f5e6090..0e75e2adfd 100644
--- a/modules/markup/common/footnote.go
+++ b/modules/markup/common/footnote.go
@@ -1,7 +1,6 @@
// Copyright 2019 Yusuke Inuzuka
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Most of what follows is a subtly changed version of github.com/yuin/goldmark/extension/footnote.go
diff --git a/modules/markup/common/html.go b/modules/markup/common/html.go
index a2328a2288..5658839c6f 100644
--- a/modules/markup/common/html.go
+++ b/modules/markup/common/html.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package common
diff --git a/modules/markup/common/linkify.go b/modules/markup/common/linkify.go
index 2140486a30..f84680205e 100644
--- a/modules/markup/common/linkify.go
+++ b/modules/markup/common/linkify.go
@@ -1,7 +1,6 @@
// Copyright 2019 Yusuke Inuzuka
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Most of this file is a subtly changed version of github.com/yuin/goldmark/extension/linkify.go
diff --git a/modules/markup/console/console.go b/modules/markup/console/console.go
index 597593eee1..cf42c9cceb 100644
--- a/modules/markup/console/console.go
+++ b/modules/markup/console/console.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package console
diff --git a/modules/markup/console/console_test.go b/modules/markup/console/console_test.go
index 282fbb0598..506f86194c 100644
--- a/modules/markup/console/console_test.go
+++ b/modules/markup/console/console_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package console
diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go
index 5095b85465..7af34a6cbc 100644
--- a/modules/markup/csv/csv.go
+++ b/modules/markup/csv/csv.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/csv/csv_test.go b/modules/markup/csv/csv_test.go
index 612f78c76c..b9f5769be2 100644
--- a/modules/markup/csv/csv_test.go
+++ b/modules/markup/csv/csv_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/external/external.go b/modules/markup/external/external.go
index 0eeb2d70a5..f47776690f 100644
--- a/modules/markup/external/external.go
+++ b/modules/markup/external/external.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package external
diff --git a/modules/markup/html.go b/modules/markup/html.go
index ae00c3905f..80b19ba35f 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go
index 25b0f7b7a5..6746c40d18 100644
--- a/modules/markup/html_internal_test.go
+++ b/modules/markup/html_internal_test.go
@@ -1,6 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package markup
import (
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go
index e57187a677..32f26bffab 100644
--- a/modules/markup/html_test.go
+++ b/modules/markup/html_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup_test
diff --git a/modules/markup/markdown/ast.go b/modules/markup/markdown/ast.go
index 3d49620253..e844f801c4 100644
--- a/modules/markup/markdown/ast.go
+++ b/modules/markup/markdown/ast.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/convertyaml.go b/modules/markup/markdown/convertyaml.go
index 3f5ebec908..6e90847e06 100644
--- a/modules/markup/markdown/convertyaml.go
+++ b/modules/markup/markdown/convertyaml.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go
index 84a02bfbbb..50b438219b 100644
--- a/modules/markup/markdown/goldmark.go
+++ b/modules/markup/markdown/goldmark.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go
index fa289986cc..1e5c470758 100644
--- a/modules/markup/markdown/markdown.go
+++ b/modules/markup/markdown/markdown.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go
index fbb741d1cd..bb2c47f18e 100644
--- a/modules/markup/markdown/markdown_test.go
+++ b/modules/markup/markdown/markdown_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown_test
diff --git a/modules/markup/markdown/math/block_node.go b/modules/markup/markdown/math/block_node.go
index bd8449babf..10d17ff8d3 100644
--- a/modules/markup/markdown/math/block_node.go
+++ b/modules/markup/markdown/math/block_node.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/block_parser.go b/modules/markup/markdown/math/block_parser.go
index f865122886..7f714d7239 100644
--- a/modules/markup/markdown/math/block_parser.go
+++ b/modules/markup/markdown/math/block_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/block_renderer.go b/modules/markup/markdown/math/block_renderer.go
index d502065259..84817ef1e4 100644
--- a/modules/markup/markdown/math/block_renderer.go
+++ b/modules/markup/markdown/math/block_renderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_node.go b/modules/markup/markdown/math/inline_node.go
index 245ff8dab0..2221a251bf 100644
--- a/modules/markup/markdown/math/inline_node.go
+++ b/modules/markup/markdown/math/inline_node.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_parser.go b/modules/markup/markdown/math/inline_parser.go
index 8dc88eb858..0ac25c2b2a 100644
--- a/modules/markup/markdown/math/inline_parser.go
+++ b/modules/markup/markdown/math/inline_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_renderer.go b/modules/markup/markdown/math/inline_renderer.go
index e4c0f3761d..b4e9ade0ae 100644
--- a/modules/markup/markdown/math/inline_renderer.go
+++ b/modules/markup/markdown/math/inline_renderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/math.go b/modules/markup/markdown/math/math.go
index 7854ac84db..8a50753574 100644
--- a/modules/markup/markdown/math/math.go
+++ b/modules/markup/markdown/math/math.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/meta.go b/modules/markup/markdown/meta.go
index fb37236d77..bbefbd380c 100644
--- a/modules/markup/markdown/meta.go
+++ b/modules/markup/markdown/meta.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/meta_test.go b/modules/markup/markdown/meta_test.go
index 1e9768e618..6949966328 100644
--- a/modules/markup/markdown/meta_test.go
+++ b/modules/markup/markdown/meta_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/renderconfig.go b/modules/markup/markdown/renderconfig.go
index 1ba75dbb68..f9c9cbc5f4 100644
--- a/modules/markup/markdown/renderconfig.go
+++ b/modules/markup/markdown/renderconfig.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/renderconfig_test.go b/modules/markup/markdown/renderconfig_test.go
index 672edbf46d..f7f5e885a3 100644
--- a/modules/markup/markdown/renderconfig_test.go
+++ b/modules/markup/markdown/renderconfig_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/toc.go b/modules/markup/markdown/toc.go
index 103894d1ab..3715f031af 100644
--- a/modules/markup/markdown/toc.go
+++ b/modules/markup/markdown/toc.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/mdstripper/mdstripper.go b/modules/markup/mdstripper/mdstripper.go
index c7f8ee69f1..e19f8f6419 100644
--- a/modules/markup/mdstripper/mdstripper.go
+++ b/modules/markup/mdstripper/mdstripper.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mdstripper
diff --git a/modules/markup/mdstripper/mdstripper_test.go b/modules/markup/mdstripper/mdstripper_test.go
index 8045c34c07..ea34df0a3b 100644
--- a/modules/markup/mdstripper/mdstripper_test.go
+++ b/modules/markup/mdstripper/mdstripper_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mdstripper
diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go
index abbff1e435..5a8485e571 100644
--- a/modules/markup/orgmode/orgmode.go
+++ b/modules/markup/orgmode/orgmode.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/orgmode/orgmode_test.go b/modules/markup/orgmode/orgmode_test.go
index cd12cd8c17..4acb678cd7 100644
--- a/modules/markup/orgmode/orgmode_test.go
+++ b/modules/markup/orgmode/orgmode_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/renderer.go b/modules/markup/renderer.go
index b3289cb3c3..5a31e961fb 100644
--- a/modules/markup/renderer.go
+++ b/modules/markup/renderer.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/renderer_test.go b/modules/markup/renderer_test.go
index 950ee15b91..624558c3f7 100644
--- a/modules/markup/renderer_test.go
+++ b/modules/markup/renderer_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup_test
diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go
index c2a6c4a38f..e59f6c7c84 100644
--- a/modules/markup/sanitizer.go
+++ b/modules/markup/sanitizer.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/sanitizer_test.go b/modules/markup/sanitizer_test.go
index b3b07404b4..c792ec2dc6 100644
--- a/modules/markup/sanitizer_test.go
+++ b/modules/markup/sanitizer_test.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/mcaptcha/mcaptcha.go b/modules/mcaptcha/mcaptcha.go
index 0c0fcce49d..74142aa863 100644
--- a/modules/mcaptcha/mcaptcha.go
+++ b/modules/mcaptcha/mcaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mcaptcha
diff --git a/modules/metrics/collector.go b/modules/metrics/collector.go
index dcd80b05a9..17f8dd133f 100755
--- a/modules/metrics/collector.go
+++ b/modules/metrics/collector.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package metrics
diff --git a/modules/migration/comment.go b/modules/migration/comment.go
index 0447689b74..27ecaa830a 100644
--- a/modules/migration/comment.go
+++ b/modules/migration/comment.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/downloader.go b/modules/migration/downloader.go
index 7759c96056..ebd3672d63 100644
--- a/modules/migration/downloader.go
+++ b/modules/migration/downloader.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/error.go b/modules/migration/error.go
index b2608aa09f..64cda9d047 100644
--- a/modules/migration/error.go
+++ b/modules/migration/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/file_format.go b/modules/migration/file_format.go
index 92cf71407d..f319f02ef1 100644
--- a/modules/migration/file_format.go
+++ b/modules/migration/file_format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/file_format_test.go b/modules/migration/file_format_test.go
index 27104e209c..da997f645b 100644
--- a/modules/migration/file_format_test.go
+++ b/modules/migration/file_format_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/issue.go b/modules/migration/issue.go
index cc13570afb..7cb9f84b0d 100644
--- a/modules/migration/issue.go
+++ b/modules/migration/issue.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/label.go b/modules/migration/label.go
index f49fbe3ee4..38f0eb10da 100644
--- a/modules/migration/label.go
+++ b/modules/migration/label.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/messenger.go b/modules/migration/messenger.go
index fa8218cf93..1fd5456259 100644
--- a/modules/migration/messenger.go
+++ b/modules/migration/messenger.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/milestone.go b/modules/migration/milestone.go
index f3b725de67..34355b8f9c 100644
--- a/modules/migration/milestone.go
+++ b/modules/migration/milestone.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/null_downloader.go b/modules/migration/null_downloader.go
index ad925c32ce..e5b69331df 100644
--- a/modules/migration/null_downloader.go
+++ b/modules/migration/null_downloader.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/options.go b/modules/migration/options.go
index 1e92a1b0b3..234e72c295 100644
--- a/modules/migration/options.go
+++ b/modules/migration/options.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go
index dd520cd63f..4e7500f0d6 100644
--- a/modules/migration/pullrequest.go
+++ b/modules/migration/pullrequest.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/reaction.go b/modules/migration/reaction.go
index 0946bdd40b..ca1df6c763 100644
--- a/modules/migration/reaction.go
+++ b/modules/migration/reaction.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/release.go b/modules/migration/release.go
index 923b3817b0..f92cf25e7b 100644
--- a/modules/migration/release.go
+++ b/modules/migration/release.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/repo.go b/modules/migration/repo.go
index 75622595d9..22c2cf6fb3 100644
--- a/modules/migration/repo.go
+++ b/modules/migration/repo.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/retry_downloader.go b/modules/migration/retry_downloader.go
index 2e40c102be..1cacf5f375 100644
--- a/modules/migration/retry_downloader.go
+++ b/modules/migration/retry_downloader.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/review.go b/modules/migration/review.go
index b5a054c642..a420c130c7 100644
--- a/modules/migration/review.go
+++ b/modules/migration/review.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/schemas_bindata.go b/modules/migration/schemas_bindata.go
index febe0f75c0..c5db3b3461 100644
--- a/modules/migration/schemas_bindata.go
+++ b/modules/migration/schemas_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/migration/schemas_dynamic.go b/modules/migration/schemas_dynamic.go
index 1b767b2e72..dca109d6af 100644
--- a/modules/migration/schemas_dynamic.go
+++ b/modules/migration/schemas_dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/migration/schemas_static.go b/modules/migration/schemas_static.go
index 02957fc4ed..8a0c340a65 100644
--- a/modules/migration/schemas_static.go
+++ b/modules/migration/schemas_static.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/migration/uploader.go b/modules/migration/uploader.go
index 57571861aa..ff642aa4fa 100644
--- a/modules/migration/uploader.go
+++ b/modules/migration/uploader.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/mirror/mirror.go b/modules/mirror/mirror.go
index b261bd0242..37b4c2ac95 100644
--- a/modules/mirror/mirror.go
+++ b/modules/mirror/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/modules/nosql/leveldb.go b/modules/nosql/leveldb.go
index 5da2291e03..aac5b2178e 100644
--- a/modules/nosql/leveldb.go
+++ b/modules/nosql/leveldb.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager.go b/modules/nosql/manager.go
index 6092a67827..bc530bc148 100644
--- a/modules/nosql/manager.go
+++ b/modules/nosql/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_leveldb.go b/modules/nosql/manager_leveldb.go
index 7539952cf1..078a802811 100644
--- a/modules/nosql/manager_leveldb.go
+++ b/modules/nosql/manager_leveldb.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_redis.go b/modules/nosql/manager_redis.go
index f7d5a72ed2..728bc2f2ef 100644
--- a/modules/nosql/manager_redis.go
+++ b/modules/nosql/manager_redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_redis_test.go b/modules/nosql/manager_redis_test.go
index 99a8856f1e..d979ea07f6 100644
--- a/modules/nosql/manager_redis_test.go
+++ b/modules/nosql/manager_redis_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/redis.go b/modules/nosql/redis.go
index 13795f3d7b..52e8ff9d02 100644
--- a/modules/nosql/redis.go
+++ b/modules/nosql/redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/redis_test.go b/modules/nosql/redis_test.go
index c70d236bdc..43652e314c 100644
--- a/modules/nosql/redis_test.go
+++ b/modules/nosql/redis_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/notification/action/action.go b/modules/notification/action/action.go
index d029405664..2f882c2cb8 100644
--- a/modules/notification/action/action.go
+++ b/modules/notification/action/action.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package action
diff --git a/modules/notification/action/action_test.go b/modules/notification/action/action_test.go
index dc31b3189b..05ce70f388 100644
--- a/modules/notification/action/action_test.go
+++ b/modules/notification/action/action_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package action
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go
index 2f7deac88e..dbed20ba3a 100644
--- a/modules/notification/base/notifier.go
+++ b/modules/notification/base/notifier.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index 88e0c93de1..de5f072d24 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/notification/indexer/indexer.go b/modules/notification/indexer/indexer.go
index 2bacd5dec0..c67f79d0f2 100644
--- a/modules/notification/indexer/indexer.go
+++ b/modules/notification/indexer/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package indexer
diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go
index 123fa0e65a..18f7fa22ae 100644
--- a/modules/notification/mail/mail.go
+++ b/modules/notification/mail/mail.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mail
diff --git a/modules/notification/mirror/mirror.go b/modules/notification/mirror/mirror.go
index 159c44ee6c..426e36ee58 100644
--- a/modules/notification/mirror/mirror.go
+++ b/modules/notification/mirror/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/modules/notification/notification.go b/modules/notification/notification.go
index a117a60815..c3e09bb8a9 100644
--- a/modules/notification/notification.go
+++ b/modules/notification/notification.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notification
diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go
index a38289c976..63a3ffd199 100644
--- a/modules/notification/ui/ui.go
+++ b/modules/notification/ui/ui.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ui
diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go
index 37ce7661f2..326d987ba5 100644
--- a/modules/notification/webhook/webhook.go
+++ b/modules/notification/webhook/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/modules/options/base.go b/modules/options/base.go
index e1d6efa7f0..039e934b3a 100644
--- a/modules/options/base.go
+++ b/modules/options/base.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package options
diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go
index 3739867580..a20253676e 100644
--- a/modules/options/dynamic.go
+++ b/modules/options/dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/options/options.go b/modules/options/options.go
index 6ba3bd6a86..17a8fa482e 100644
--- a/modules/options/options.go
+++ b/modules/options/options.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package options
diff --git a/modules/options/options_bindata.go b/modules/options/options_bindata.go
index 77b7a7ef41..29151cb3cb 100644
--- a/modules/options/options_bindata.go
+++ b/modules/options/options_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/options/static.go b/modules/options/static.go
index 4d60879be3..ff3c86d3f8 100644
--- a/modules/options/static.go
+++ b/modules/options/static.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go
index 797576b1e7..b98294001c 100644
--- a/modules/packages/composer/metadata.go
+++ b/modules/packages/composer/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/composer/metadata_test.go b/modules/packages/composer/metadata_test.go
index feadc18b6a..a0e1a77a6e 100644
--- a/modules/packages/composer/metadata_test.go
+++ b/modules/packages/composer/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/conan/conanfile_parser.go b/modules/packages/conan/conanfile_parser.go
index 960e813533..c47b242cdc 100644
--- a/modules/packages/conan/conanfile_parser.go
+++ b/modules/packages/conan/conanfile_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conanfile_parser_test.go b/modules/packages/conan/conanfile_parser_test.go
index 0ac9c87b14..5801570184 100644
--- a/modules/packages/conan/conanfile_parser_test.go
+++ b/modules/packages/conan/conanfile_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser.go b/modules/packages/conan/conaninfo_parser.go
index bb228e0207..5bb3fb8930 100644
--- a/modules/packages/conan/conaninfo_parser.go
+++ b/modules/packages/conan/conaninfo_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser_test.go b/modules/packages/conan/conaninfo_parser_test.go
index 3e28191b06..556a4b939e 100644
--- a/modules/packages/conan/conaninfo_parser_test.go
+++ b/modules/packages/conan/conaninfo_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/metadata.go b/modules/packages/conan/metadata.go
index a7d6a9df0b..256a376cf7 100644
--- a/modules/packages/conan/metadata.go
+++ b/modules/packages/conan/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference.go b/modules/packages/conan/reference.go
index 49236981b6..37a5170dd3 100644
--- a/modules/packages/conan/reference.go
+++ b/modules/packages/conan/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference_test.go b/modules/packages/conan/reference_test.go
index 98eb2c8478..6ea86eb0dd 100644
--- a/modules/packages/conan/reference_test.go
+++ b/modules/packages/conan/reference_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/container/helm/helm.go b/modules/packages/container/helm/helm.go
index 98d3824a85..6981d430ad 100644
--- a/modules/packages/container/helm/helm.go
+++ b/modules/packages/container/helm/helm.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/container/metadata.go b/modules/packages/container/metadata.go
index fd38e67859..c3946f38f1 100644
--- a/modules/packages/container/metadata.go
+++ b/modules/packages/container/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go
index 9400cf6954..f9ee478d63 100644
--- a/modules/packages/container/metadata_test.go
+++ b/modules/packages/container/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/oci/digest.go b/modules/packages/container/oci/digest.go
index 5234814cfe..dd9cc0095c 100644
--- a/modules/packages/container/oci/digest.go
+++ b/modules/packages/container/oci/digest.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/mediatype.go b/modules/packages/container/oci/mediatype.go
index 2636fbe288..f9c3907e17 100644
--- a/modules/packages/container/oci/mediatype.go
+++ b/modules/packages/container/oci/mediatype.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/oci.go b/modules/packages/container/oci/oci.go
index 01cca8fe69..570d2e92c2 100644
--- a/modules/packages/container/oci/oci.go
+++ b/modules/packages/container/oci/oci.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/reference.go b/modules/packages/container/oci/reference.go
index 120ff122d4..7ec399255d 100644
--- a/modules/packages/container/oci/reference.go
+++ b/modules/packages/container/oci/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/content_store.go b/modules/packages/content_store.go
index 13763db986..1181fa4d52 100644
--- a/modules/packages/content_store.go
+++ b/modules/packages/content_store.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go
index 3f8cafcfb5..ef00a45057 100644
--- a/modules/packages/hashed_buffer.go
+++ b/modules/packages/hashed_buffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer_test.go b/modules/packages/hashed_buffer_test.go
index e21ec67e1f..529262226f 100644
--- a/modules/packages/hashed_buffer_test.go
+++ b/modules/packages/hashed_buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/helm/metadata.go b/modules/packages/helm/metadata.go
index fb5e51d0c5..98b5919a73 100644
--- a/modules/packages/helm/metadata.go
+++ b/modules/packages/helm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/maven/metadata.go b/modules/packages/maven/metadata.go
index 6ee9d69687..be057c8c07 100644
--- a/modules/packages/maven/metadata.go
+++ b/modules/packages/maven/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/maven/metadata_test.go b/modules/packages/maven/metadata_test.go
index a17d456560..f4bc84268e 100644
--- a/modules/packages/maven/metadata_test.go
+++ b/modules/packages/maven/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/multi_hasher.go b/modules/packages/multi_hasher.go
index 4d17441d8c..83a4b5b7af 100644
--- a/modules/packages/multi_hasher.go
+++ b/modules/packages/multi_hasher.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/multi_hasher_test.go b/modules/packages/multi_hasher_test.go
index 6c895ce120..42c1ef416f 100644
--- a/modules/packages/multi_hasher_test.go
+++ b/modules/packages/multi_hasher_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/npm/creator.go b/modules/packages/npm/creator.go
index 16cadefb89..02f6724812 100644
--- a/modules/packages/npm/creator.go
+++ b/modules/packages/npm/creator.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/creator_test.go b/modules/packages/npm/creator_test.go
index 2b844f4b0e..9a2b1e10b2 100644
--- a/modules/packages/npm/creator_test.go
+++ b/modules/packages/npm/creator_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/metadata.go b/modules/packages/npm/metadata.go
index 44714cd6ea..aafbdf779c 100644
--- a/modules/packages/npm/metadata.go
+++ b/modules/packages/npm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/nuget/metadata.go b/modules/packages/nuget/metadata.go
index 2b555e47e9..dc72d0982a 100644
--- a/modules/packages/nuget/metadata.go
+++ b/modules/packages/nuget/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/metadata_test.go b/modules/packages/nuget/metadata_test.go
index e8c7773e97..74c3e7dfaa 100644
--- a/modules/packages/nuget/metadata_test.go
+++ b/modules/packages/nuget/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor.go b/modules/packages/nuget/symbol_extractor.go
index 9c04d7bfb4..634bbb17e6 100644
--- a/modules/packages/nuget/symbol_extractor.go
+++ b/modules/packages/nuget/symbol_extractor.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor_test.go b/modules/packages/nuget/symbol_extractor_test.go
index 892d718caa..fa1b80ee82 100644
--- a/modules/packages/nuget/symbol_extractor_test.go
+++ b/modules/packages/nuget/symbol_extractor_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/pub/metadata.go b/modules/packages/pub/metadata.go
index f3e9bf20bc..36fe665707 100644
--- a/modules/packages/pub/metadata.go
+++ b/modules/packages/pub/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pub/metadata_test.go b/modules/packages/pub/metadata_test.go
index e43ed64fc6..4c0c3f0ec6 100644
--- a/modules/packages/pub/metadata_test.go
+++ b/modules/packages/pub/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pypi/metadata.go b/modules/packages/pypi/metadata.go
index df367d10e2..125728c4f1 100644
--- a/modules/packages/pypi/metadata.go
+++ b/modules/packages/pypi/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/modules/packages/rubygems/marshal.go b/modules/packages/rubygems/marshal.go
index 2c45042fa8..14fb755606 100644
--- a/modules/packages/rubygems/marshal.go
+++ b/modules/packages/rubygems/marshal.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/marshal_test.go b/modules/packages/rubygems/marshal_test.go
index e5963ebcd6..501757bfed 100644
--- a/modules/packages/rubygems/marshal_test.go
+++ b/modules/packages/rubygems/marshal_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata.go b/modules/packages/rubygems/metadata.go
index f1fc399918..e2c73c8f3a 100644
--- a/modules/packages/rubygems/metadata.go
+++ b/modules/packages/rubygems/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata_test.go b/modules/packages/rubygems/metadata_test.go
index dbefa9c236..ec2fa08b6b 100644
--- a/modules/packages/rubygems/metadata_test.go
+++ b/modules/packages/rubygems/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/vagrant/metadata.go b/modules/packages/vagrant/metadata.go
index f52989b2e2..6789533339 100644
--- a/modules/packages/vagrant/metadata.go
+++ b/modules/packages/vagrant/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/modules/packages/vagrant/metadata_test.go b/modules/packages/vagrant/metadata_test.go
index 9720c945ae..d616ffe3d3 100644
--- a/modules/packages/vagrant/metadata_test.go
+++ b/modules/packages/vagrant/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/modules/password/password.go b/modules/password/password.go
index e1f1f769ec..fe2a2a7bd5 100644
--- a/modules/password/password.go
+++ b/modules/password/password.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/password/password_test.go b/modules/password/password_test.go
index 63f98aa9c3..6c35dc86bd 100644
--- a/modules/password/password_test.go
+++ b/modules/password/password_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/password/pwn.go b/modules/password/pwn.go
index 938524e6de..e8565e5bb1 100644
--- a/modules/password/pwn.go
+++ b/modules/password/pwn.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go
index 8ce0ad484e..c611c14270 100644
--- a/modules/pprof/pprof.go
+++ b/modules/pprof/pprof.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pprof
diff --git a/modules/private/hook.go b/modules/private/hook.go
index e208c14378..027014270a 100644
--- a/modules/private/hook.go
+++ b/modules/private/hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/internal.go b/modules/private/internal.go
index 21e5c9a279..a8b62fdde7 100644
--- a/modules/private/internal.go
+++ b/modules/private/internal.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/key.go b/modules/private/key.go
index 8dfd82a6d6..f09d6de2bf 100644
--- a/modules/private/key.go
+++ b/modules/private/key.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/mail.go b/modules/private/mail.go
index 3efef3bece..6eb7c2acd0 100644
--- a/modules/private/mail.go
+++ b/modules/private/mail.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/manager.go b/modules/private/manager.go
index ba51260ebb..bbf470cd7a 100644
--- a/modules/private/manager.go
+++ b/modules/private/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go
index b1561f392b..f40d914a7b 100644
--- a/modules/private/restore_repo.go
+++ b/modules/private/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/serv.go b/modules/private/serv.go
index 2e1367e4c4..c176e1ddfc 100644
--- a/modules/private/serv.go
+++ b/modules/private/serv.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/process/context.go b/modules/process/context.go
index 6df5bc1513..f1bc582ff0 100644
--- a/modules/process/context.go
+++ b/modules/process/context.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/error.go b/modules/process/error.go
index 7a72bda40e..8f02f65258 100644
--- a/modules/process/error.go
+++ b/modules/process/error.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager.go b/modules/process/manager.go
index 7f14287de5..1272510067 100644
--- a/modules/process/manager.go
+++ b/modules/process/manager.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_exec.go b/modules/process/manager_exec.go
index 77e3d3193a..c983173748 100644
--- a/modules/process/manager_exec.go
+++ b/modules/process/manager_exec.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_stacktraces.go b/modules/process/manager_stacktraces.go
index 628d9cebcd..49bd5071f6 100644
--- a/modules/process/manager_stacktraces.go
+++ b/modules/process/manager_stacktraces.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_test.go b/modules/process/manager_test.go
index 30eabeb37a..527072713f 100644
--- a/modules/process/manager_test.go
+++ b/modules/process/manager_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_unix.go b/modules/process/manager_unix.go
index 1e7c77fdbf..c5be906b35 100644
--- a/modules/process/manager_unix.go
+++ b/modules/process/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/process/manager_windows.go b/modules/process/manager_windows.go
index 35f66d9fa5..44a84f2203 100644
--- a/modules/process/manager_windows.go
+++ b/modules/process/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/modules/process/process.go b/modules/process/process.go
index 2f7ea18373..06a28c4a60 100644
--- a/modules/process/process.go
+++ b/modules/process/process.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/proxy/proxy.go b/modules/proxy/proxy.go
index 61730544b0..f0cd366c12 100644
--- a/modules/proxy/proxy.go
+++ b/modules/proxy/proxy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxy
diff --git a/modules/proxyprotocol/conn.go b/modules/proxyprotocol/conn.go
index 10333b204d..f437f13683 100644
--- a/modules/proxyprotocol/conn.go
+++ b/modules/proxyprotocol/conn.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/errors.go b/modules/proxyprotocol/errors.go
index 2acf9d84b0..5439a86bd8 100644
--- a/modules/proxyprotocol/errors.go
+++ b/modules/proxyprotocol/errors.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/listener.go b/modules/proxyprotocol/listener.go
index 64d9b323e5..ec85c425d3 100644
--- a/modules/proxyprotocol/listener.go
+++ b/modules/proxyprotocol/listener.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/util.go b/modules/proxyprotocol/util.go
index b12771b686..a280663b27 100644
--- a/modules/proxyprotocol/util.go
+++ b/modules/proxyprotocol/util.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/public/mime_types.go b/modules/public/mime_types.go
index f8c92e824f..32bdf3bfa2 100644
--- a/modules/public/mime_types.go
+++ b/modules/public/mime_types.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/public.go b/modules/public/public.go
index ac1d80c860..42026f9b10 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/public_bindata.go b/modules/public/public_bindata.go
index fe250c6454..4878f88ad1 100644
--- a/modules/public/public_bindata.go
+++ b/modules/public/public_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/public/public_test.go b/modules/public/public_test.go
index 8b58d6af33..5e4bf5d671 100644
--- a/modules/public/public_test.go
+++ b/modules/public/public_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/serve_dynamic.go b/modules/public/serve_dynamic.go
index 672924a636..cd74ee5743 100644
--- a/modules/public/serve_dynamic.go
+++ b/modules/public/serve_dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/public/serve_static.go b/modules/public/serve_static.go
index 10120bf85d..e85ca79253 100644
--- a/modules/public/serve_static.go
+++ b/modules/public/serve_static.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/queue/bytefifo.go b/modules/queue/bytefifo.go
index bb98d468fb..c33b79426e 100644
--- a/modules/queue/bytefifo.go
+++ b/modules/queue/bytefifo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/helper.go b/modules/queue/helper.go
index 9ad95badeb..c6fb9447b7 100644
--- a/modules/queue/helper.go
+++ b/modules/queue/helper.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/manager.go b/modules/queue/manager.go
index bba2c54ad2..6975e02907 100644
--- a/modules/queue/manager.go
+++ b/modules/queue/manager.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue.go b/modules/queue/queue.go
index a166a935a6..22ee64f8e2 100644
--- a/modules/queue/queue.go
+++ b/modules/queue/queue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_bytefifo.go b/modules/queue/queue_bytefifo.go
index 79f69f07ce..ee00a5428a 100644
--- a/modules/queue/queue_bytefifo.go
+++ b/modules/queue/queue_bytefifo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_channel.go b/modules/queue/queue_channel.go
index 028023d500..431f48390c 100644
--- a/modules/queue/queue_channel.go
+++ b/modules/queue/queue_channel.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_channel_test.go b/modules/queue/queue_channel_test.go
index 949c452893..9b92398bac 100644
--- a/modules/queue/queue_channel_test.go
+++ b/modules/queue/queue_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk.go b/modules/queue/queue_disk.go
index 2691ab02f5..fbedb8e5b9 100644
--- a/modules/queue/queue_disk.go
+++ b/modules/queue/queue_disk.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_channel.go b/modules/queue/queue_disk_channel.go
index c00f620276..c7526714c6 100644
--- a/modules/queue/queue_disk_channel.go
+++ b/modules/queue/queue_disk_channel.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_channel_test.go b/modules/queue/queue_disk_channel_test.go
index b1820e73ac..318610355e 100644
--- a/modules/queue/queue_disk_channel_test.go
+++ b/modules/queue/queue_disk_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_test.go b/modules/queue/queue_disk_test.go
index b0835c896f..8f83abf42c 100644
--- a/modules/queue/queue_disk_test.go
+++ b/modules/queue/queue_disk_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_redis.go b/modules/queue/queue_redis.go
index 84ab235d5e..039e95241c 100644
--- a/modules/queue/queue_redis.go
+++ b/modules/queue/queue_redis.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_test.go b/modules/queue/queue_test.go
index 65fb816537..42d34c806c 100644
--- a/modules/queue/queue_test.go
+++ b/modules/queue/queue_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go
index e581ba75f3..84d6dd98a5 100644
--- a/modules/queue/queue_wrapped.go
+++ b/modules/queue/queue_wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/setting.go b/modules/queue/setting.go
index 880770f073..1e5259fcfb 100644
--- a/modules/queue/setting.go
+++ b/modules/queue/setting.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue.go b/modules/queue/unique_queue.go
index 87e0594ecf..8f8215c71d 100644
--- a/modules/queue/unique_queue.go
+++ b/modules/queue/unique_queue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_channel.go b/modules/queue/unique_queue_channel.go
index d1bf7239eb..f2d3dbdc97 100644
--- a/modules/queue/unique_queue_channel.go
+++ b/modules/queue/unique_queue_channel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_channel_test.go b/modules/queue/unique_queue_channel_test.go
index 6daf3fc96e..9372694b87 100644
--- a/modules/queue/unique_queue_channel_test.go
+++ b/modules/queue/unique_queue_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_disk.go b/modules/queue/unique_queue_disk.go
index dae32f75a8..406f64784c 100644
--- a/modules/queue/unique_queue_disk.go
+++ b/modules/queue/unique_queue_disk.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_disk_channel.go b/modules/queue/unique_queue_disk_channel.go
index 8e0322bb90..405726182d 100644
--- a/modules/queue/unique_queue_disk_channel.go
+++ b/modules/queue/unique_queue_disk_channel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_redis.go b/modules/queue/unique_queue_redis.go
index 477d5dd81f..491ae5d15e 100644
--- a/modules/queue/unique_queue_redis.go
+++ b/modules/queue/unique_queue_redis.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_wrapped.go b/modules/queue/unique_queue_wrapped.go
index 5245a35f77..22eeb75c40 100644
--- a/modules/queue/unique_queue_wrapped.go
+++ b/modules/queue/unique_queue_wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/workerpool.go b/modules/queue/workerpool.go
index bdf04a363b..244927880e 100644
--- a/modules/queue/workerpool.go
+++ b/modules/queue/workerpool.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/recaptcha/recaptcha.go b/modules/recaptcha/recaptcha.go
index 91b70dc588..1777d169c1 100644
--- a/modules/recaptcha/recaptcha.go
+++ b/modules/recaptcha/recaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package recaptcha
diff --git a/modules/references/references.go b/modules/references/references.go
index 8fd0c8f055..5cbbf8313c 100644
--- a/modules/references/references.go
+++ b/modules/references/references.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package references
diff --git a/modules/references/references_test.go b/modules/references/references_test.go
index 507adadb1f..835cee3a36 100644
--- a/modules/references/references_test.go
+++ b/modules/references/references_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package references
diff --git a/modules/regexplru/regexplru.go b/modules/regexplru/regexplru.go
index 97c7cff4c1..dd3c5df82d 100644
--- a/modules/regexplru/regexplru.go
+++ b/modules/regexplru/regexplru.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package regexplru
diff --git a/modules/regexplru/regexplru_test.go b/modules/regexplru/regexplru_test.go
index 041f0dcfb9..9c24b23fa9 100644
--- a/modules/regexplru/regexplru_test.go
+++ b/modules/regexplru/regexplru_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package regexplru
diff --git a/modules/repository/collaborator.go b/modules/repository/collaborator.go
index b83d8199b9..44c03f999e 100644
--- a/modules/repository/collaborator.go
+++ b/modules/repository/collaborator.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/collaborator_test.go b/modules/repository/collaborator_test.go
index 1b927aa3b6..ad835ae4d4 100644
--- a/modules/repository/collaborator_test.go
+++ b/modules/repository/collaborator_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/commits.go b/modules/repository/commits.go
index 7d6eec151f..a47f9b2dc8 100644
--- a/modules/repository/commits.go
+++ b/modules/repository/commits.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/commits_test.go b/modules/repository/commits_test.go
index 7bd741d0c8..2ae4bc73d2 100644
--- a/modules/repository/commits_test.go
+++ b/modules/repository/commits_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/create.go b/modules/repository/create.go
index c43f1e0989..8bee890aad 100644
--- a/modules/repository/create.go
+++ b/modules/repository/create.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go
index 3040782845..94a9b26aa6 100644
--- a/modules/repository/create_test.go
+++ b/modules/repository/create_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/delete.go b/modules/repository/delete.go
index 25fb15e300..c7e05e6669 100644
--- a/modules/repository/delete.go
+++ b/modules/repository/delete.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/env.go b/modules/repository/env.go
index e86e0d4535..646bf35cc6 100644
--- a/modules/repository/env.go
+++ b/modules/repository/env.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/fork.go b/modules/repository/fork.go
index c967d3b741..8e9f3a8976 100644
--- a/modules/repository/fork.go
+++ b/modules/repository/fork.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/generate.go b/modules/repository/generate.go
index c5fd7d60bf..5726a8fb1b 100644
--- a/modules/repository/generate.go
+++ b/modules/repository/generate.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/generate_test.go b/modules/repository/generate_test.go
index 139fa4c918..1cb9a50f67 100644
--- a/modules/repository/generate_test.go
+++ b/modules/repository/generate_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go
index 4d7d294a92..a95b9c2e99 100644
--- a/modules/repository/hooks.go
+++ b/modules/repository/hooks.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/init.go b/modules/repository/init.go
index 65072a9599..cd7176c238 100644
--- a/modules/repository/init.go
+++ b/modules/repository/init.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/main_test.go b/modules/repository/main_test.go
index 42134fa7ad..007790f2a9 100644
--- a/modules/repository/main_test.go
+++ b/modules/repository/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/push.go b/modules/repository/push.go
index 4e4b4000b1..1fa711b359 100644
--- a/modules/repository/push.go
+++ b/modules/repository/push.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/repo.go b/modules/repository/repo.go
index f1360f4478..a90eb8a764 100644
--- a/modules/repository/repo.go
+++ b/modules/repository/repo.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/temp.go b/modules/repository/temp.go
index 21af039469..53646718e0 100644
--- a/modules/repository/temp.go
+++ b/modules/repository/temp.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/secret/secret.go b/modules/secret/secret.go
index e7edc7a95e..b84d1cfea8 100644
--- a/modules/secret/secret.go
+++ b/modules/secret/secret.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package secret
diff --git a/modules/secret/secret_test.go b/modules/secret/secret_test.go
index b1c99d8513..0a189ecebf 100644
--- a/modules/secret/secret_test.go
+++ b/modules/secret/secret_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package secret
diff --git a/modules/session/db.go b/modules/session/db.go
index f9de37210f..6fdfb81e03 100644
--- a/modules/session/db.go
+++ b/modules/session/db.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/session/store.go b/modules/session/store.go
index 8c5d7d82eb..7b0c550ace 100644
--- a/modules/session/store.go
+++ b/modules/session/store.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/session/virtual.go b/modules/session/virtual.go
index 928dd49740..fcbc44249d 100644
--- a/modules/session/virtual.go
+++ b/modules/session/virtual.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go
index 474b73293c..68a2e87204 100644
--- a/modules/setting/attachment.go
+++ b/modules/setting/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cache.go b/modules/setting/cache.go
index 9a44965124..2da79adb3b 100644
--- a/modules/setting/cache.go
+++ b/modules/setting/cache.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cors.go b/modules/setting/cors.go
index 74ec6618a5..ae0736e830 100644
--- a/modules/setting/cors.go
+++ b/modules/setting/cors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron.go b/modules/setting/cron.go
index 9475887ecc..a76de2797f 100644
--- a/modules/setting/cron.go
+++ b/modules/setting/cron.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron_test.go b/modules/setting/cron_test.go
index cb397d81c4..29cdca8fbf 100644
--- a/modules/setting/cron_test.go
+++ b/modules/setting/cron_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database.go b/modules/setting/database.go
index 4e55457395..be06c47478 100644
--- a/modules/setting/database.go
+++ b/modules/setting/database.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_sqlite.go b/modules/setting/database_sqlite.go
index 1f18868d8e..c1037cfb27 100644
--- a/modules/setting/database_sqlite.go
+++ b/modules/setting/database_sqlite.go
@@ -1,8 +1,7 @@
//go:build sqlite
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_test.go b/modules/setting/database_test.go
index a90be2a687..481ca969b1 100644
--- a/modules/setting/database_test.go
+++ b/modules/setting/database_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/directory.go b/modules/setting/directory.go
index 2641510286..a80df47ab4 100644
--- a/modules/setting/directory.go
+++ b/modules/setting/directory.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/federation.go b/modules/setting/federation.go
index 583d9a6e2b..acab3eb580 100644
--- a/modules/setting/federation.go
+++ b/modules/setting/federation.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/git.go b/modules/setting/git.go
index 266bbc3c5a..a05f77a97e 100644
--- a/modules/setting/git.go
+++ b/modules/setting/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/i18n.go b/modules/setting/i18n.go
index 8b8587e09b..0e67b18a3e 100644
--- a/modules/setting/i18n.go
+++ b/modules/setting/i18n.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go
index 46d4027d14..1b1c8f7e7f 100644
--- a/modules/setting/indexer.go
+++ b/modules/setting/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer_test.go b/modules/setting/indexer_test.go
index 0ff1d814ab..8f0437be8a 100644
--- a/modules/setting/indexer_test.go
+++ b/modules/setting/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go
index 686b043657..6f8e875c1d 100644
--- a/modules/setting/lfs.go
+++ b/modules/setting/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/log.go b/modules/setting/log.go
index 1d9535360a..7372fc998d 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mailer.go b/modules/setting/mailer.go
index 5a9b7054b9..7324328ee3 100644
--- a/modules/setting/mailer.go
+++ b/modules/setting/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/markup.go b/modules/setting/markup.go
index fd41bdd7cc..c262234b6a 100644
--- a/modules/setting/markup.go
+++ b/modules/setting/markup.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/migrations.go b/modules/setting/migrations.go
index 4b10f3dc6e..2f6d08b6b8 100644
--- a/modules/setting/migrations.go
+++ b/modules/setting/migrations.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mime_type_map.go b/modules/setting/mime_type_map.go
index 8e5b864e24..6a0847bd7e 100644
--- a/modules/setting/mime_type_map.go
+++ b/modules/setting/mime_type_map.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go
index 2bd0322d06..9ddce97daf 100644
--- a/modules/setting/mirror.go
+++ b/modules/setting/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/oauth2_client.go b/modules/setting/oauth2_client.go
index 6cfd99156f..6492af82d2 100644
--- a/modules/setting/oauth2_client.go
+++ b/modules/setting/oauth2_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages.go b/modules/setting/packages.go
index 62201032c7..120fbb5bda 100644
--- a/modules/setting/packages.go
+++ b/modules/setting/packages.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages_test.go b/modules/setting/packages_test.go
index 059273dce4..04d6e55834 100644
--- a/modules/setting/packages_test.go
+++ b/modules/setting/packages_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/picture.go b/modules/setting/picture.go
index af9041ade3..9d16a2360b 100644
--- a/modules/setting/picture.go
+++ b/modules/setting/picture.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/project.go b/modules/setting/project.go
index 56505b0ca4..53e09e8dad 100644
--- a/modules/setting/project.go
+++ b/modules/setting/project.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/proxy.go b/modules/setting/proxy.go
index 53fb0066d9..fed33395ed 100644
--- a/modules/setting/proxy.go
+++ b/modules/setting/proxy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/queue.go b/modules/setting/queue.go
index d3bb33b248..a67d0d849a 100644
--- a/modules/setting/queue.go
+++ b/modules/setting/queue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index d0406dbf90..19594369be 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/service.go b/modules/setting/service.go
index d2eb6ebcd7..7b4bfc5c7b 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/session.go b/modules/setting/session.go
index 62ca1d82e8..082538c385 100644
--- a/modules/setting/session.go
+++ b/modules/setting/session.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index df7310b09b..68892a2198 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting_test.go b/modules/setting/setting_test.go
index 0e7f5a55ab..f77ee65974 100644
--- a/modules/setting/setting_test.go
+++ b/modules/setting/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage.go b/modules/setting/storage.go
index 075152db59..32f74aa072 100644
--- a/modules/setting/storage.go
+++ b/modules/setting/storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage_test.go b/modules/setting/storage_test.go
index ffd8b7aa01..256bbb7a52 100644
--- a/modules/setting/storage_test.go
+++ b/modules/setting/storage_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/task.go b/modules/setting/task.go
index c39d441108..cfb0f54668 100644
--- a/modules/setting/task.go
+++ b/modules/setting/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/webhook.go b/modules/setting/webhook.go
index 0bfd7dcb4d..51e36c3419 100644
--- a/modules/setting/webhook.go
+++ b/modules/setting/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/sitemap/sitemap.go b/modules/sitemap/sitemap.go
index 14953765ab..ceb65c1c8d 100644
--- a/modules/sitemap/sitemap.go
+++ b/modules/sitemap/sitemap.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sitemap
diff --git a/modules/sitemap/sitemap_test.go b/modules/sitemap/sitemap_test.go
index 63007b8479..ab879b272e 100644
--- a/modules/sitemap/sitemap_test.go
+++ b/modules/sitemap/sitemap_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sitemap
diff --git a/modules/ssh/init.go b/modules/ssh/init.go
index 72cb6df7a4..21d4f89936 100644
--- a/modules/ssh/init.go
+++ b/modules/ssh/init.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/ssh/ssh.go b/modules/ssh/ssh.go
index 6b601c008f..9ec14f2caa 100644
--- a/modules/ssh/ssh.go
+++ b/modules/ssh/ssh.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/ssh/ssh_graceful.go b/modules/ssh/ssh_graceful.go
index 166ea0b982..cad2c685bd 100644
--- a/modules/ssh/ssh_graceful.go
+++ b/modules/ssh/ssh_graceful.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/storage/helper.go b/modules/storage/helper.go
index 1a25716ccb..5aaa2a9e64 100644
--- a/modules/storage/helper.go
+++ b/modules/storage/helper.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/local.go b/modules/storage/local.go
index 5d5b06b648..a439a24592 100644
--- a/modules/storage/local.go
+++ b/modules/storage/local.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/local_test.go b/modules/storage/local_test.go
index 0749036cb7..994c54e859 100644
--- a/modules/storage/local_test.go
+++ b/modules/storage/local_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/minio.go b/modules/storage/minio.go
index f7b42d674c..912f820ede 100644
--- a/modules/storage/minio.go
+++ b/modules/storage/minio.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/storage.go b/modules/storage/storage.go
index 1b83e3271f..a7d3b9ce1f 100644
--- a/modules/storage/storage.go
+++ b/modules/storage/storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/structs/activitypub.go b/modules/structs/activitypub.go
index 86681bf9d7..117eb0bed2 100644
--- a/modules/structs/activitypub.go
+++ b/modules/structs/activitypub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/admin_user.go b/modules/structs/admin_user.go
index 2f6f502af6..0739653eea 100644
--- a/modules/structs/admin_user.go
+++ b/modules/structs/admin_user.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/attachment.go b/modules/structs/attachment.go
index 7becd94335..38beca5e99 100644
--- a/modules/structs/attachment.go
+++ b/modules/structs/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs // import "code.gitea.io/gitea/modules/structs"
diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go
index 23e0c383b8..dfde79190c 100644
--- a/modules/structs/commit_status.go
+++ b/modules/structs/commit_status.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/cron.go b/modules/structs/cron.go
index f52a5ed3c9..39c6a06a42 100644
--- a/modules/structs/cron.go
+++ b/modules/structs/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/doc.go b/modules/structs/doc.go
index 4c2fdbf73d..0db0a25fd4 100644
--- a/modules/structs/doc.go
+++ b/modules/structs/doc.go
@@ -1,5 +1,4 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/fork.go b/modules/structs/fork.go
index 21afd636c7..eb7774afbc 100644
--- a/modules/structs/fork.go
+++ b/modules/structs/fork.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/git_blob.go b/modules/structs/git_blob.go
index 5715f2585b..96c7a271a9 100644
--- a/modules/structs/git_blob.go
+++ b/modules/structs/git_blob.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/git_hook.go b/modules/structs/git_hook.go
index 8a36b0b266..20230250ec 100644
--- a/modules/structs/git_hook.go
+++ b/modules/structs/git_hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/hook.go b/modules/structs/hook.go
index f0600a192d..b722e32ca0 100644
--- a/modules/structs/hook.go
+++ b/modules/structs/hook.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue.go b/modules/structs/issue.go
index 45c3f6294a..00166b7a07 100644
--- a/modules/structs/issue.go
+++ b/modules/structs/issue.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_comment.go b/modules/structs/issue_comment.go
index e13ec05d01..4a1085ba50 100644
--- a/modules/structs/issue_comment.go
+++ b/modules/structs/issue_comment.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_label.go b/modules/structs/issue_label.go
index 2aadd8638e..5c622797f4 100644
--- a/modules/structs/issue_label.go
+++ b/modules/structs/issue_label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go
index ace783ebbc..a840cf1820 100644
--- a/modules/structs/issue_milestone.go
+++ b/modules/structs/issue_milestone.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_reaction.go b/modules/structs/issue_reaction.go
index 56408313ee..8d907a47e5 100644
--- a/modules/structs/issue_reaction.go
+++ b/modules/structs/issue_reaction.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_stopwatch.go b/modules/structs/issue_stopwatch.go
index 15d17cdda7..ceade1ddd2 100644
--- a/modules/structs/issue_stopwatch.go
+++ b/modules/structs/issue_stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_test.go b/modules/structs/issue_test.go
index 72b40f7cf2..fa7a20db8b 100644
--- a/modules/structs/issue_test.go
+++ b/modules/structs/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_tracked_time.go b/modules/structs/issue_tracked_time.go
index 7e150687ef..a3904af80e 100644
--- a/modules/structs/issue_tracked_time.go
+++ b/modules/structs/issue_tracked_time.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/lfs_lock.go b/modules/structs/lfs_lock.go
index 3709106315..6b4c0bc111 100644
--- a/modules/structs/lfs_lock.go
+++ b/modules/structs/lfs_lock.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/mirror.go b/modules/structs/mirror.go
index 8e8a8a2705..21e7751f76 100644
--- a/modules/structs/mirror.go
+++ b/modules/structs/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/miscellaneous.go b/modules/structs/miscellaneous.go
index c21c466cb0..596a551e0d 100644
--- a/modules/structs/miscellaneous.go
+++ b/modules/structs/miscellaneous.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/nodeinfo.go b/modules/structs/nodeinfo.go
index 6fd1eb624a..802c8d3e57 100644
--- a/modules/structs/nodeinfo.go
+++ b/modules/structs/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go
index 3fd9088ce3..7fbf4cb46d 100644
--- a/modules/structs/notifications.go
+++ b/modules/structs/notifications.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org.go b/modules/structs/org.go
index 1e98c59ba4..b4c58623fd 100644
--- a/modules/structs/org.go
+++ b/modules/structs/org.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_member.go b/modules/structs/org_member.go
index 3b2a8b599a..2df5099de9 100644
--- a/modules/structs/org_member.go
+++ b/modules/structs/org_member.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go
index 10bd9e62ce..95db0debad 100644
--- a/modules/structs/org_team.go
+++ b/modules/structs/org_team.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_type.go b/modules/structs/org_type.go
index 4401a2801c..69f323fa99 100644
--- a/modules/structs/org_type.go
+++ b/modules/structs/org_type.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/package.go b/modules/structs/package.go
index fbdd6c90aa..0059535bea 100644
--- a/modules/structs/package.go
+++ b/modules/structs/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/pull.go b/modules/structs/pull.go
index f627241b26..f64bb83af9 100644
--- a/modules/structs/pull.go
+++ b/modules/structs/pull.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/pull_review.go b/modules/structs/pull_review.go
index ca2af48657..810be8f521 100644
--- a/modules/structs/pull_review.go
+++ b/modules/structs/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/release.go b/modules/structs/release.go
index 38ce60bbe2..3fe40389b1 100644
--- a/modules/structs/release.go
+++ b/modules/structs/release.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo.go b/modules/structs/repo.go
index cf6601704e..16f3d9dd26 100644
--- a/modules/structs/repo.go
+++ b/modules/structs/repo.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_branch.go b/modules/structs/repo_branch.go
index 1f3bc04e86..864cb8f50a 100644
--- a/modules/structs/repo_branch.go
+++ b/modules/structs/repo_branch.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_collaborator.go b/modules/structs/repo_collaborator.go
index 2f9c8992a1..946a6ec7e7 100644
--- a/modules/structs/repo_collaborator.go
+++ b/modules/structs/repo_collaborator.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go
index 55a516a975..b3e98df195 100644
--- a/modules/structs/repo_commit.go
+++ b/modules/structs/repo_commit.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go
index ce1a9fe4be..328d7e47c8 100644
--- a/modules/structs/repo_file.go
+++ b/modules/structs/repo_file.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_key.go b/modules/structs/repo_key.go
index 29928bd97e..27b9d05a75 100644
--- a/modules/structs/repo_key.go
+++ b/modules/structs/repo_key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_note.go b/modules/structs/repo_note.go
index bddc945a5c..4eaf5a255d 100644
--- a/modules/structs/repo_note.go
+++ b/modules/structs/repo_note.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_refs.go b/modules/structs/repo_refs.go
index 0bf4b94ae1..6ffbc74a51 100644
--- a/modules/structs/repo_refs.go
+++ b/modules/structs/repo_refs.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_tag.go b/modules/structs/repo_tag.go
index 80ee1ccf17..4a7d895288 100644
--- a/modules/structs/repo_tag.go
+++ b/modules/structs/repo_tag.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_topic.go b/modules/structs/repo_topic.go
index 294d56a953..fea193e86b 100644
--- a/modules/structs/repo_topic.go
+++ b/modules/structs/repo_topic.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_tree.go b/modules/structs/repo_tree.go
index 58aa3b8339..86b221e1fe 100644
--- a/modules/structs/repo_tree.go
+++ b/modules/structs/repo_tree.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_watch.go b/modules/structs/repo_watch.go
index 606785a4fd..2e89a9eefc 100644
--- a/modules/structs/repo_watch.go
+++ b/modules/structs/repo_watch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_wiki.go b/modules/structs/repo_wiki.go
index 09e21387df..3df5a0be99 100644
--- a/modules/structs/repo_wiki.go
+++ b/modules/structs/repo_wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/settings.go b/modules/structs/settings.go
index 90c4a2107b..e48b1a493d 100644
--- a/modules/structs/settings.go
+++ b/modules/structs/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/status.go b/modules/structs/status.go
index ed42b24be8..c1d8b902ec 100644
--- a/modules/structs/status.go
+++ b/modules/structs/status.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/task.go b/modules/structs/task.go
index e83d0437ce..c73e51b1ab 100644
--- a/modules/structs/task.go
+++ b/modules/structs/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user.go b/modules/structs/user.go
index 81516894a5..c5e96f3356 100644
--- a/modules/structs/user.go
+++ b/modules/structs/user.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go
index 4cfa5538c8..3a5ae34df1 100644
--- a/modules/structs/user_app.go
+++ b/modules/structs/user_app.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_email.go b/modules/structs/user_email.go
index a72b04119a..6a11e040af 100644
--- a/modules/structs/user_email.go
+++ b/modules/structs/user_email.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_gpgkey.go b/modules/structs/user_gpgkey.go
index a2ebf7df93..ff9b0aea1d 100644
--- a/modules/structs/user_gpgkey.go
+++ b/modules/structs/user_gpgkey.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_key.go b/modules/structs/user_key.go
index ee487607c3..08eed59a89 100644
--- a/modules/structs/user_key.go
+++ b/modules/structs/user_key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/svg/discover_bindata.go b/modules/svg/discover_bindata.go
index cca1de76a7..b6abd294f1 100644
--- a/modules/svg/discover_bindata.go
+++ b/modules/svg/discover_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/svg/discover_nobindata.go b/modules/svg/discover_nobindata.go
index ef01fbcc3e..da7ab7b98f 100644
--- a/modules/svg/discover_nobindata.go
+++ b/modules/svg/discover_nobindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/svg/svg.go b/modules/svg/svg.go
index 4e13d92d41..e0f0a263f3 100644
--- a/modules/svg/svg.go
+++ b/modules/svg/svg.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package svg
diff --git a/modules/sync/exclusive_pool.go b/modules/sync/exclusive_pool.go
index 7c1a8930ce..fbfc1f2292 100644
--- a/modules/sync/exclusive_pool.go
+++ b/modules/sync/exclusive_pool.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/sync/status_pool.go b/modules/sync/status_pool.go
index 99e5ce9cb3..6f075d54b7 100644
--- a/modules/sync/status_pool.go
+++ b/modules/sync/status_pool.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/sync/status_pool_test.go b/modules/sync/status_pool_test.go
index b388c50db2..e2e48862f5 100644
--- a/modules/sync/status_pool_test.go
+++ b/modules/sync/status_pool_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/system/appstate.go b/modules/system/appstate.go
index deee8cd029..765501d432 100644
--- a/modules/system/appstate.go
+++ b/modules/system/appstate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/appstate_test.go b/modules/system/appstate_test.go
index fb0c2aaf9f..65a6e50003 100644
--- a/modules/system/appstate_test.go
+++ b/modules/system/appstate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/db.go b/modules/system/db.go
index b1c283c488..3f2e4c59bb 100644
--- a/modules/system/db.go
+++ b/modules/system/db.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/item_runtime.go b/modules/system/item_runtime.go
index e022a0daad..ded52c1426 100644
--- a/modules/system/item_runtime.go
+++ b/modules/system/item_runtime.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/templates/base.go b/modules/templates/base.go
index d234d531f3..e0f8350afb 100644
--- a/modules/templates/base.go
+++ b/modules/templates/base.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/dynamic.go b/modules/templates/dynamic.go
index a86e71a8c8..7d25a61fed 100644
--- a/modules/templates/dynamic.go
+++ b/modules/templates/dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 95671e791a..5fa9e17c8a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/helper_test.go b/modules/templates/helper_test.go
index 5ebae7afef..ec83e9ac33 100644
--- a/modules/templates/helper_test.go
+++ b/modules/templates/helper_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/htmlrenderer.go b/modules/templates/htmlrenderer.go
index 81ea660161..7ab523822b 100644
--- a/modules/templates/htmlrenderer.go
+++ b/modules/templates/htmlrenderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/mailer.go b/modules/templates/mailer.go
index 0cac1280f3..a257e7c1da 100644
--- a/modules/templates/mailer.go
+++ b/modules/templates/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/static.go b/modules/templates/static.go
index 7f7cbe702f..7ebb327ae6 100644
--- a/modules/templates/static.go
+++ b/modules/templates/static.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/templates/templates_bindata.go b/modules/templates/templates_bindata.go
index bcb2cbaf3f..6f1d3cf539 100644
--- a/modules/templates/templates_bindata.go
+++ b/modules/templates/templates_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/templates/vars/vars.go b/modules/templates/vars/vars.go
index a22ea4d777..cc9d0e976f 100644
--- a/modules/templates/vars/vars.go
+++ b/modules/templates/vars/vars.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vars
diff --git a/modules/templates/vars/vars_test.go b/modules/templates/vars/vars_test.go
index 1cd7669c00..8f421d9e4b 100644
--- a/modules/templates/vars/vars_test.go
+++ b/modules/templates/vars/vars_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vars
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go
index 963f79c3c6..61e49adb76 100644
--- a/modules/test/context_tests.go
+++ b/modules/test/context_tests.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package test
diff --git a/modules/test/utils.go b/modules/test/utils.go
index ed1628ab47..7686d3f289 100644
--- a/modules/test/utils.go
+++ b/modules/test/utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package test
diff --git a/modules/timeutil/executable.go b/modules/timeutil/executable.go
index 1875b63349..57ae8b2a9d 100644
--- a/modules/timeutil/executable.go
+++ b/modules/timeutil/executable.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/language.go b/modules/timeutil/language.go
index d0380cac3d..c2f7a0e579 100644
--- a/modules/timeutil/language.go
+++ b/modules/timeutil/language.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/since.go b/modules/timeutil/since.go
index 8473d45051..295ba7c10e 100644
--- a/modules/timeutil/since.go
+++ b/modules/timeutil/since.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/since_test.go b/modules/timeutil/since_test.go
index 9350b5e96b..2e1dde00f6 100644
--- a/modules/timeutil/since_test.go
+++ b/modules/timeutil/since_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go
index 36b2aff575..4618db9a76 100644
--- a/modules/timeutil/timestamp.go
+++ b/modules/timeutil/timestamp.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/translation/i18n/errors.go b/modules/translation/i18n/errors.go
index a81b0bc1ac..7f64ccf908 100644
--- a/modules/translation/i18n/errors.go
+++ b/modules/translation/i18n/errors.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/format.go b/modules/translation/i18n/format.go
index 3fb9e6d6d0..637209ad80 100644
--- a/modules/translation/i18n/format.go
+++ b/modules/translation/i18n/format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/i18n.go b/modules/translation/i18n/i18n.go
index d8ed43a1cd..4048c9acd2 100644
--- a/modules/translation/i18n/i18n.go
+++ b/modules/translation/i18n/i18n.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/i18n_test.go b/modules/translation/i18n/i18n_test.go
index 0f4605c1bb..76a91522ba 100644
--- a/modules/translation/i18n/i18n_test.go
+++ b/modules/translation/i18n/i18n_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/localestore.go b/modules/translation/i18n/localestore.go
index 853519e224..90f574127d 100644
--- a/modules/translation/i18n/localestore.go
+++ b/modules/translation/i18n/localestore.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/translation.go b/modules/translation/translation.go
index fc311aa61b..5a1009bfa3 100644
--- a/modules/translation/translation.go
+++ b/modules/translation/translation.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package translation
diff --git a/modules/typesniffer/typesniffer.go b/modules/typesniffer/typesniffer.go
index e50928e8c2..c9fef953ce 100644
--- a/modules/typesniffer/typesniffer.go
+++ b/modules/typesniffer/typesniffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package typesniffer
diff --git a/modules/typesniffer/typesniffer_test.go b/modules/typesniffer/typesniffer_test.go
index a3b47c4598..dbce94fc3b 100644
--- a/modules/typesniffer/typesniffer_test.go
+++ b/modules/typesniffer/typesniffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package typesniffer
diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go
index 816fb3764c..bc3f93aad7 100644
--- a/modules/updatechecker/update_checker.go
+++ b/modules/updatechecker/update_checker.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package updatechecker
diff --git a/modules/upload/upload.go b/modules/upload/upload.go
index 734b3a6acc..cd10715864 100644
--- a/modules/upload/upload.go
+++ b/modules/upload/upload.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package upload
diff --git a/modules/upload/upload_test.go b/modules/upload/upload_test.go
index d258b04f77..f2c3242e9a 100644
--- a/modules/upload/upload_test.go
+++ b/modules/upload/upload_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package upload
diff --git a/modules/uri/uri.go b/modules/uri/uri.go
index 74410f43f9..768bc662ce 100644
--- a/modules/uri/uri.go
+++ b/modules/uri/uri.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package uri
diff --git a/modules/uri/uri_test.go b/modules/uri/uri_test.go
index 8cadd6b918..11b915c261 100644
--- a/modules/uri/uri_test.go
+++ b/modules/uri/uri_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package uri
diff --git a/modules/user/user.go b/modules/user/user.go
index af49d7b06a..eee401a23f 100644
--- a/modules/user/user.go
+++ b/modules/user/user.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/modules/user/user_test.go b/modules/user/user_test.go
index 3b3758efc0..9129ae79a1 100644
--- a/modules/user/user_test.go
+++ b/modules/user/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/modules/util/compare.go b/modules/util/compare.go
index 49891ef024..9ac778dfd3 100644
--- a/modules/util/compare.go
+++ b/modules/util/compare.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/error.go b/modules/util/error.go
index 08e491dbaf..63bd447bf3 100644
--- a/modules/util/error.go
+++ b/modules/util/error.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/file_unix.go b/modules/util/file_unix.go
index ec9d4ec167..79a29c8b3b 100644
--- a/modules/util/file_unix.go
+++ b/modules/util/file_unix.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/util/file_unix_test.go b/modules/util/file_unix_test.go
index 41311aa13f..87d6c2f09a 100644
--- a/modules/util/file_unix_test.go
+++ b/modules/util/file_unix_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/util/file_windows.go b/modules/util/file_windows.go
index 6ad3e88ba5..77a33d3c49 100644
--- a/modules/util/file_windows.go
+++ b/modules/util/file_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/modules/util/filebuffer/file_backed_buffer.go b/modules/util/filebuffer/file_backed_buffer.go
index 8e3e138e04..bfddf90e92 100644
--- a/modules/util/filebuffer/file_backed_buffer.go
+++ b/modules/util/filebuffer/file_backed_buffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package filebuffer
diff --git a/modules/util/filebuffer/file_backed_buffer_test.go b/modules/util/filebuffer/file_backed_buffer_test.go
index 83ef58561d..16d5a1965f 100644
--- a/modules/util/filebuffer/file_backed_buffer_test.go
+++ b/modules/util/filebuffer/file_backed_buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package filebuffer
diff --git a/modules/util/io.go b/modules/util/io.go
index d765e27733..e5d7561bef 100644
--- a/modules/util/io.go
+++ b/modules/util/io.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/legacy.go b/modules/util/legacy.go
index d319faad09..2ea293a2be 100644
--- a/modules/util/legacy.go
+++ b/modules/util/legacy.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/legacy_test.go b/modules/util/legacy_test.go
index c41f7a008c..e732094c29 100644
--- a/modules/util/legacy_test.go
+++ b/modules/util/legacy_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/paginate.go b/modules/util/paginate.go
index 2baa71664e..f2721df1ad 100644
--- a/modules/util/paginate.go
+++ b/modules/util/paginate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/paginate_test.go b/modules/util/paginate_test.go
index 3657efc919..6e69dd19cc 100644
--- a/modules/util/paginate_test.go
+++ b/modules/util/paginate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/path.go b/modules/util/path.go
index 3d4ddec21c..03013f7133 100644
--- a/modules/util/path.go
+++ b/modules/util/path.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/path_test.go b/modules/util/path_test.go
index b0ea448a1c..5794df1ebf 100644
--- a/modules/util/path_test.go
+++ b/modules/util/path_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/remove.go b/modules/util/remove.go
index d05ee9fe4a..d1e38faf5f 100644
--- a/modules/util/remove.go
+++ b/modules/util/remove.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sanitize.go b/modules/util/sanitize.go
index 685b2699b0..f1ea2574f1 100644
--- a/modules/util/sanitize.go
+++ b/modules/util/sanitize.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sanitize_test.go b/modules/util/sanitize_test.go
index 78166cfdff..0bcfd45ca4 100644
--- a/modules/util/sanitize_test.go
+++ b/modules/util/sanitize_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sec_to_time.go b/modules/util/sec_to_time.go
index 13461915e6..017ed45f8c 100644
--- a/modules/util/sec_to_time.go
+++ b/modules/util/sec_to_time.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sec_to_time_test.go b/modules/util/sec_to_time_test.go
index 1e256aa865..4d1213a52c 100644
--- a/modules/util/sec_to_time_test.go
+++ b/modules/util/sec_to_time_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/shellquote.go b/modules/util/shellquote.go
index 5a12c2e261..434dc4236e 100644
--- a/modules/util/shellquote.go
+++ b/modules/util/shellquote.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/shellquote_test.go b/modules/util/shellquote_test.go
index be6ba372fd..969998c592 100644
--- a/modules/util/shellquote_test.go
+++ b/modules/util/shellquote_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/slice.go b/modules/util/slice.go
index 552f5b866a..17345cbc49 100644
--- a/modules/util/slice.go
+++ b/modules/util/slice.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/string.go b/modules/util/string.go
index 2da2bc5dc4..f2def7b0ec 100644
--- a/modules/util/string.go
+++ b/modules/util/string.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/string_test.go b/modules/util/string_test.go
index 49de29ab67..0a4a8bbcfb 100644
--- a/modules/util/string_test.go
+++ b/modules/util/string_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/timer.go b/modules/util/timer.go
index b682f376d9..daf96bda7e 100644
--- a/modules/util/timer.go
+++ b/modules/util/timer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/truncate.go b/modules/util/truncate.go
index 2e6f7f68b0..032a6c0872 100644
--- a/modules/util/truncate.go
+++ b/modules/util/truncate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/truncate_test.go b/modules/util/truncate_test.go
index e505a6ee4a..912bfb3d5f 100644
--- a/modules/util/truncate_test.go
+++ b/modules/util/truncate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/url.go b/modules/util/url.go
index 96c66df92b..75fcf634a9 100644
--- a/modules/util/url.go
+++ b/modules/util/url.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/util.go b/modules/util/util.go
index 6df47ca568..9d3a8dcfac 100644
--- a/modules/util/util.go
+++ b/modules/util/util.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/util_test.go b/modules/util/util_test.go
index 91b0ef9455..34fe070d22 100644
--- a/modules/util/util_test.go
+++ b/modules/util/util_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/validation/binding.go b/modules/validation/binding.go
index c054fbe7b6..ef0d01e80f 100644
--- a/modules/validation/binding.go
+++ b/modules/validation/binding.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/binding_test.go b/modules/validation/binding_test.go
index aa8a765524..9ca93784a8 100644
--- a/modules/validation/binding_test.go
+++ b/modules/validation/binding_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/glob_pattern_test.go b/modules/validation/glob_pattern_test.go
index cbaed7e66a..1bf622e61d 100644
--- a/modules/validation/glob_pattern_test.go
+++ b/modules/validation/glob_pattern_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go
index 8e49c7855e..3381846b86 100644
--- a/modules/validation/helpers.go
+++ b/modules/validation/helpers.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/helpers_test.go b/modules/validation/helpers_test.go
index 9bdbdb4a77..52f383f698 100644
--- a/modules/validation/helpers_test.go
+++ b/modules/validation/helpers_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/refname_test.go b/modules/validation/refname_test.go
index 2d6458b9b5..3af7387c47 100644
--- a/modules/validation/refname_test.go
+++ b/modules/validation/refname_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/regex_pattern_test.go b/modules/validation/regex_pattern_test.go
index afe1bcf425..efcb276734 100644
--- a/modules/validation/regex_pattern_test.go
+++ b/modules/validation/regex_pattern_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/validurl_test.go b/modules/validation/validurl_test.go
index 3cb6206602..39f7fa5d65 100644
--- a/modules/validation/validurl_test.go
+++ b/modules/validation/validurl_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/watcher/watcher.go b/modules/watcher/watcher.go
index d737f6ccbb..75d062d7aa 100644
--- a/modules/watcher/watcher.go
+++ b/modules/watcher/watcher.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package watcher
diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go
index cced9717be..733f00a1d5 100644
--- a/modules/web/middleware/binding.go
+++ b/modules/web/middleware/binding.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go
index b5904d6713..7c1aaf6daf 100644
--- a/modules/web/middleware/cookie.go
+++ b/modules/web/middleware/cookie.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Macaron Authors
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go
index 7de686498a..43189940ee 100644
--- a/modules/web/middleware/data.go
+++ b/modules/web/middleware/data.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/flash.go b/modules/web/middleware/flash.go
index d1d4a864e3..f2d7cc692d 100644
--- a/modules/web/middleware/flash.go
+++ b/modules/web/middleware/flash.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go
index f4018527c0..f60be4bbdb 100644
--- a/modules/web/middleware/locale.go
+++ b/modules/web/middleware/locale.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/request.go b/modules/web/middleware/request.go
index f620da5eea..34add27214 100644
--- a/modules/web/middleware/request.go
+++ b/modules/web/middleware/request.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/route.go b/modules/web/route.go
index 4341b1bf5d..cd72aabae5 100644
--- a/modules/web/route.go
+++ b/modules/web/route.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/route_test.go b/modules/web/route_test.go
index 801afe92c9..232444cb83 100644
--- a/modules/web/route_test.go
+++ b/modules/web/route_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/routing/context.go b/modules/web/routing/context.go
index 7e263db5a2..0d5e765543 100644
--- a/modules/web/routing/context.go
+++ b/modules/web/routing/context.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo.go b/modules/web/routing/funcinfo.go
index 9bb38af1c8..499bc2c7aa 100644
--- a/modules/web/routing/funcinfo.go
+++ b/modules/web/routing/funcinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo_test.go b/modules/web/routing/funcinfo_test.go
index 9cea7e2817..2ab5960373 100644
--- a/modules/web/routing/funcinfo_test.go
+++ b/modules/web/routing/funcinfo_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go
index cf3b50725d..d1b0ff0cda 100644
--- a/modules/web/routing/logger.go
+++ b/modules/web/routing/logger.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go
index 7715b0b5d3..aa25ec3a27 100644
--- a/modules/web/routing/logger_manager.go
+++ b/modules/web/routing/logger_manager.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/requestrecord.go b/modules/web/routing/requestrecord.go
index 5e225f32e4..34a2d33893 100644
--- a/modules/web/routing/requestrecord.go
+++ b/modules/web/routing/requestrecord.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/wrap.go b/modules/web/wrap.go
index b55b876069..0ff9529fae 100644
--- a/modules/web/wrap.go
+++ b/modules/web/wrap.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/wrap_convert.go b/modules/web/wrap_convert.go
index 9084cfa074..6778e208cf 100644
--- a/modules/web/wrap_convert.go
+++ b/modules/web/wrap_convert.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web