From e81ccc406bf723a5a58d685e7782f281736affd4 Mon Sep 17 00:00:00 2001 From: flynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com> Date: Sun, 27 Nov 2022 13:20:29 -0500 Subject: [PATCH] Implement FSFE REUSE for golang files (#21840) Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn Co-authored-by: John Olheiser --- CONTRIBUTING.md | 4 ++-- build.go | 4 ++-- build/code-batch-process.go | 3 +-- build/codeformat/formatimports.go | 3 +-- build/codeformat/formatimports_test.go | 3 +-- build/generate-bindata.go | 3 +-- build/generate-emoji.go | 7 +++---- build/generate-go-licenses.go | 3 +-- build/gocovmerge.go | 3 +-- cmd/admin.go | 3 +-- cmd/admin_auth_ldap.go | 3 +-- cmd/admin_auth_ldap_test.go | 3 +-- cmd/cert.go | 3 +-- cmd/cmd.go | 3 +-- cmd/convert.go | 3 +-- cmd/docs.go | 3 +-- cmd/doctor.go | 3 +-- cmd/dump.go | 3 +-- cmd/dump_repo.go | 3 +-- cmd/embedded.go | 3 +-- cmd/embedded_stub.go | 3 +-- cmd/generate.go | 3 +-- cmd/hook.go | 3 +-- cmd/hook_test.go | 3 +-- cmd/keys.go | 3 +-- cmd/mailer.go | 3 +-- cmd/main_test.go | 3 +-- cmd/manager.go | 3 +-- cmd/manager_logging.go | 3 +-- cmd/migrate.go | 3 +-- cmd/migrate_storage.go | 3 +-- cmd/migrate_storage_test.go | 3 +-- cmd/restore_repo.go | 3 +-- cmd/serv.go | 3 +-- cmd/web.go | 3 +-- cmd/web_acme.go | 3 +-- cmd/web_graceful.go | 3 +-- cmd/web_https.go | 3 +-- contrib/environment-to-ini/environment-to-ini.go | 3 +-- contrib/fixtures/fixture_generation.go | 3 +-- contrib/pr/checkout.go | 3 +-- main.go | 3 +-- models/activities/action.go | 3 +-- models/activities/action_list.go | 3 +-- models/activities/action_test.go | 3 +-- models/activities/main_test.go | 3 +-- models/activities/notification.go | 3 +-- models/activities/notification_test.go | 3 +-- models/activities/repo_activity.go | 3 +-- models/activities/statistic.go | 3 +-- models/activities/user_heatmap.go | 3 +-- models/activities/user_heatmap_test.go | 3 +-- models/admin/task.go | 3 +-- models/asymkey/error.go | 3 +-- models/asymkey/gpg_key.go | 3 +-- models/asymkey/gpg_key_add.go | 3 +-- models/asymkey/gpg_key_commit_verification.go | 3 +-- models/asymkey/gpg_key_common.go | 3 +-- models/asymkey/gpg_key_import.go | 3 +-- models/asymkey/gpg_key_test.go | 3 +-- models/asymkey/gpg_key_verify.go | 3 +-- models/asymkey/main_test.go | 3 +-- models/asymkey/ssh_key.go | 3 +-- models/asymkey/ssh_key_authorized_keys.go | 3 +-- models/asymkey/ssh_key_authorized_principals.go | 3 +-- models/asymkey/ssh_key_commit_verification.go | 3 +-- models/asymkey/ssh_key_deploy.go | 3 +-- models/asymkey/ssh_key_fingerprint.go | 3 +-- models/asymkey/ssh_key_parse.go | 3 +-- models/asymkey/ssh_key_principals.go | 3 +-- models/asymkey/ssh_key_test.go | 3 +-- models/asymkey/ssh_key_verify.go | 3 +-- models/auth/main_test.go | 3 +-- models/auth/oauth2.go | 3 +-- models/auth/oauth2_test.go | 3 +-- models/auth/session.go | 3 +-- models/auth/source.go | 3 +-- models/auth/source_test.go | 3 +-- models/auth/token.go | 3 +-- models/auth/token_test.go | 3 +-- models/auth/twofactor.go | 3 +-- models/auth/webauthn.go | 3 +-- models/auth/webauthn_test.go | 3 +-- models/avatars/avatar.go | 3 +-- models/avatars/avatar_test.go | 3 +-- models/avatars/main_test.go | 3 +-- models/db/common.go | 3 +-- models/db/consistency.go | 3 +-- models/db/context.go | 3 +-- models/db/context_test.go | 3 +-- models/db/convert.go | 3 +-- models/db/engine.go | 3 +-- models/db/engine_test.go | 3 +-- models/db/error.go | 3 +-- models/db/index.go | 3 +-- models/db/index_test.go | 3 +-- models/db/install/db.go | 3 +-- models/db/iterate.go | 3 +-- models/db/iterate_test.go | 3 +-- models/db/list_options.go | 3 +-- models/db/log.go | 3 +-- models/db/main_test.go | 3 +-- models/db/name.go | 3 +-- models/db/paginator/main_test.go | 3 +-- models/db/paginator/paginator.go | 3 +-- models/db/paginator/paginator_test.go | 3 +-- models/db/search.go | 3 +-- models/db/sequence.go | 3 +-- models/db/sql_postgres_with_schema.go | 3 +-- models/error.go | 3 +-- models/fixture_generation.go | 3 +-- models/fixture_test.go | 3 +-- models/foreignreference/error.go | 3 +-- models/foreignreference/foreignreference.go | 3 +-- models/git/branches.go | 3 +-- models/git/branches_test.go | 3 +-- models/git/commit_status.go | 3 +-- models/git/commit_status_test.go | 3 +-- models/git/lfs.go | 3 +-- models/git/lfs_lock.go | 3 +-- models/git/main_test.go | 3 +-- models/git/protected_tag.go | 3 +-- models/git/protected_tag_test.go | 3 +-- models/issues/assignees.go | 3 +-- models/issues/assignees_test.go | 3 +-- models/issues/comment.go | 3 +-- models/issues/comment_list.go | 3 +-- models/issues/comment_test.go | 3 +-- models/issues/content_history.go | 3 +-- models/issues/content_history_test.go | 3 +-- models/issues/dependency.go | 3 +-- models/issues/dependency_test.go | 3 +-- models/issues/issue.go | 3 +-- models/issues/issue_index.go | 3 +-- models/issues/issue_list.go | 3 +-- models/issues/issue_list_test.go | 3 +-- models/issues/issue_lock.go | 3 +-- models/issues/issue_project.go | 3 +-- models/issues/issue_test.go | 3 +-- models/issues/issue_user.go | 3 +-- models/issues/issue_user_test.go | 3 +-- models/issues/issue_watch.go | 3 +-- models/issues/issue_watch_test.go | 3 +-- models/issues/issue_xref.go | 3 +-- models/issues/issue_xref_test.go | 3 +-- models/issues/label.go | 3 +-- models/issues/label_test.go | 3 +-- models/issues/main_test.go | 3 +-- models/issues/milestone.go | 3 +-- models/issues/milestone_test.go | 3 +-- models/issues/pull.go | 3 +-- models/issues/pull_list.go | 3 +-- models/issues/pull_test.go | 3 +-- models/issues/reaction.go | 3 +-- models/issues/reaction_test.go | 3 +-- models/issues/review.go | 3 +-- models/issues/review_test.go | 3 +-- models/issues/stopwatch.go | 3 +-- models/issues/stopwatch_test.go | 3 +-- models/issues/tracked_time.go | 3 +-- models/issues/tracked_time_test.go | 3 +-- models/main_test.go | 3 +-- models/migrate.go | 3 +-- models/migrate_test.go | 3 +-- models/migrations/base/db.go | 3 +-- models/migrations/base/db_test.go | 3 +-- models/migrations/base/hash.go | 3 +-- models/migrations/base/main_test.go | 3 +-- models/migrations/base/testlogger.go | 3 +-- models/migrations/base/tests.go | 3 +-- models/migrations/migrations.go | 3 +-- models/migrations/v1_10/v100.go | 3 +-- models/migrations/v1_10/v101.go | 3 +-- models/migrations/v1_10/v88.go | 3 +-- models/migrations/v1_10/v89.go | 3 +-- models/migrations/v1_10/v90.go | 3 +-- models/migrations/v1_10/v91.go | 3 +-- models/migrations/v1_10/v92.go | 3 +-- models/migrations/v1_10/v93.go | 3 +-- models/migrations/v1_10/v94.go | 3 +-- models/migrations/v1_10/v95.go | 3 +-- models/migrations/v1_10/v96.go | 3 +-- models/migrations/v1_10/v97.go | 3 +-- models/migrations/v1_10/v98.go | 3 +-- models/migrations/v1_10/v99.go | 3 +-- models/migrations/v1_11/v102.go | 3 +-- models/migrations/v1_11/v103.go | 3 +-- models/migrations/v1_11/v104.go | 3 +-- models/migrations/v1_11/v105.go | 3 +-- models/migrations/v1_11/v106.go | 3 +-- models/migrations/v1_11/v107.go | 3 +-- models/migrations/v1_11/v108.go | 3 +-- models/migrations/v1_11/v109.go | 3 +-- models/migrations/v1_11/v110.go | 3 +-- models/migrations/v1_11/v111.go | 3 +-- models/migrations/v1_11/v112.go | 3 +-- models/migrations/v1_11/v113.go | 3 +-- models/migrations/v1_11/v114.go | 3 +-- models/migrations/v1_11/v115.go | 3 +-- models/migrations/v1_11/v116.go | 3 +-- models/migrations/v1_12/v117.go | 3 +-- models/migrations/v1_12/v118.go | 3 +-- models/migrations/v1_12/v119.go | 3 +-- models/migrations/v1_12/v120.go | 3 +-- models/migrations/v1_12/v121.go | 3 +-- models/migrations/v1_12/v122.go | 3 +-- models/migrations/v1_12/v123.go | 3 +-- models/migrations/v1_12/v124.go | 3 +-- models/migrations/v1_12/v125.go | 3 +-- models/migrations/v1_12/v126.go | 3 +-- models/migrations/v1_12/v127.go | 3 +-- models/migrations/v1_12/v128.go | 3 +-- models/migrations/v1_12/v129.go | 3 +-- models/migrations/v1_12/v130.go | 3 +-- models/migrations/v1_12/v131.go | 3 +-- models/migrations/v1_12/v132.go | 3 +-- models/migrations/v1_12/v133.go | 3 +-- models/migrations/v1_12/v134.go | 3 +-- models/migrations/v1_12/v135.go | 3 +-- models/migrations/v1_12/v136.go | 3 +-- models/migrations/v1_12/v137.go | 3 +-- models/migrations/v1_12/v138.go | 3 +-- models/migrations/v1_12/v139.go | 3 +-- models/migrations/v1_13/v140.go | 3 +-- models/migrations/v1_13/v141.go | 3 +-- models/migrations/v1_13/v142.go | 3 +-- models/migrations/v1_13/v143.go | 3 +-- models/migrations/v1_13/v144.go | 3 +-- models/migrations/v1_13/v145.go | 3 +-- models/migrations/v1_13/v146.go | 3 +-- models/migrations/v1_13/v147.go | 3 +-- models/migrations/v1_13/v148.go | 3 +-- models/migrations/v1_13/v149.go | 3 +-- models/migrations/v1_13/v150.go | 3 +-- models/migrations/v1_13/v151.go | 3 +-- models/migrations/v1_13/v152.go | 3 +-- models/migrations/v1_13/v153.go | 3 +-- models/migrations/v1_13/v154.go | 3 +-- models/migrations/v1_14/main_test.go | 3 +-- models/migrations/v1_14/v155.go | 3 +-- models/migrations/v1_14/v156.go | 3 +-- models/migrations/v1_14/v157.go | 3 +-- models/migrations/v1_14/v158.go | 3 +-- models/migrations/v1_14/v159.go | 3 +-- models/migrations/v1_14/v160.go | 3 +-- models/migrations/v1_14/v161.go | 3 +-- models/migrations/v1_14/v162.go | 3 +-- models/migrations/v1_14/v163.go | 3 +-- models/migrations/v1_14/v164.go | 3 +-- models/migrations/v1_14/v165.go | 3 +-- models/migrations/v1_14/v166.go | 3 +-- models/migrations/v1_14/v167.go | 3 +-- models/migrations/v1_14/v168.go | 3 +-- models/migrations/v1_14/v169.go | 3 +-- models/migrations/v1_14/v170.go | 3 +-- models/migrations/v1_14/v171.go | 3 +-- models/migrations/v1_14/v172.go | 3 +-- models/migrations/v1_14/v173.go | 3 +-- models/migrations/v1_14/v174.go | 3 +-- models/migrations/v1_14/v175.go | 3 +-- models/migrations/v1_14/v176.go | 3 +-- models/migrations/v1_14/v176_test.go | 3 +-- models/migrations/v1_14/v177.go | 3 +-- models/migrations/v1_14/v177_test.go | 3 +-- models/migrations/v1_15/main_test.go | 3 +-- models/migrations/v1_15/v178.go | 3 +-- models/migrations/v1_15/v179.go | 3 +-- models/migrations/v1_15/v180.go | 3 +-- models/migrations/v1_15/v181.go | 3 +-- models/migrations/v1_15/v181_test.go | 3 +-- models/migrations/v1_15/v182.go | 3 +-- models/migrations/v1_15/v182_test.go | 3 +-- models/migrations/v1_15/v183.go | 3 +-- models/migrations/v1_15/v184.go | 3 +-- models/migrations/v1_15/v185.go | 3 +-- models/migrations/v1_15/v186.go | 3 +-- models/migrations/v1_15/v187.go | 3 +-- models/migrations/v1_15/v188.go | 3 +-- models/migrations/v1_16/main_test.go | 3 +-- models/migrations/v1_16/v189.go | 3 +-- models/migrations/v1_16/v189_test.go | 3 +-- models/migrations/v1_16/v190.go | 3 +-- models/migrations/v1_16/v191.go | 3 +-- models/migrations/v1_16/v192.go | 3 +-- models/migrations/v1_16/v193.go | 3 +-- models/migrations/v1_16/v193_test.go | 3 +-- models/migrations/v1_16/v194.go | 3 +-- models/migrations/v1_16/v195.go | 3 +-- models/migrations/v1_16/v195_test.go | 3 +-- models/migrations/v1_16/v196.go | 3 +-- models/migrations/v1_16/v197.go | 3 +-- models/migrations/v1_16/v198.go | 3 +-- models/migrations/v1_16/v199.go | 3 +-- models/migrations/v1_16/v200.go | 3 +-- models/migrations/v1_16/v201.go | 3 +-- models/migrations/v1_16/v202.go | 3 +-- models/migrations/v1_16/v203.go | 3 +-- models/migrations/v1_16/v204.go | 3 +-- models/migrations/v1_16/v205.go | 3 +-- models/migrations/v1_16/v206.go | 3 +-- models/migrations/v1_16/v207.go | 3 +-- models/migrations/v1_16/v208.go | 3 +-- models/migrations/v1_16/v209.go | 3 +-- models/migrations/v1_16/v210.go | 3 +-- models/migrations/v1_16/v210_test.go | 3 +-- models/migrations/v1_17/main_test.go | 3 +-- models/migrations/v1_17/v211.go | 3 +-- models/migrations/v1_17/v212.go | 3 +-- models/migrations/v1_17/v213.go | 3 +-- models/migrations/v1_17/v214.go | 3 +-- models/migrations/v1_17/v215.go | 3 +-- models/migrations/v1_17/v216.go | 3 +-- models/migrations/v1_17/v217.go | 3 +-- models/migrations/v1_17/v218.go | 3 +-- models/migrations/v1_17/v219.go | 3 +-- models/migrations/v1_17/v220.go | 3 +-- models/migrations/v1_17/v221.go | 3 +-- models/migrations/v1_17/v221_test.go | 3 +-- models/migrations/v1_17/v222.go | 3 +-- models/migrations/v1_17/v223.go | 3 +-- models/migrations/v1_18/main_test.go | 3 +-- models/migrations/v1_18/v224.go | 3 +-- models/migrations/v1_18/v225.go | 3 +-- models/migrations/v1_18/v226.go | 3 +-- models/migrations/v1_18/v227.go | 3 +-- models/migrations/v1_18/v228.go | 3 +-- models/migrations/v1_18/v229.go | 3 +-- models/migrations/v1_18/v229_test.go | 3 +-- models/migrations/v1_18/v230.go | 3 +-- models/migrations/v1_18/v230_test.go | 3 +-- models/migrations/v1_19/main_test.go | 3 +-- models/migrations/v1_19/v231.go | 3 +-- models/migrations/v1_19/v232.go | 3 +-- models/migrations/v1_19/v233.go | 3 +-- models/migrations/v1_19/v233_test.go | 3 +-- models/migrations/v1_6/v70.go | 3 +-- models/migrations/v1_6/v71.go | 3 +-- models/migrations/v1_6/v72.go | 3 +-- models/migrations/v1_7/v73.go | 3 +-- models/migrations/v1_7/v74.go | 3 +-- models/migrations/v1_7/v75.go | 3 +-- models/migrations/v1_8/v76.go | 3 +-- models/migrations/v1_8/v77.go | 3 +-- models/migrations/v1_8/v78.go | 3 +-- models/migrations/v1_8/v79.go | 3 +-- models/migrations/v1_8/v80.go | 3 +-- models/migrations/v1_8/v81.go | 3 +-- models/migrations/v1_9/v82.go | 3 +-- models/migrations/v1_9/v83.go | 3 +-- models/migrations/v1_9/v84.go | 3 +-- models/migrations/v1_9/v85.go | 3 +-- models/migrations/v1_9/v86.go | 3 +-- models/migrations/v1_9/v87.go | 3 +-- models/org.go | 3 +-- models/org_team.go | 3 +-- models/org_team_test.go | 3 +-- models/org_test.go | 3 +-- models/organization/main_test.go | 3 +-- models/organization/mini_org.go | 3 +-- models/organization/org.go | 3 +-- models/organization/org_repo.go | 3 +-- models/organization/org_test.go | 3 +-- models/organization/org_user.go | 3 +-- models/organization/org_user_test.go | 3 +-- models/organization/team.go | 3 +-- models/organization/team_invite.go | 3 +-- models/organization/team_invite_test.go | 3 +-- models/organization/team_repo.go | 3 +-- models/organization/team_test.go | 3 +-- models/organization/team_unit.go | 3 +-- models/organization/team_user.go | 3 +-- models/packages/conan/references.go | 3 +-- models/packages/conan/search.go | 3 +-- models/packages/container/const.go | 3 +-- models/packages/container/search.go | 3 +-- models/packages/descriptor.go | 3 +-- models/packages/package.go | 3 +-- models/packages/package_blob.go | 3 +-- models/packages/package_blob_upload.go | 3 +-- models/packages/package_file.go | 3 +-- models/packages/package_property.go | 3 +-- models/packages/package_test.go | 3 +-- models/packages/package_version.go | 3 +-- models/perm/access/access.go | 3 +-- models/perm/access/access_test.go | 3 +-- models/perm/access/main_test.go | 3 +-- models/perm/access/repo_permission.go | 3 +-- models/perm/access_mode.go | 3 +-- models/project/board.go | 3 +-- models/project/issue.go | 3 +-- models/project/main_test.go | 3 +-- models/project/project.go | 3 +-- models/project/project_test.go | 3 +-- models/pull/automerge.go | 3 +-- models/pull/review_state.go | 4 ++-- models/repo.go | 3 +-- models/repo/archiver.go | 3 +-- models/repo/attachment.go | 3 +-- models/repo/attachment_test.go | 3 +-- models/repo/avatar.go | 3 +-- models/repo/collaboration.go | 3 +-- models/repo/collaboration_test.go | 3 +-- models/repo/fork.go | 3 +-- models/repo/fork_test.go | 3 +-- models/repo/git.go | 3 +-- models/repo/issue.go | 3 +-- models/repo/language_stats.go | 3 +-- models/repo/main_test.go | 3 +-- models/repo/mirror.go | 3 +-- models/repo/pushmirror.go | 3 +-- models/repo/pushmirror_test.go | 3 +-- models/repo/redirect.go | 3 +-- models/repo/redirect_test.go | 3 +-- models/repo/release.go | 3 +-- models/repo/repo.go | 3 +-- models/repo/repo_indexer.go | 3 +-- models/repo/repo_list.go | 3 +-- models/repo/repo_list_test.go | 3 +-- models/repo/repo_test.go | 3 +-- models/repo/repo_unit.go | 3 +-- models/repo/star.go | 3 +-- models/repo/star_test.go | 3 +-- models/repo/topic.go | 3 +-- models/repo/topic_test.go | 3 +-- models/repo/update.go | 3 +-- models/repo/upload.go | 3 +-- models/repo/user_repo.go | 3 +-- models/repo/user_repo_test.go | 3 +-- models/repo/watch.go | 3 +-- models/repo/watch_test.go | 3 +-- models/repo/wiki.go | 3 +-- models/repo/wiki_test.go | 3 +-- models/repo_collaboration.go | 3 +-- models/repo_collaboration_test.go | 3 +-- models/repo_test.go | 3 +-- models/repo_transfer.go | 3 +-- models/repo_transfer_test.go | 3 +-- models/system/appstate.go | 3 +-- models/system/main_test.go | 3 +-- models/system/notice.go | 3 +-- models/system/notice_test.go | 3 +-- models/system/setting.go | 3 +-- models/system/setting_key.go | 3 +-- models/system/setting_test.go | 3 +-- models/unit/unit.go | 3 +-- models/unittest/consistency.go | 3 +-- models/unittest/fixtures.go | 3 +-- models/unittest/fscopy.go | 3 +-- models/unittest/reflection.go | 3 +-- models/unittest/testdb.go | 3 +-- models/unittest/unit_tests.go | 3 +-- models/user.go | 3 +-- models/user/avatar.go | 3 +-- models/user/badge.go | 3 +-- models/user/email_address.go | 3 +-- models/user/email_address_test.go | 3 +-- models/user/error.go | 3 +-- models/user/external_login_user.go | 3 +-- models/user/follow.go | 3 +-- models/user/follow_test.go | 3 +-- models/user/list.go | 3 +-- models/user/main_test.go | 3 +-- models/user/openid.go | 3 +-- models/user/openid_test.go | 3 +-- models/user/redirect.go | 3 +-- models/user/redirect_test.go | 3 +-- models/user/search.go | 3 +-- models/user/setting.go | 3 +-- models/user/setting_keys.go | 3 +-- models/user/setting_test.go | 3 +-- models/user/user.go | 3 +-- models/user/user_test.go | 3 +-- models/user/user_update.go | 3 +-- models/webhook/hooktask.go | 3 +-- models/webhook/main_test.go | 3 +-- models/webhook/webhook.go | 3 +-- models/webhook/webhook_test.go | 3 +-- modules/activitypub/client.go | 3 +-- modules/activitypub/client_test.go | 3 +-- modules/activitypub/keypair.go | 3 +-- modules/activitypub/keypair_test.go | 3 +-- modules/activitypub/main_test.go | 3 +-- modules/activitypub/user_settings.go | 3 +-- modules/activitypub/user_settings_test.go | 3 +-- modules/analyze/code_langauge.go | 3 +-- modules/analyze/generated.go | 3 +-- modules/analyze/vendor.go | 3 +-- modules/analyze/vendor_test.go | 3 +-- modules/auth/openid/discovery_cache.go | 3 +-- modules/auth/openid/discovery_cache_test.go | 3 +-- modules/auth/openid/openid.go | 3 +-- modules/auth/pam/pam.go | 3 +-- modules/auth/pam/pam_stub.go | 3 +-- modules/auth/pam/pam_test.go | 3 +-- modules/auth/webauthn/webauthn.go | 3 +-- modules/auth/webauthn/webauthn_test.go | 3 +-- modules/avatar/avatar.go | 3 +-- modules/avatar/avatar_test.go | 3 +-- modules/avatar/identicon/block.go | 3 +-- modules/avatar/identicon/colors.go | 3 +-- modules/avatar/identicon/identicon.go | 3 +-- modules/avatar/identicon/identicon_test.go | 3 +-- modules/avatar/identicon/polygon.go | 3 +-- modules/base/base.go | 3 +-- modules/base/natural_sort.go | 3 +-- modules/base/natural_sort_test.go | 3 +-- modules/base/tool.go | 3 +-- modules/base/tool_test.go | 3 +-- modules/cache/cache.go | 3 +-- modules/cache/cache_redis.go | 3 +-- modules/cache/cache_test.go | 3 +-- modules/cache/cache_twoqueue.go | 3 +-- modules/charset/ambiguous.go | 3 +-- modules/charset/ambiguous/generate.go | 7 +++---- modules/charset/ambiguous_gen.go | 3 +-- modules/charset/ambiguous_gen_test.go | 3 +-- modules/charset/breakwriter.go | 3 +-- modules/charset/breakwriter_test.go | 3 +-- modules/charset/charset.go | 3 +-- modules/charset/charset_test.go | 3 +-- modules/charset/escape.go | 3 +-- modules/charset/escape_status.go | 3 +-- modules/charset/escape_stream.go | 3 +-- modules/charset/escape_test.go | 3 +-- modules/charset/htmlstream.go | 3 +-- modules/charset/invisible/generate.go | 7 +++---- modules/charset/invisible_gen.go | 3 +-- modules/container/set.go | 3 +-- modules/container/set_test.go | 3 +-- modules/context/access_log.go | 3 +-- modules/context/api.go | 3 +-- modules/context/api_org.go | 3 +-- modules/context/api_test.go | 3 +-- modules/context/auth.go | 3 +-- modules/context/captcha.go | 3 +-- modules/context/context.go | 3 +-- modules/context/form.go | 3 +-- modules/context/org.go | 3 +-- modules/context/package.go | 3 +-- modules/context/pagination.go | 3 +-- modules/context/permission.go | 3 +-- modules/context/private.go | 3 +-- modules/context/repo.go | 3 +-- modules/context/response.go | 3 +-- modules/context/utils.go | 3 +-- modules/convert/convert.go | 3 +-- modules/convert/git_commit.go | 3 +-- modules/convert/git_commit_test.go | 3 +-- modules/convert/issue.go | 3 +-- modules/convert/issue_comment.go | 3 +-- modules/convert/issue_test.go | 3 +-- modules/convert/main_test.go | 3 +-- modules/convert/mirror.go | 3 +-- modules/convert/notification.go | 3 +-- modules/convert/package.go | 3 +-- modules/convert/pull.go | 3 +-- modules/convert/pull_review.go | 3 +-- modules/convert/pull_test.go | 3 +-- modules/convert/release.go | 3 +-- modules/convert/repository.go | 3 +-- modules/convert/status.go | 3 +-- modules/convert/user.go | 3 +-- modules/convert/user_test.go | 3 +-- modules/convert/utils.go | 3 +-- modules/convert/utils_test.go | 3 +-- modules/convert/wiki.go | 3 +-- modules/csv/csv.go | 3 +-- modules/csv/csv_test.go | 3 +-- modules/doctor/authorizedkeys.go | 3 +-- modules/doctor/breaking.go | 3 +-- modules/doctor/checkOldArchives.go | 3 +-- modules/doctor/dbconsistency.go | 3 +-- modules/doctor/dbversion.go | 3 +-- modules/doctor/doctor.go | 3 +-- modules/doctor/fix16961.go | 3 +-- modules/doctor/fix16961_test.go | 3 +-- modules/doctor/heads.go | 3 +-- modules/doctor/mergebase.go | 3 +-- modules/doctor/misc.go | 3 +-- modules/doctor/paths.go | 3 +-- modules/doctor/storage.go | 3 +-- modules/doctor/usertype.go | 3 +-- modules/emoji/emoji.go | 3 +-- modules/emoji/emoji_data.go | 3 +-- modules/emoji/emoji_test.go | 3 +-- modules/eventsource/event.go | 3 +-- modules/eventsource/event_test.go | 3 +-- modules/eventsource/manager.go | 3 +-- modules/eventsource/manager_run.go | 3 +-- modules/eventsource/messenger.go | 3 +-- modules/generate/generate.go | 3 +-- modules/git/batch_reader.go | 3 +-- modules/git/blame.go | 3 +-- modules/git/blame_test.go | 3 +-- modules/git/blob.go | 3 +-- modules/git/blob_gogit.go | 3 +-- modules/git/blob_nogogit.go | 3 +-- modules/git/blob_test.go | 3 +-- modules/git/command.go | 3 +-- modules/git/command_race_test.go | 3 +-- modules/git/command_test.go | 3 +-- modules/git/commit.go | 3 +-- modules/git/commit_convert_gogit.go | 3 +-- modules/git/commit_info.go | 3 +-- modules/git/commit_info_gogit.go | 3 +-- modules/git/commit_info_nogogit.go | 3 +-- modules/git/commit_info_test.go | 3 +-- modules/git/commit_reader.go | 3 +-- modules/git/commit_test.go | 3 +-- modules/git/diff.go | 3 +-- modules/git/diff_test.go | 3 +-- modules/git/error.go | 3 +-- modules/git/foreachref/format.go | 3 +-- modules/git/foreachref/format_test.go | 3 +-- modules/git/foreachref/parser.go | 3 +-- modules/git/foreachref/parser_test.go | 3 +-- modules/git/git.go | 3 +-- modules/git/git_test.go | 3 +-- modules/git/hook.go | 3 +-- modules/git/last_commit_cache.go | 3 +-- modules/git/last_commit_cache_gogit.go | 3 +-- modules/git/last_commit_cache_nogogit.go | 3 +-- modules/git/log_name_status.go | 3 +-- modules/git/notes.go | 3 +-- modules/git/notes_gogit.go | 3 +-- modules/git/notes_nogogit.go | 3 +-- modules/git/notes_test.go | 3 +-- modules/git/parse_gogit.go | 3 +-- modules/git/parse_gogit_test.go | 3 +-- modules/git/parse_nogogit.go | 3 +-- modules/git/parse_nogogit_test.go | 3 +-- modules/git/pipeline/catfile.go | 3 +-- modules/git/pipeline/lfs.go | 3 +-- modules/git/pipeline/lfs_nogogit.go | 3 +-- modules/git/pipeline/namerev.go | 3 +-- modules/git/pipeline/revlist.go | 3 +-- modules/git/ref.go | 3 +-- modules/git/remote.go | 3 +-- modules/git/repo.go | 3 +-- modules/git/repo_archive.go | 3 +-- modules/git/repo_attribute.go | 3 +-- modules/git/repo_attribute_test.go | 3 +-- modules/git/repo_base.go | 3 +-- modules/git/repo_base_gogit.go | 3 +-- modules/git/repo_base_nogogit.go | 3 +-- modules/git/repo_blame.go | 3 +-- modules/git/repo_blob.go | 3 +-- modules/git/repo_blob_gogit.go | 3 +-- modules/git/repo_blob_nogogit.go | 3 +-- modules/git/repo_blob_test.go | 3 +-- modules/git/repo_branch.go | 3 +-- modules/git/repo_branch_gogit.go | 3 +-- modules/git/repo_branch_nogogit.go | 3 +-- modules/git/repo_branch_test.go | 3 +-- modules/git/repo_commit.go | 3 +-- modules/git/repo_commit_gogit.go | 3 +-- modules/git/repo_commit_nogogit.go | 3 +-- modules/git/repo_commit_test.go | 3 +-- modules/git/repo_commitgraph.go | 3 +-- modules/git/repo_commitgraph_gogit.go | 3 +-- modules/git/repo_compare.go | 3 +-- modules/git/repo_compare_test.go | 3 +-- modules/git/repo_gpg.go | 3 +-- modules/git/repo_hook.go | 3 +-- modules/git/repo_index.go | 3 +-- modules/git/repo_language_stats.go | 3 +-- modules/git/repo_language_stats_gogit.go | 3 +-- modules/git/repo_language_stats_nogogit.go | 3 +-- modules/git/repo_language_stats_test.go | 3 +-- modules/git/repo_object.go | 3 +-- modules/git/repo_ref.go | 3 +-- modules/git/repo_ref_gogit.go | 3 +-- modules/git/repo_ref_nogogit.go | 3 +-- modules/git/repo_ref_test.go | 3 +-- modules/git/repo_stats.go | 3 +-- modules/git/repo_stats_test.go | 3 +-- modules/git/repo_tag.go | 3 +-- modules/git/repo_tag_gogit.go | 3 +-- modules/git/repo_tag_nogogit.go | 3 +-- modules/git/repo_tag_test.go | 3 +-- modules/git/repo_test.go | 3 +-- modules/git/repo_tree.go | 3 +-- modules/git/repo_tree_gogit.go | 3 +-- modules/git/repo_tree_nogogit.go | 3 +-- modules/git/sha1.go | 3 +-- modules/git/sha1_gogit.go | 3 +-- modules/git/sha1_nogogit.go | 3 +-- modules/git/sha1_test.go | 3 +-- modules/git/signature.go | 3 +-- modules/git/signature_gogit.go | 3 +-- modules/git/signature_nogogit.go | 3 +-- modules/git/submodule.go | 3 +-- modules/git/submodule_test.go | 3 +-- modules/git/tag.go | 3 +-- modules/git/tag_test.go | 3 +-- modules/git/tree.go | 3 +-- modules/git/tree_blob.go | 3 +-- modules/git/tree_blob_gogit.go | 3 +-- modules/git/tree_blob_nogogit.go | 3 +-- modules/git/tree_entry.go | 3 +-- modules/git/tree_entry_gogit.go | 3 +-- modules/git/tree_entry_mode.go | 3 +-- modules/git/tree_entry_nogogit.go | 3 +-- modules/git/tree_entry_test.go | 3 +-- modules/git/tree_gogit.go | 3 +-- modules/git/tree_nogogit.go | 3 +-- modules/git/url/url.go | 3 +-- modules/git/url/url_test.go | 3 +-- modules/git/utils.go | 3 +-- modules/git/utils_test.go | 3 +-- modules/gitgraph/graph.go | 3 +-- modules/gitgraph/graph_models.go | 3 +-- modules/gitgraph/graph_test.go | 3 +-- modules/gitgraph/parser.go | 3 +-- modules/graceful/context.go | 3 +-- modules/graceful/manager.go | 3 +-- modules/graceful/manager_unix.go | 3 +-- modules/graceful/manager_windows.go | 3 +-- modules/graceful/net_unix.go | 4 ++-- modules/graceful/net_windows.go | 4 ++-- modules/graceful/restart_unix.go | 4 ++-- modules/graceful/server.go | 4 ++-- modules/graceful/server_hooks.go | 3 +-- modules/graceful/server_http.go | 3 +-- modules/hcaptcha/hcaptcha.go | 3 +-- modules/highlight/highlight.go | 3 +-- modules/highlight/highlight_test.go | 3 +-- modules/hostmatcher/hostmatcher.go | 3 +-- modules/hostmatcher/hostmatcher_test.go | 3 +-- modules/hostmatcher/http.go | 3 +-- modules/html/html.go | 3 +-- modules/httpcache/httpcache.go | 3 +-- modules/httpcache/httpcache_test.go | 3 +-- modules/httplib/httplib.go | 3 +-- modules/indexer/bleve/batch.go | 3 +-- modules/indexer/code/bleve.go | 3 +-- modules/indexer/code/bleve_test.go | 3 +-- modules/indexer/code/elastic_search.go | 3 +-- modules/indexer/code/elastic_search_test.go | 3 +-- modules/indexer/code/git.go | 3 +-- modules/indexer/code/indexer.go | 3 +-- modules/indexer/code/indexer_test.go | 3 +-- modules/indexer/code/search.go | 3 +-- modules/indexer/code/wrapped.go | 3 +-- modules/indexer/issues/bleve.go | 3 +-- modules/indexer/issues/bleve_test.go | 3 +-- modules/indexer/issues/db.go | 3 +-- modules/indexer/issues/elastic_search.go | 3 +-- modules/indexer/issues/indexer.go | 3 +-- modules/indexer/issues/indexer_test.go | 3 +-- modules/indexer/stats/db.go | 3 +-- modules/indexer/stats/indexer.go | 3 +-- modules/indexer/stats/indexer_test.go | 3 +-- modules/indexer/stats/queue.go | 3 +-- modules/issue/template/template.go | 3 +-- modules/issue/template/template_test.go | 3 +-- modules/issue/template/unmarshal.go | 3 +-- modules/json/json.go | 1 - modules/lfs/client.go | 3 +-- modules/lfs/client_test.go | 3 +-- modules/lfs/content_store.go | 3 +-- modules/lfs/endpoint.go | 3 +-- modules/lfs/endpoint_test.go | 3 +-- modules/lfs/filesystem_client.go | 3 +-- modules/lfs/http_client.go | 3 +-- modules/lfs/http_client_test.go | 3 +-- modules/lfs/pointer.go | 3 +-- modules/lfs/pointer_scanner_gogit.go | 3 +-- modules/lfs/pointer_scanner_nogogit.go | 3 +-- modules/lfs/pointer_test.go | 3 +-- modules/lfs/shared.go | 3 +-- modules/lfs/transferadapter.go | 3 +-- modules/lfs/transferadapter_test.go | 3 +-- modules/log/buffer.go | 3 +-- modules/log/buffer_test.go | 3 +-- modules/log/colors.go | 3 +-- modules/log/colors_router.go | 3 +-- modules/log/conn.go | 3 +-- modules/log/conn_test.go | 3 +-- modules/log/console.go | 3 +-- modules/log/console_other.go | 3 +-- modules/log/console_test.go | 3 +-- modules/log/console_windows.go | 3 +-- modules/log/errors.go | 3 +-- modules/log/event.go | 3 +-- modules/log/file.go | 3 +-- modules/log/file_test.go | 3 +-- modules/log/flags.go | 3 +-- modules/log/groutinelabel.go | 3 +-- modules/log/groutinelabel_test.go | 3 +-- modules/log/level.go | 3 +-- modules/log/level_test.go | 3 +-- modules/log/log.go | 3 +-- modules/log/log_test.go | 3 +-- modules/log/logger.go | 3 +-- modules/log/multichannel.go | 3 +-- modules/log/provider.go | 3 +-- modules/log/smtp.go | 3 +-- modules/log/smtp_test.go | 3 +-- modules/log/stack.go | 3 +-- modules/log/writer.go | 3 +-- modules/log/writer_test.go | 3 +-- modules/markup/camo.go | 3 +-- modules/markup/camo_test.go | 3 +-- modules/markup/common/footnote.go | 3 +-- modules/markup/common/html.go | 3 +-- modules/markup/common/linkify.go | 3 +-- modules/markup/console/console.go | 3 +-- modules/markup/console/console_test.go | 3 +-- modules/markup/csv/csv.go | 3 +-- modules/markup/csv/csv_test.go | 3 +-- modules/markup/external/external.go | 3 +-- modules/markup/html.go | 3 +-- modules/markup/html_internal_test.go | 4 ++-- modules/markup/html_test.go | 3 +-- modules/markup/markdown/ast.go | 3 +-- modules/markup/markdown/convertyaml.go | 3 +-- modules/markup/markdown/goldmark.go | 3 +-- modules/markup/markdown/markdown.go | 3 +-- modules/markup/markdown/markdown_test.go | 3 +-- modules/markup/markdown/math/block_node.go | 3 +-- modules/markup/markdown/math/block_parser.go | 3 +-- modules/markup/markdown/math/block_renderer.go | 3 +-- modules/markup/markdown/math/inline_node.go | 3 +-- modules/markup/markdown/math/inline_parser.go | 3 +-- modules/markup/markdown/math/inline_renderer.go | 3 +-- modules/markup/markdown/math/math.go | 3 +-- modules/markup/markdown/meta.go | 3 +-- modules/markup/markdown/meta_test.go | 3 +-- modules/markup/markdown/renderconfig.go | 3 +-- modules/markup/markdown/renderconfig_test.go | 3 +-- modules/markup/markdown/toc.go | 3 +-- modules/markup/mdstripper/mdstripper.go | 3 +-- modules/markup/mdstripper/mdstripper_test.go | 3 +-- modules/markup/orgmode/orgmode.go | 3 +-- modules/markup/orgmode/orgmode_test.go | 3 +-- modules/markup/renderer.go | 3 +-- modules/markup/renderer_test.go | 3 +-- modules/markup/sanitizer.go | 3 +-- modules/markup/sanitizer_test.go | 3 +-- modules/mcaptcha/mcaptcha.go | 3 +-- modules/metrics/collector.go | 3 +-- modules/migration/comment.go | 3 +-- modules/migration/downloader.go | 3 +-- modules/migration/error.go | 3 +-- modules/migration/file_format.go | 3 +-- modules/migration/file_format_test.go | 3 +-- modules/migration/issue.go | 3 +-- modules/migration/label.go | 3 +-- modules/migration/messenger.go | 3 +-- modules/migration/milestone.go | 3 +-- modules/migration/null_downloader.go | 3 +-- modules/migration/options.go | 3 +-- modules/migration/pullrequest.go | 3 +-- modules/migration/reaction.go | 3 +-- modules/migration/release.go | 3 +-- modules/migration/repo.go | 3 +-- modules/migration/retry_downloader.go | 3 +-- modules/migration/review.go | 3 +-- modules/migration/schemas_bindata.go | 3 +-- modules/migration/schemas_dynamic.go | 3 +-- modules/migration/schemas_static.go | 3 +-- modules/migration/uploader.go | 3 +-- modules/mirror/mirror.go | 3 +-- modules/nosql/leveldb.go | 3 +-- modules/nosql/manager.go | 3 +-- modules/nosql/manager_leveldb.go | 3 +-- modules/nosql/manager_redis.go | 3 +-- modules/nosql/manager_redis_test.go | 3 +-- modules/nosql/redis.go | 3 +-- modules/nosql/redis_test.go | 3 +-- modules/notification/action/action.go | 3 +-- modules/notification/action/action_test.go | 3 +-- modules/notification/base/notifier.go | 3 +-- modules/notification/base/null.go | 3 +-- modules/notification/indexer/indexer.go | 3 +-- modules/notification/mail/mail.go | 3 +-- modules/notification/mirror/mirror.go | 3 +-- modules/notification/notification.go | 3 +-- modules/notification/ui/ui.go | 3 +-- modules/notification/webhook/webhook.go | 3 +-- modules/options/base.go | 3 +-- modules/options/dynamic.go | 3 +-- modules/options/options.go | 3 +-- modules/options/options_bindata.go | 3 +-- modules/options/static.go | 3 +-- modules/packages/composer/metadata.go | 3 +-- modules/packages/composer/metadata_test.go | 3 +-- modules/packages/conan/conanfile_parser.go | 3 +-- modules/packages/conan/conanfile_parser_test.go | 3 +-- modules/packages/conan/conaninfo_parser.go | 3 +-- modules/packages/conan/conaninfo_parser_test.go | 3 +-- modules/packages/conan/metadata.go | 3 +-- modules/packages/conan/reference.go | 3 +-- modules/packages/conan/reference_test.go | 3 +-- modules/packages/container/helm/helm.go | 3 +-- modules/packages/container/metadata.go | 3 +-- modules/packages/container/metadata_test.go | 3 +-- modules/packages/container/oci/digest.go | 3 +-- modules/packages/container/oci/mediatype.go | 3 +-- modules/packages/container/oci/oci.go | 3 +-- modules/packages/container/oci/reference.go | 3 +-- modules/packages/content_store.go | 3 +-- modules/packages/hashed_buffer.go | 3 +-- modules/packages/hashed_buffer_test.go | 3 +-- modules/packages/helm/metadata.go | 3 +-- modules/packages/maven/metadata.go | 3 +-- modules/packages/maven/metadata_test.go | 3 +-- modules/packages/multi_hasher.go | 3 +-- modules/packages/multi_hasher_test.go | 3 +-- modules/packages/npm/creator.go | 3 +-- modules/packages/npm/creator_test.go | 3 +-- modules/packages/npm/metadata.go | 3 +-- modules/packages/nuget/metadata.go | 3 +-- modules/packages/nuget/metadata_test.go | 3 +-- modules/packages/nuget/symbol_extractor.go | 3 +-- modules/packages/nuget/symbol_extractor_test.go | 3 +-- modules/packages/pub/metadata.go | 3 +-- modules/packages/pub/metadata_test.go | 3 +-- modules/packages/pypi/metadata.go | 3 +-- modules/packages/rubygems/marshal.go | 3 +-- modules/packages/rubygems/marshal_test.go | 3 +-- modules/packages/rubygems/metadata.go | 3 +-- modules/packages/rubygems/metadata_test.go | 3 +-- modules/packages/vagrant/metadata.go | 3 +-- modules/packages/vagrant/metadata_test.go | 3 +-- modules/password/password.go | 3 +-- modules/password/password_test.go | 3 +-- modules/password/pwn.go | 3 +-- modules/pprof/pprof.go | 3 +-- modules/private/hook.go | 3 +-- modules/private/internal.go | 3 +-- modules/private/key.go | 3 +-- modules/private/mail.go | 3 +-- modules/private/manager.go | 3 +-- modules/private/restore_repo.go | 3 +-- modules/private/serv.go | 3 +-- modules/process/context.go | 3 +-- modules/process/error.go | 3 +-- modules/process/manager.go | 3 +-- modules/process/manager_exec.go | 3 +-- modules/process/manager_stacktraces.go | 3 +-- modules/process/manager_test.go | 3 +-- modules/process/manager_unix.go | 3 +-- modules/process/manager_windows.go | 3 +-- modules/process/process.go | 3 +-- modules/proxy/proxy.go | 3 +-- modules/proxyprotocol/conn.go | 3 +-- modules/proxyprotocol/errors.go | 3 +-- modules/proxyprotocol/listener.go | 3 +-- modules/proxyprotocol/util.go | 3 +-- modules/public/mime_types.go | 3 +-- modules/public/public.go | 3 +-- modules/public/public_bindata.go | 3 +-- modules/public/public_test.go | 3 +-- modules/public/serve_dynamic.go | 3 +-- modules/public/serve_static.go | 3 +-- modules/queue/bytefifo.go | 3 +-- modules/queue/helper.go | 3 +-- modules/queue/manager.go | 3 +-- modules/queue/queue.go | 3 +-- modules/queue/queue_bytefifo.go | 3 +-- modules/queue/queue_channel.go | 3 +-- modules/queue/queue_channel_test.go | 3 +-- modules/queue/queue_disk.go | 3 +-- modules/queue/queue_disk_channel.go | 3 +-- modules/queue/queue_disk_channel_test.go | 3 +-- modules/queue/queue_disk_test.go | 3 +-- modules/queue/queue_redis.go | 3 +-- modules/queue/queue_test.go | 3 +-- modules/queue/queue_wrapped.go | 3 +-- modules/queue/setting.go | 3 +-- modules/queue/unique_queue.go | 3 +-- modules/queue/unique_queue_channel.go | 3 +-- modules/queue/unique_queue_channel_test.go | 3 +-- modules/queue/unique_queue_disk.go | 3 +-- modules/queue/unique_queue_disk_channel.go | 3 +-- modules/queue/unique_queue_redis.go | 3 +-- modules/queue/unique_queue_wrapped.go | 3 +-- modules/queue/workerpool.go | 3 +-- modules/recaptcha/recaptcha.go | 3 +-- modules/references/references.go | 3 +-- modules/references/references_test.go | 3 +-- modules/regexplru/regexplru.go | 3 +-- modules/regexplru/regexplru_test.go | 3 +-- modules/repository/collaborator.go | 3 +-- modules/repository/collaborator_test.go | 3 +-- modules/repository/commits.go | 3 +-- modules/repository/commits_test.go | 3 +-- modules/repository/create.go | 3 +-- modules/repository/create_test.go | 3 +-- modules/repository/delete.go | 3 +-- modules/repository/env.go | 3 +-- modules/repository/fork.go | 3 +-- modules/repository/generate.go | 3 +-- modules/repository/generate_test.go | 3 +-- modules/repository/hooks.go | 3 +-- modules/repository/init.go | 3 +-- modules/repository/main_test.go | 3 +-- modules/repository/push.go | 3 +-- modules/repository/repo.go | 3 +-- modules/repository/temp.go | 3 +-- modules/secret/secret.go | 3 +-- modules/secret/secret_test.go | 3 +-- modules/session/db.go | 3 +-- modules/session/store.go | 3 +-- modules/session/virtual.go | 3 +-- modules/setting/attachment.go | 3 +-- modules/setting/cache.go | 3 +-- modules/setting/cors.go | 3 +-- modules/setting/cron.go | 3 +-- modules/setting/cron_test.go | 3 +-- modules/setting/database.go | 3 +-- modules/setting/database_sqlite.go | 3 +-- modules/setting/database_test.go | 3 +-- modules/setting/directory.go | 3 +-- modules/setting/federation.go | 3 +-- modules/setting/git.go | 3 +-- modules/setting/i18n.go | 3 +-- modules/setting/indexer.go | 3 +-- modules/setting/indexer_test.go | 3 +-- modules/setting/lfs.go | 3 +-- modules/setting/log.go | 3 +-- modules/setting/mailer.go | 3 +-- modules/setting/markup.go | 3 +-- modules/setting/migrations.go | 3 +-- modules/setting/mime_type_map.go | 3 +-- modules/setting/mirror.go | 3 +-- modules/setting/oauth2_client.go | 3 +-- modules/setting/packages.go | 3 +-- modules/setting/packages_test.go | 3 +-- modules/setting/picture.go | 3 +-- modules/setting/project.go | 3 +-- modules/setting/proxy.go | 3 +-- modules/setting/queue.go | 3 +-- modules/setting/repository.go | 3 +-- modules/setting/service.go | 3 +-- modules/setting/session.go | 3 +-- modules/setting/setting.go | 3 +-- modules/setting/setting_test.go | 3 +-- modules/setting/storage.go | 3 +-- modules/setting/storage_test.go | 3 +-- modules/setting/task.go | 3 +-- modules/setting/webhook.go | 3 +-- modules/sitemap/sitemap.go | 3 +-- modules/sitemap/sitemap_test.go | 3 +-- modules/ssh/init.go | 3 +-- modules/ssh/ssh.go | 3 +-- modules/ssh/ssh_graceful.go | 3 +-- modules/storage/helper.go | 3 +-- modules/storage/local.go | 3 +-- modules/storage/local_test.go | 3 +-- modules/storage/minio.go | 3 +-- modules/storage/storage.go | 3 +-- modules/structs/activitypub.go | 3 +-- modules/structs/admin_user.go | 3 +-- modules/structs/attachment.go | 3 +-- modules/structs/commit_status.go | 3 +-- modules/structs/cron.go | 3 +-- modules/structs/doc.go | 3 +-- modules/structs/fork.go | 3 +-- modules/structs/git_blob.go | 3 +-- modules/structs/git_hook.go | 3 +-- modules/structs/hook.go | 3 +-- modules/structs/issue.go | 3 +-- modules/structs/issue_comment.go | 3 +-- modules/structs/issue_label.go | 3 +-- modules/structs/issue_milestone.go | 3 +-- modules/structs/issue_reaction.go | 3 +-- modules/structs/issue_stopwatch.go | 3 +-- modules/structs/issue_test.go | 3 +-- modules/structs/issue_tracked_time.go | 3 +-- modules/structs/lfs_lock.go | 3 +-- modules/structs/mirror.go | 3 +-- modules/structs/miscellaneous.go | 3 +-- modules/structs/nodeinfo.go | 3 +-- modules/structs/notifications.go | 3 +-- modules/structs/org.go | 3 +-- modules/structs/org_member.go | 3 +-- modules/structs/org_team.go | 3 +-- modules/structs/org_type.go | 3 +-- modules/structs/package.go | 3 +-- modules/structs/pull.go | 3 +-- modules/structs/pull_review.go | 3 +-- modules/structs/release.go | 3 +-- modules/structs/repo.go | 3 +-- modules/structs/repo_branch.go | 3 +-- modules/structs/repo_collaborator.go | 3 +-- modules/structs/repo_commit.go | 3 +-- modules/structs/repo_file.go | 3 +-- modules/structs/repo_key.go | 3 +-- modules/structs/repo_note.go | 3 +-- modules/structs/repo_refs.go | 3 +-- modules/structs/repo_tag.go | 3 +-- modules/structs/repo_topic.go | 3 +-- modules/structs/repo_tree.go | 3 +-- modules/structs/repo_watch.go | 3 +-- modules/structs/repo_wiki.go | 3 +-- modules/structs/settings.go | 3 +-- modules/structs/status.go | 3 +-- modules/structs/task.go | 3 +-- modules/structs/user.go | 3 +-- modules/structs/user_app.go | 3 +-- modules/structs/user_email.go | 3 +-- modules/structs/user_gpgkey.go | 3 +-- modules/structs/user_key.go | 3 +-- modules/svg/discover_bindata.go | 3 +-- modules/svg/discover_nobindata.go | 3 +-- modules/svg/svg.go | 3 +-- modules/sync/exclusive_pool.go | 3 +-- modules/sync/status_pool.go | 3 +-- modules/sync/status_pool_test.go | 3 +-- modules/system/appstate.go | 3 +-- modules/system/appstate_test.go | 3 +-- modules/system/db.go | 3 +-- modules/system/item_runtime.go | 3 +-- modules/templates/base.go | 3 +-- modules/templates/dynamic.go | 3 +-- modules/templates/helper.go | 3 +-- modules/templates/helper_test.go | 3 +-- modules/templates/htmlrenderer.go | 3 +-- modules/templates/mailer.go | 3 +-- modules/templates/static.go | 3 +-- modules/templates/templates_bindata.go | 3 +-- modules/templates/vars/vars.go | 3 +-- modules/templates/vars/vars_test.go | 3 +-- modules/test/context_tests.go | 3 +-- modules/test/utils.go | 3 +-- modules/timeutil/executable.go | 3 +-- modules/timeutil/language.go | 3 +-- modules/timeutil/since.go | 3 +-- modules/timeutil/since_test.go | 3 +-- modules/timeutil/timestamp.go | 3 +-- modules/translation/i18n/errors.go | 3 +-- modules/translation/i18n/format.go | 3 +-- modules/translation/i18n/i18n.go | 3 +-- modules/translation/i18n/i18n_test.go | 3 +-- modules/translation/i18n/localestore.go | 3 +-- modules/translation/translation.go | 3 +-- modules/typesniffer/typesniffer.go | 3 +-- modules/typesniffer/typesniffer_test.go | 3 +-- modules/updatechecker/update_checker.go | 3 +-- modules/upload/upload.go | 3 +-- modules/upload/upload_test.go | 3 +-- modules/uri/uri.go | 3 +-- modules/uri/uri_test.go | 3 +-- modules/user/user.go | 3 +-- modules/user/user_test.go | 3 +-- modules/util/compare.go | 3 +-- modules/util/error.go | 3 +-- modules/util/file_unix.go | 3 +-- modules/util/file_unix_test.go | 3 +-- modules/util/file_windows.go | 3 +-- modules/util/filebuffer/file_backed_buffer.go | 3 +-- modules/util/filebuffer/file_backed_buffer_test.go | 3 +-- modules/util/io.go | 3 +-- modules/util/legacy.go | 3 +-- modules/util/legacy_test.go | 3 +-- modules/util/paginate.go | 3 +-- modules/util/paginate_test.go | 3 +-- modules/util/path.go | 3 +-- modules/util/path_test.go | 3 +-- modules/util/remove.go | 3 +-- modules/util/sanitize.go | 3 +-- modules/util/sanitize_test.go | 3 +-- modules/util/sec_to_time.go | 3 +-- modules/util/sec_to_time_test.go | 3 +-- modules/util/shellquote.go | 3 +-- modules/util/shellquote_test.go | 3 +-- modules/util/slice.go | 3 +-- modules/util/string.go | 3 +-- modules/util/string_test.go | 3 +-- modules/util/timer.go | 3 +-- modules/util/truncate.go | 3 +-- modules/util/truncate_test.go | 3 +-- modules/util/url.go | 3 +-- modules/util/util.go | 3 +-- modules/util/util_test.go | 3 +-- modules/validation/binding.go | 3 +-- modules/validation/binding_test.go | 3 +-- modules/validation/glob_pattern_test.go | 3 +-- modules/validation/helpers.go | 3 +-- modules/validation/helpers_test.go | 3 +-- modules/validation/refname_test.go | 3 +-- modules/validation/regex_pattern_test.go | 3 +-- modules/validation/validurl_test.go | 3 +-- modules/watcher/watcher.go | 3 +-- modules/web/middleware/binding.go | 3 +-- modules/web/middleware/cookie.go | 3 +-- modules/web/middleware/data.go | 3 +-- modules/web/middleware/flash.go | 3 +-- modules/web/middleware/locale.go | 3 +-- modules/web/middleware/request.go | 3 +-- modules/web/route.go | 3 +-- modules/web/route_test.go | 3 +-- modules/web/routing/context.go | 3 +-- modules/web/routing/funcinfo.go | 3 +-- modules/web/routing/funcinfo_test.go | 3 +-- modules/web/routing/logger.go | 3 +-- modules/web/routing/logger_manager.go | 3 +-- modules/web/routing/requestrecord.go | 3 +-- modules/web/wrap.go | 3 +-- modules/web/wrap_convert.go | 3 +-- routers/api/packages/api.go | 3 +-- routers/api/packages/composer/api.go | 3 +-- routers/api/packages/composer/composer.go | 3 +-- routers/api/packages/conan/auth.go | 3 +-- routers/api/packages/conan/conan.go | 3 +-- routers/api/packages/conan/search.go | 3 +-- routers/api/packages/container/auth.go | 3 +-- routers/api/packages/container/blob.go | 3 +-- routers/api/packages/container/container.go | 3 +-- routers/api/packages/container/errors.go | 3 +-- routers/api/packages/container/manifest.go | 3 +-- routers/api/packages/generic/generic.go | 3 +-- routers/api/packages/helm/helm.go | 3 +-- routers/api/packages/helper/helper.go | 3 +-- routers/api/packages/maven/api.go | 3 +-- routers/api/packages/maven/maven.go | 3 +-- routers/api/packages/npm/api.go | 3 +-- routers/api/packages/npm/npm.go | 3 +-- routers/api/packages/nuget/api_v2.go | 3 +-- routers/api/packages/nuget/api_v3.go | 3 +-- routers/api/packages/nuget/auth.go | 3 +-- routers/api/packages/nuget/links.go | 3 +-- routers/api/packages/nuget/nuget.go | 3 +-- routers/api/packages/pub/pub.go | 3 +-- routers/api/packages/pypi/pypi.go | 3 +-- routers/api/packages/pypi/pypi_test.go | 3 +-- routers/api/packages/rubygems/rubygems.go | 3 +-- routers/api/packages/vagrant/vagrant.go | 3 +-- routers/api/v1/activitypub/person.go | 3 +-- routers/api/v1/activitypub/reqsignature.go | 3 +-- routers/api/v1/admin/adopt.go | 3 +-- routers/api/v1/admin/cron.go | 3 +-- routers/api/v1/admin/org.go | 3 +-- routers/api/v1/admin/repo.go | 3 +-- routers/api/v1/admin/user.go | 3 +-- routers/api/v1/api.go | 3 +-- routers/api/v1/auth.go | 3 +-- routers/api/v1/auth_windows.go | 3 +-- routers/api/v1/misc/markdown.go | 3 +-- routers/api/v1/misc/markdown_test.go | 3 +-- routers/api/v1/misc/nodeinfo.go | 3 +-- routers/api/v1/misc/signing.go | 3 +-- routers/api/v1/misc/version.go | 3 +-- routers/api/v1/notify/notifications.go | 3 +-- routers/api/v1/notify/repo.go | 3 +-- routers/api/v1/notify/threads.go | 3 +-- routers/api/v1/notify/user.go | 3 +-- routers/api/v1/org/hook.go | 3 +-- routers/api/v1/org/label.go | 3 +-- routers/api/v1/org/member.go | 3 +-- routers/api/v1/org/org.go | 3 +-- routers/api/v1/org/team.go | 3 +-- routers/api/v1/packages/package.go | 3 +-- routers/api/v1/repo/blob.go | 3 +-- routers/api/v1/repo/branch.go | 3 +-- routers/api/v1/repo/collaborators.go | 3 +-- routers/api/v1/repo/commits.go | 3 +-- routers/api/v1/repo/file.go | 3 +-- routers/api/v1/repo/fork.go | 3 +-- routers/api/v1/repo/git_hook.go | 3 +-- routers/api/v1/repo/git_ref.go | 3 +-- routers/api/v1/repo/hook.go | 3 +-- routers/api/v1/repo/hook_test.go | 3 +-- routers/api/v1/repo/issue.go | 3 +-- routers/api/v1/repo/issue_comment.go | 3 +-- routers/api/v1/repo/issue_label.go | 3 +-- routers/api/v1/repo/issue_reaction.go | 3 +-- routers/api/v1/repo/issue_stopwatch.go | 3 +-- routers/api/v1/repo/issue_subscription.go | 3 +-- routers/api/v1/repo/issue_tracked_time.go | 3 +-- routers/api/v1/repo/key.go | 3 +-- routers/api/v1/repo/label.go | 3 +-- routers/api/v1/repo/language.go | 3 +-- routers/api/v1/repo/main_test.go | 3 +-- routers/api/v1/repo/migrate.go | 3 +-- routers/api/v1/repo/milestone.go | 3 +-- routers/api/v1/repo/mirror.go | 3 +-- routers/api/v1/repo/notes.go | 3 +-- routers/api/v1/repo/patch.go | 3 +-- routers/api/v1/repo/pull.go | 3 +-- routers/api/v1/repo/pull_review.go | 3 +-- routers/api/v1/repo/release.go | 3 +-- routers/api/v1/repo/release_attachment.go | 3 +-- routers/api/v1/repo/release_tags.go | 3 +-- routers/api/v1/repo/repo.go | 3 +-- routers/api/v1/repo/repo_test.go | 3 +-- routers/api/v1/repo/star.go | 3 +-- routers/api/v1/repo/status.go | 3 +-- routers/api/v1/repo/subscriber.go | 3 +-- routers/api/v1/repo/tag.go | 3 +-- routers/api/v1/repo/teams.go | 3 +-- routers/api/v1/repo/topic.go | 3 +-- routers/api/v1/repo/transfer.go | 3 +-- routers/api/v1/repo/tree.go | 3 +-- routers/api/v1/repo/wiki.go | 3 +-- routers/api/v1/settings/settings.go | 3 +-- routers/api/v1/swagger/activitypub.go | 3 +-- routers/api/v1/swagger/app.go | 3 +-- routers/api/v1/swagger/cron.go | 3 +-- routers/api/v1/swagger/issue.go | 3 +-- routers/api/v1/swagger/key.go | 3 +-- routers/api/v1/swagger/misc.go | 3 +-- routers/api/v1/swagger/nodeinfo.go | 3 +-- routers/api/v1/swagger/notify.go | 3 +-- routers/api/v1/swagger/options.go | 3 +-- routers/api/v1/swagger/org.go | 3 +-- routers/api/v1/swagger/package.go | 3 +-- routers/api/v1/swagger/repo.go | 3 +-- routers/api/v1/swagger/settings.go | 3 +-- routers/api/v1/swagger/user.go | 3 +-- routers/api/v1/user/app.go | 3 +-- routers/api/v1/user/email.go | 3 +-- routers/api/v1/user/follower.go | 3 +-- routers/api/v1/user/gpg_key.go | 3 +-- routers/api/v1/user/helper.go | 3 +-- routers/api/v1/user/key.go | 3 +-- routers/api/v1/user/repo.go | 3 +-- routers/api/v1/user/settings.go | 3 +-- routers/api/v1/user/star.go | 3 +-- routers/api/v1/user/user.go | 3 +-- routers/api/v1/user/watch.go | 3 +-- routers/api/v1/utils/git.go | 3 +-- routers/api/v1/utils/hook.go | 3 +-- routers/api/v1/utils/page.go | 3 +-- routers/common/db.go | 3 +-- routers/common/middleware.go | 3 +-- routers/common/repo.go | 3 +-- routers/init.go | 3 +-- routers/install/install.go | 3 +-- routers/install/routes.go | 3 +-- routers/install/routes_test.go | 3 +-- routers/install/setting.go | 3 +-- routers/private/default_branch.go | 3 +-- routers/private/hook_post_receive.go | 3 +-- routers/private/hook_pre_receive.go | 3 +-- routers/private/hook_proc_receive.go | 3 +-- routers/private/hook_verification.go | 3 +-- routers/private/internal.go | 3 +-- routers/private/internal_repo.go | 3 +-- routers/private/key.go | 3 +-- routers/private/mail.go | 3 +-- routers/private/manager.go | 3 +-- routers/private/manager_process.go | 3 +-- routers/private/manager_unix.go | 3 +-- routers/private/manager_windows.go | 3 +-- routers/private/restore_repo.go | 3 +-- routers/private/serv.go | 3 +-- routers/private/ssh_log.go | 3 +-- routers/utils/utils.go | 3 +-- routers/utils/utils_test.go | 3 +-- routers/web/admin/admin.go | 3 +-- routers/web/admin/admin_test.go | 3 +-- routers/web/admin/applications.go | 3 +-- routers/web/admin/auths.go | 3 +-- routers/web/admin/config.go | 3 +-- routers/web/admin/emails.go | 3 +-- routers/web/admin/hooks.go | 3 +-- routers/web/admin/main_test.go | 3 +-- routers/web/admin/notice.go | 3 +-- routers/web/admin/orgs.go | 3 +-- routers/web/admin/packages.go | 3 +-- routers/web/admin/repos.go | 3 +-- routers/web/admin/users.go | 3 +-- routers/web/admin/users_test.go | 3 +-- routers/web/auth.go | 3 +-- routers/web/auth/2fa.go | 3 +-- routers/web/auth/auth.go | 3 +-- routers/web/auth/linkaccount.go | 3 +-- routers/web/auth/main_test.go | 3 +-- routers/web/auth/oauth.go | 3 +-- routers/web/auth/oauth_test.go | 3 +-- routers/web/auth/openid.go | 3 +-- routers/web/auth/password.go | 3 +-- routers/web/auth/webauthn.go | 3 +-- routers/web/auth_windows.go | 3 +-- routers/web/base.go | 3 +-- routers/web/events/events.go | 3 +-- routers/web/explore/code.go | 3 +-- routers/web/explore/org.go | 3 +-- routers/web/explore/repo.go | 3 +-- routers/web/explore/topic.go | 3 +-- routers/web/explore/user.go | 3 +-- routers/web/feed/convert.go | 3 +-- routers/web/feed/profile.go | 3 +-- routers/web/feed/repo.go | 3 +-- routers/web/goget.go | 3 +-- routers/web/healthcheck/check.go | 3 +-- routers/web/home.go | 3 +-- routers/web/metrics.go | 3 +-- routers/web/misc/markdown.go | 3 +-- routers/web/misc/swagger.go | 3 +-- routers/web/nodeinfo.go | 3 +-- routers/web/org/home.go | 3 +-- routers/web/org/members.go | 3 +-- routers/web/org/org.go | 3 +-- routers/web/org/org_labels.go | 3 +-- routers/web/org/setting.go | 3 +-- routers/web/org/setting_oauth2.go | 3 +-- routers/web/org/teams.go | 3 +-- routers/web/repo/activity.go | 3 +-- routers/web/repo/attachment.go | 3 +-- routers/web/repo/blame.go | 3 +-- routers/web/repo/branch.go | 3 +-- routers/web/repo/cherry_pick.go | 3 +-- routers/web/repo/commit.go | 3 +-- routers/web/repo/compare.go | 3 +-- routers/web/repo/download.go | 3 +-- routers/web/repo/editor.go | 3 +-- routers/web/repo/editor_test.go | 3 +-- routers/web/repo/find.go | 3 +-- routers/web/repo/http.go | 3 +-- routers/web/repo/http_test.go | 3 +-- routers/web/repo/issue.go | 3 +-- routers/web/repo/issue_content_history.go | 3 +-- routers/web/repo/issue_dependency.go | 3 +-- routers/web/repo/issue_label.go | 3 +-- routers/web/repo/issue_label_test.go | 3 +-- routers/web/repo/issue_lock.go | 3 +-- routers/web/repo/issue_stopwatch.go | 3 +-- routers/web/repo/issue_test.go | 3 +-- routers/web/repo/issue_timetrack.go | 3 +-- routers/web/repo/issue_watch.go | 3 +-- routers/web/repo/lfs.go | 3 +-- routers/web/repo/main_test.go | 3 +-- routers/web/repo/middlewares.go | 3 +-- routers/web/repo/migrate.go | 3 +-- routers/web/repo/milestone.go | 3 +-- routers/web/repo/packages.go | 3 +-- routers/web/repo/patch.go | 3 +-- routers/web/repo/projects.go | 3 +-- routers/web/repo/projects_test.go | 3 +-- routers/web/repo/pull.go | 3 +-- routers/web/repo/pull_review.go | 3 +-- routers/web/repo/release.go | 3 +-- routers/web/repo/release_test.go | 3 +-- routers/web/repo/render.go | 3 +-- routers/web/repo/repo.go | 3 +-- routers/web/repo/search.go | 3 +-- routers/web/repo/setting.go | 3 +-- routers/web/repo/setting_protected_branch.go | 3 +-- routers/web/repo/settings_test.go | 3 +-- routers/web/repo/tag.go | 3 +-- routers/web/repo/topic.go | 3 +-- routers/web/repo/treelist.go | 3 +-- routers/web/repo/view.go | 3 +-- routers/web/repo/view_test.go | 3 +-- routers/web/repo/webhook.go | 3 +-- routers/web/repo/wiki.go | 3 +-- routers/web/repo/wiki_test.go | 3 +-- routers/web/swagger_json.go | 3 +-- routers/web/user/avatar.go | 3 +-- routers/web/user/code.go | 3 +-- routers/web/user/home.go | 3 +-- routers/web/user/home_test.go | 3 +-- routers/web/user/main_test.go | 3 +-- routers/web/user/notification.go | 3 +-- routers/web/user/package.go | 3 +-- routers/web/user/profile.go | 3 +-- routers/web/user/search.go | 3 +-- routers/web/user/setting/account.go | 3 +-- routers/web/user/setting/account_test.go | 3 +-- routers/web/user/setting/adopt.go | 3 +-- routers/web/user/setting/applications.go | 3 +-- routers/web/user/setting/keys.go | 3 +-- routers/web/user/setting/main_test.go | 3 +-- routers/web/user/setting/oauth2.go | 3 +-- routers/web/user/setting/oauth2_common.go | 3 +-- routers/web/user/setting/profile.go | 3 +-- routers/web/user/setting/security/2fa.go | 3 +-- routers/web/user/setting/security/openid.go | 3 +-- routers/web/user/setting/security/security.go | 3 +-- routers/web/user/setting/security/webauthn.go | 3 +-- routers/web/user/stop_watch.go | 3 +-- routers/web/user/task.go | 3 +-- routers/web/web.go | 3 +-- routers/web/webfinger.go | 3 +-- services/agit/agit.go | 3 +-- services/asymkey/deploy_key.go | 3 +-- services/asymkey/main_test.go | 3 +-- services/asymkey/sign.go | 3 +-- services/asymkey/ssh_key.go | 3 +-- services/asymkey/ssh_key_test.go | 3 +-- services/attachment/attachment.go | 3 +-- services/attachment/attachment_test.go | 3 +-- services/auth/auth.go | 3 +-- services/auth/auth_test.go | 3 +-- services/auth/basic.go | 3 +-- services/auth/group.go | 3 +-- services/auth/httpsign.go | 3 +-- services/auth/interface.go | 3 +-- services/auth/oauth2.go | 3 +-- services/auth/reverseproxy.go | 3 +-- services/auth/session.go | 3 +-- services/auth/signin.go | 3 +-- services/auth/source.go | 3 +-- services/auth/source/db/assert_interface_test.go | 3 +-- services/auth/source/db/authenticate.go | 3 +-- services/auth/source/db/source.go | 3 +-- services/auth/source/ldap/assert_interface_test.go | 3 +-- services/auth/source/ldap/security_protocol.go | 3 +-- services/auth/source/ldap/source.go | 3 +-- services/auth/source/ldap/source_authenticate.go | 3 +-- services/auth/source/ldap/source_group_sync.go | 3 +-- services/auth/source/ldap/source_search.go | 3 +-- services/auth/source/ldap/source_sync.go | 3 +-- services/auth/source/ldap/util.go | 3 +-- services/auth/source/oauth2/assert_interface_test.go | 3 +-- services/auth/source/oauth2/init.go | 3 +-- services/auth/source/oauth2/jwtsigningkey.go | 3 +-- services/auth/source/oauth2/providers.go | 3 +-- services/auth/source/oauth2/providers_base.go | 3 +-- services/auth/source/oauth2/providers_custom.go | 3 +-- services/auth/source/oauth2/providers_openid.go | 3 +-- services/auth/source/oauth2/providers_simple.go | 3 +-- services/auth/source/oauth2/source.go | 3 +-- services/auth/source/oauth2/source_authenticate.go | 3 +-- services/auth/source/oauth2/source_callout.go | 3 +-- services/auth/source/oauth2/source_name.go | 3 +-- services/auth/source/oauth2/source_register.go | 3 +-- services/auth/source/oauth2/store.go | 3 +-- services/auth/source/oauth2/token.go | 3 +-- services/auth/source/oauth2/urlmapping.go | 3 +-- services/auth/source/pam/assert_interface_test.go | 3 +-- services/auth/source/pam/source.go | 3 +-- services/auth/source/pam/source_authenticate.go | 3 +-- services/auth/source/smtp/assert_interface_test.go | 3 +-- services/auth/source/smtp/auth.go | 3 +-- services/auth/source/smtp/source.go | 3 +-- services/auth/source/smtp/source_authenticate.go | 3 +-- services/auth/source/sspi/assert_interface_test.go | 3 +-- services/auth/source/sspi/source.go | 3 +-- services/auth/sspi_windows.go | 3 +-- services/auth/sync.go | 3 +-- services/automerge/automerge.go | 3 +-- services/comments/comments.go | 3 +-- services/context/user.go | 3 +-- services/cron/cron.go | 3 +-- services/cron/setting.go | 3 +-- services/cron/tasks.go | 3 +-- services/cron/tasks_basic.go | 3 +-- services/cron/tasks_extended.go | 3 +-- services/externalaccount/link.go | 3 +-- services/externalaccount/user.go | 3 +-- services/forms/admin.go | 3 +-- services/forms/auth_form.go | 3 +-- services/forms/org.go | 3 +-- services/forms/repo_branch_form.go | 3 +-- services/forms/repo_form.go | 3 +-- services/forms/repo_form_test.go | 3 +-- services/forms/repo_tag_form.go | 3 +-- services/forms/user_form.go | 3 +-- services/forms/user_form_auth_openid.go | 3 +-- services/forms/user_form_hidden_comments.go | 3 +-- services/forms/user_form_test.go | 3 +-- services/gitdiff/csv.go | 3 +-- services/gitdiff/csv_test.go | 3 +-- services/gitdiff/gitdiff.go | 3 +-- services/gitdiff/gitdiff_test.go | 3 +-- services/gitdiff/highlightdiff.go | 3 +-- services/gitdiff/highlightdiff_test.go | 3 +-- services/gitdiff/main_test.go | 3 +-- services/issue/assignee.go | 3 +-- services/issue/assignee_test.go | 3 +-- services/issue/commit.go | 3 +-- services/issue/commit_test.go | 3 +-- services/issue/content.go | 3 +-- services/issue/issue.go | 3 +-- services/issue/issue_test.go | 3 +-- services/issue/label.go | 3 +-- services/issue/label_test.go | 3 +-- services/issue/main_test.go | 3 +-- services/issue/milestone.go | 3 +-- services/issue/milestone_test.go | 3 +-- services/issue/status.go | 3 +-- services/lfs/locks.go | 3 +-- services/lfs/server.go | 3 +-- services/mailer/mail.go | 3 +-- services/mailer/mail_comment.go | 3 +-- services/mailer/mail_issue.go | 3 +-- services/mailer/mail_release.go | 3 +-- services/mailer/mail_repo.go | 3 +-- services/mailer/mail_team_invite.go | 3 +-- services/mailer/mail_test.go | 3 +-- services/mailer/mailer.go | 3 +-- services/mailer/mailer_test.go | 3 +-- services/mailer/main_test.go | 3 +-- services/markup/main_test.go | 3 +-- services/markup/processorhelper.go | 3 +-- services/markup/processorhelper_test.go | 3 +-- services/migrations/codebase.go | 3 +-- services/migrations/codebase_test.go | 3 +-- services/migrations/common.go | 3 +-- services/migrations/dump.go | 3 +-- services/migrations/error.go | 3 +-- services/migrations/git.go | 3 +-- services/migrations/gitbucket.go | 3 +-- services/migrations/gitea_downloader.go | 3 +-- services/migrations/gitea_downloader_test.go | 3 +-- services/migrations/gitea_uploader.go | 3 +-- services/migrations/gitea_uploader_test.go | 3 +-- services/migrations/github.go | 3 +-- services/migrations/github_test.go | 3 +-- services/migrations/gitlab.go | 3 +-- services/migrations/gitlab_test.go | 3 +-- services/migrations/gogs.go | 3 +-- services/migrations/gogs_test.go | 3 +-- services/migrations/http_client.go | 3 +-- services/migrations/main_test.go | 3 +-- services/migrations/migrate.go | 3 +-- services/migrations/migrate_test.go | 3 +-- services/migrations/onedev.go | 3 +-- services/migrations/onedev_test.go | 3 +-- services/migrations/restore.go | 3 +-- services/migrations/update.go | 3 +-- services/mirror/mirror.go | 3 +-- services/mirror/mirror_pull.go | 3 +-- services/mirror/mirror_push.go | 3 +-- services/org/org.go | 3 +-- services/org/org_test.go | 3 +-- services/org/repo.go | 3 +-- services/org/repo_test.go | 3 +-- services/org/team_invite.go | 3 +-- services/packages/auth.go | 3 +-- services/packages/container/blob_uploader.go | 3 +-- services/packages/container/cleanup.go | 3 +-- services/packages/packages.go | 3 +-- services/pull/check.go | 3 +-- services/pull/check_test.go | 3 +-- services/pull/commit_status.go | 3 +-- services/pull/edits.go | 3 +-- services/pull/lfs.go | 3 +-- services/pull/main_test.go | 3 +-- services/pull/merge.go | 3 +-- services/pull/patch.go | 3 +-- services/pull/patch_unmerged.go | 3 +-- services/pull/pull.go | 3 +-- services/pull/pull_test.go | 3 +-- services/pull/review.go | 3 +-- services/pull/temp_repo.go | 3 +-- services/pull/update.go | 3 +-- services/release/release.go | 3 +-- services/release/release_test.go | 3 +-- services/repository/adopt.go | 3 +-- services/repository/adopt_test.go | 3 +-- services/repository/archiver/archiver.go | 3 +-- services/repository/archiver/archiver_test.go | 3 +-- services/repository/avatar.go | 3 +-- services/repository/avatar_test.go | 3 +-- services/repository/branch.go | 3 +-- services/repository/cache.go | 3 +-- services/repository/check.go | 3 +-- services/repository/files/cherry_pick.go | 3 +-- services/repository/files/commit.go | 3 +-- services/repository/files/content.go | 3 +-- services/repository/files/content_test.go | 3 +-- services/repository/files/delete.go | 3 +-- services/repository/files/diff.go | 3 +-- services/repository/files/diff_test.go | 3 +-- services/repository/files/file.go | 3 +-- services/repository/files/file_test.go | 3 +-- services/repository/files/patch.go | 3 +-- services/repository/files/temp_repo.go | 3 +-- services/repository/files/tree.go | 3 +-- services/repository/files/tree_test.go | 3 +-- services/repository/files/update.go | 3 +-- services/repository/files/upload.go | 3 +-- services/repository/fork.go | 3 +-- services/repository/fork_test.go | 3 +-- services/repository/hooks.go | 3 +-- services/repository/main_test.go | 3 +-- services/repository/push.go | 3 +-- services/repository/repository.go | 3 +-- services/repository/repository_test.go | 3 +-- services/repository/review.go | 3 +-- services/repository/review_test.go | 3 +-- services/repository/template.go | 3 +-- services/repository/transfer.go | 3 +-- services/repository/transfer_test.go | 3 +-- services/task/migrate.go | 3 +-- services/task/task.go | 3 +-- services/user/user.go | 3 +-- services/user/user_test.go | 3 +-- services/webhook/deliver.go | 3 +-- services/webhook/deliver_test.go | 3 +-- services/webhook/dingtalk.go | 3 +-- services/webhook/dingtalk_test.go | 3 +-- services/webhook/discord.go | 3 +-- services/webhook/discord_test.go | 3 +-- services/webhook/feishu.go | 3 +-- services/webhook/feishu_test.go | 3 +-- services/webhook/general.go | 3 +-- services/webhook/general_test.go | 3 +-- services/webhook/main_test.go | 3 +-- services/webhook/matrix.go | 3 +-- services/webhook/matrix_test.go | 3 +-- services/webhook/msteams.go | 3 +-- services/webhook/msteams_test.go | 3 +-- services/webhook/packagist.go | 3 +-- services/webhook/packagist_test.go | 3 +-- services/webhook/payloader.go | 3 +-- services/webhook/slack.go | 3 +-- services/webhook/slack_test.go | 3 +-- services/webhook/telegram.go | 3 +-- services/webhook/telegram_test.go | 3 +-- services/webhook/webhook.go | 3 +-- services/webhook/webhook_test.go | 3 +-- services/webhook/wechatwork.go | 3 +-- services/wiki/wiki.go | 3 +-- services/wiki/wiki_test.go | 3 +-- tests/e2e/e2e_test.go | 3 +-- tests/e2e/utils_e2e_test.go | 3 +-- tests/integration/admin_user_test.go | 3 +-- tests/integration/api_activitypub_person_test.go | 3 +-- tests/integration/api_admin_org_test.go | 3 +-- tests/integration/api_admin_test.go | 3 +-- tests/integration/api_branch_test.go | 3 +-- tests/integration/api_comment_test.go | 3 +-- tests/integration/api_feed_user_test.go | 3 +-- tests/integration/api_fork_test.go | 3 +-- tests/integration/api_gpg_keys_test.go | 3 +-- tests/integration/api_helper_for_declarative_test.go | 3 +-- tests/integration/api_httpsig_test.go | 3 +-- tests/integration/api_issue_label_test.go | 3 +-- tests/integration/api_issue_milestone_test.go | 3 +-- tests/integration/api_issue_reaction_test.go | 3 +-- tests/integration/api_issue_stopwatch_test.go | 3 +-- tests/integration/api_issue_subscription_test.go | 3 +-- tests/integration/api_issue_test.go | 3 +-- tests/integration/api_issue_tracked_time_test.go | 3 +-- tests/integration/api_keys_test.go | 3 +-- tests/integration/api_nodeinfo_test.go | 3 +-- tests/integration/api_notification_test.go | 3 +-- tests/integration/api_oauth2_apps_test.go | 3 +-- tests/integration/api_org_test.go | 3 +-- tests/integration/api_packages_composer_test.go | 3 +-- tests/integration/api_packages_conan_test.go | 3 +-- tests/integration/api_packages_container_test.go | 3 +-- tests/integration/api_packages_generic_test.go | 3 +-- tests/integration/api_packages_helm_test.go | 3 +-- tests/integration/api_packages_maven_test.go | 3 +-- tests/integration/api_packages_npm_test.go | 3 +-- tests/integration/api_packages_nuget_test.go | 3 +-- tests/integration/api_packages_pub_test.go | 3 +-- tests/integration/api_packages_pypi_test.go | 3 +-- tests/integration/api_packages_rubygems_test.go | 3 +-- tests/integration/api_packages_test.go | 3 +-- tests/integration/api_packages_vagrant_test.go | 3 +-- tests/integration/api_private_serv_test.go | 3 +-- tests/integration/api_pull_commits_test.go | 3 +-- tests/integration/api_pull_review_test.go | 3 +-- tests/integration/api_pull_test.go | 3 +-- tests/integration/api_releases_test.go | 3 +-- tests/integration/api_repo_archive_test.go | 3 +-- tests/integration/api_repo_collaborator_test.go | 3 +-- tests/integration/api_repo_edit_test.go | 3 +-- tests/integration/api_repo_file_create_test.go | 3 +-- tests/integration/api_repo_file_delete_test.go | 3 +-- tests/integration/api_repo_file_get_test.go | 3 +-- tests/integration/api_repo_file_helpers.go | 3 +-- tests/integration/api_repo_file_update_test.go | 3 +-- tests/integration/api_repo_get_contents_list_test.go | 3 +-- tests/integration/api_repo_get_contents_test.go | 3 +-- tests/integration/api_repo_git_blobs_test.go | 3 +-- tests/integration/api_repo_git_commits_test.go | 3 +-- tests/integration/api_repo_git_hook_test.go | 3 +-- tests/integration/api_repo_git_notes_test.go | 3 +-- tests/integration/api_repo_git_ref_test.go | 3 +-- tests/integration/api_repo_git_tags_test.go | 3 +-- tests/integration/api_repo_git_trees_test.go | 3 +-- tests/integration/api_repo_hook_test.go | 3 +-- tests/integration/api_repo_languages_test.go | 3 +-- tests/integration/api_repo_lfs_locks_test.go | 3 +-- tests/integration/api_repo_lfs_migrate_test.go | 3 +-- tests/integration/api_repo_lfs_test.go | 3 +-- tests/integration/api_repo_raw_test.go | 3 +-- tests/integration/api_repo_tags_test.go | 3 +-- tests/integration/api_repo_teams_test.go | 3 +-- tests/integration/api_repo_test.go | 3 +-- tests/integration/api_repo_topic_test.go | 3 +-- tests/integration/api_settings_test.go | 3 +-- tests/integration/api_team_test.go | 3 +-- tests/integration/api_team_user_test.go | 3 +-- tests/integration/api_token_test.go | 3 +-- tests/integration/api_user_email_test.go | 3 +-- tests/integration/api_user_follow_test.go | 3 +-- tests/integration/api_user_heatmap_test.go | 3 +-- tests/integration/api_user_info_test.go | 3 +-- tests/integration/api_user_org_perm_test.go | 3 +-- tests/integration/api_user_orgs_test.go | 3 +-- tests/integration/api_user_search_test.go | 3 +-- tests/integration/api_user_star_test.go | 3 +-- tests/integration/api_user_watch_test.go | 3 +-- tests/integration/api_wiki_test.go | 3 +-- tests/integration/attachment_test.go | 3 +-- tests/integration/auth_ldap_test.go | 3 +-- tests/integration/benchmarks_test.go | 3 +-- tests/integration/branches_test.go | 3 +-- tests/integration/change_default_branch_test.go | 3 +-- tests/integration/cmd_keys_test.go | 3 +-- tests/integration/compare_test.go | 3 +-- tests/integration/cors_test.go | 3 +-- tests/integration/create_no_session_test.go | 3 +-- tests/integration/csrf_test.go | 3 +-- tests/integration/delete_user_test.go | 3 +-- tests/integration/download_test.go | 3 +-- tests/integration/dump_restore_test.go | 3 +-- tests/integration/editor_test.go | 3 +-- tests/integration/empty_repo_test.go | 3 +-- tests/integration/eventsource_test.go | 3 +-- tests/integration/explore_repos_test.go | 3 +-- tests/integration/git_clone_wiki_test.go | 3 +-- tests/integration/git_helper_for_declarative_test.go | 3 +-- tests/integration/git_smart_http_test.go | 3 +-- tests/integration/git_test.go | 3 +-- tests/integration/goget_test.go | 3 +-- tests/integration/gpg_git_test.go | 3 +-- tests/integration/html_helper.go | 3 +-- tests/integration/integration_test.go | 3 +-- tests/integration/issue_test.go | 3 +-- tests/integration/lfs_getobject_test.go | 3 +-- tests/integration/lfs_local_endpoint_test.go | 3 +-- tests/integration/links_test.go | 3 +-- tests/integration/migrate_test.go | 3 +-- tests/integration/migration-test/migration_test.go | 3 +-- tests/integration/mirror_pull_test.go | 3 +-- tests/integration/mirror_push_test.go | 3 +-- tests/integration/nonascii_branches_test.go | 3 +-- tests/integration/oauth_test.go | 3 +-- tests/integration/org_count_test.go | 3 +-- tests/integration/org_team_invite_test.go | 3 +-- tests/integration/org_test.go | 3 +-- tests/integration/privateactivity_test.go | 3 +-- tests/integration/pull_compare_test.go | 3 +-- tests/integration/pull_create_test.go | 3 +-- tests/integration/pull_merge_test.go | 3 +-- tests/integration/pull_review_test.go | 4 ++-- tests/integration/pull_status_test.go | 4 ++-- tests/integration/pull_update_test.go | 3 +-- tests/integration/release_test.go | 3 +-- tests/integration/rename_branch_test.go | 3 +-- tests/integration/repo_activity_test.go | 3 +-- tests/integration/repo_branch_test.go | 3 +-- tests/integration/repo_commits_search_test.go | 3 +-- tests/integration/repo_commits_test.go | 3 +-- tests/integration/repo_fork_test.go | 3 +-- tests/integration/repo_generate_test.go | 3 +-- tests/integration/repo_migrate_test.go | 3 +-- tests/integration/repo_search_test.go | 3 +-- tests/integration/repo_tag_test.go | 3 +-- tests/integration/repo_test.go | 3 +-- tests/integration/repo_topic_test.go | 3 +-- tests/integration/repo_watch_test.go | 3 +-- tests/integration/repofiles_delete_test.go | 3 +-- tests/integration/repofiles_update_test.go | 3 +-- tests/integration/setting_test.go | 3 +-- tests/integration/signin_test.go | 3 +-- tests/integration/signout_test.go | 3 +-- tests/integration/signup_test.go | 3 +-- tests/integration/ssh_key_test.go | 3 +-- tests/integration/timetracking_test.go | 3 +-- tests/integration/user_avatar_test.go | 3 +-- tests/integration/user_test.go | 3 +-- tests/integration/version_test.go | 3 +-- tests/integration/view_test.go | 3 +-- tests/integration/webfinger_test.go | 3 +-- tests/integration/xss_test.go | 3 +-- tests/test_utils.go | 3 +-- tests/testlogger.go | 3 +-- tools/fuzz.go | 3 +-- 1872 files changed, 1887 insertions(+), 3749 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbe418c3563a..69363c415efc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -440,8 +440,8 @@ Code that you contribute should use the standard copyright header: ``` // 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 + ``` Files in the repository contain copyright from the year they are added diff --git a/build.go b/build.go index d379745c6dfc..d2e724a7f70c 100644 --- a/build.go +++ b/build.go @@ -1,6 +1,6 @@ // 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 vendor diff --git a/build/code-batch-process.go b/build/code-batch-process.go index b6c4171ede71..9cc47442b225 100644 --- a/build/code-batch-process.go +++ b/build/code-batch-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 //go:build ignore diff --git a/build/codeformat/formatimports.go b/build/codeformat/formatimports.go index 1076e3a0d1cd..c9fc2a27b4ab 100644 --- a/build/codeformat/formatimports.go +++ b/build/codeformat/formatimports.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 codeformat diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go index 3db90cad7b6a..c66181d35131 100644 --- a/build/codeformat/formatimports_test.go +++ b/build/codeformat/formatimports_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 codeformat diff --git a/build/generate-bindata.go b/build/generate-bindata.go index ab81dd89382e..ecd5d5047c8a 100644 --- a/build/generate-bindata.go +++ b/build/generate-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 ignore diff --git a/build/generate-emoji.go b/build/generate-emoji.go index 4ad6649b2eec..35c23aaf9e47 100644 --- a/build/generate-emoji.go +++ b/build/generate-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 //go:build ignore @@ -209,8 +208,8 @@ func generate() ([]byte, error) { const hdr = ` // 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/build/generate-go-licenses.go b/build/generate-go-licenses.go index 87c773ed8b0c..ec8fc82a71d6 100644 --- a/build/generate-go-licenses.go +++ b/build/generate-go-licenses.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 ignore diff --git a/build/gocovmerge.go b/build/gocovmerge.go index dfe70efdad4e..c6f74ed85cd3 100644 --- a/build/gocovmerge.go +++ b/build/gocovmerge.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright (c) 2015, Wade Simmons -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT // gocovmerge takes the results from multiple `go test -coverprofile` runs and // merges them into one profile diff --git a/cmd/admin.go b/cmd/admin.go index 80b5d4853c07..a47d9ca1095f 100644 --- a/cmd/admin.go +++ b/cmd/admin.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 cmd diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go index 9040def822e3..91276f221ff7 100644 --- a/cmd/admin_auth_ldap.go +++ b/cmd/admin_auth_ldap.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 cmd diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go index 2180b24be58d..65f53aaf4e9e 100644 --- a/cmd/admin_auth_ldap_test.go +++ b/cmd/admin_auth_ldap_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 cmd diff --git a/cmd/cert.go b/cmd/cert.go index 162c4171bfb2..816659023ca9 100644 --- a/cmd/cert.go +++ b/cmd/cert.go @@ -1,8 +1,7 @@ // Copyright 2009 The Go Authors. All rights reserved. // Copyright 2014 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 cmd diff --git a/cmd/cmd.go b/cmd/cmd.go index f20a9363257f..493519e1359a 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.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 cmd provides subcommands to the gitea binary - such as "web" or // "admin". diff --git a/cmd/convert.go b/cmd/convert.go index 6d4d99a25504..b9ed9f162742 100644 --- a/cmd/convert.go +++ b/cmd/convert.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 cmd diff --git a/cmd/docs.go b/cmd/docs.go index 073c57497305..901d0abd1c55 100644 --- a/cmd/docs.go +++ b/cmd/docs.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 cmd diff --git a/cmd/doctor.go b/cmd/doctor.go index d05a0a98d7ae..ceb6e3fbabe5 100644 --- a/cmd/doctor.go +++ b/cmd/doctor.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 cmd diff --git a/cmd/dump.go b/cmd/dump.go index 6569fb6e36df..672a8cdc9c21 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -1,7 +1,6 @@ // Copyright 2014 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 cmd diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go index 5f41ab69a984..2e78877afed2 100644 --- a/cmd/dump_repo.go +++ b/cmd/dump_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 cmd diff --git a/cmd/embedded.go b/cmd/embedded.go index b71ee6dfe716..118781895eca 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.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/cmd/embedded_stub.go b/cmd/embedded_stub.go index 26228256f2a0..874df06f9d7f 100644 --- a/cmd/embedded_stub.go +++ b/cmd/embedded_stub.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/cmd/generate.go b/cmd/generate.go index 35c77a815b1d..f72ee1639048 100644 --- a/cmd/generate.go +++ b/cmd/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 cmd diff --git a/cmd/hook.go b/cmd/hook.go index 83fcd939155d..228b79f7f014 100644 --- a/cmd/hook.go +++ b/cmd/hook.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 cmd diff --git a/cmd/hook_test.go b/cmd/hook_test.go index 92c7e82a9ac7..fe1f072a6f79 100644 --- a/cmd/hook_test.go +++ b/cmd/hook_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 cmd diff --git a/cmd/keys.go b/cmd/keys.go index 684aca64e22a..74dc1cc68c6c 100644 --- a/cmd/keys.go +++ b/cmd/keys.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 cmd diff --git a/cmd/mailer.go b/cmd/mailer.go index 35fcb302f897..af6613f15960 100644 --- a/cmd/mailer.go +++ b/cmd/mailer.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 cmd diff --git a/cmd/main_test.go b/cmd/main_test.go index 9cce0ef0360b..9aacdf7bbae1 100644 --- a/cmd/main_test.go +++ b/cmd/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 cmd diff --git a/cmd/manager.go b/cmd/manager.go index 8fbfd1093cbc..cdfe509075f3 100644 --- a/cmd/manager.go +++ b/cmd/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 cmd diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go index 761edf654c8a..d49675ce8709 100644 --- a/cmd/manager_logging.go +++ b/cmd/manager_logging.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 cmd diff --git a/cmd/migrate.go b/cmd/migrate.go index 49a13adeb567..2546fca21d0a 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.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 cmd diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index b6af5b96e87f..0b8ebe7c8dcd 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_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 cmd diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go index 7051591ad68e..aae366c0cf52 100644 --- a/cmd/migrate_storage_test.go +++ b/cmd/migrate_storage_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 cmd diff --git a/cmd/restore_repo.go b/cmd/restore_repo.go index 2256cc61abfc..23932f821c28 100644 --- a/cmd/restore_repo.go +++ b/cmd/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 cmd diff --git a/cmd/serv.go b/cmd/serv.go index 06561f348a43..346c918b184d 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -1,7 +1,6 @@ // Copyright 2014 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 cmd diff --git a/cmd/web.go b/cmd/web.go index 1b9f7e420a91..49a03356158e 100644 --- a/cmd/web.go +++ b/cmd/web.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 cmd diff --git a/cmd/web_acme.go b/cmd/web_acme.go index d8e550b321dd..90e4a02764b6 100644 --- a/cmd/web_acme.go +++ b/cmd/web_acme.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 cmd diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go index ba88cc59c21c..996537be3b59 100644 --- a/cmd/web_graceful.go +++ b/cmd/web_graceful.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 cmd diff --git a/cmd/web_https.go b/cmd/web_https.go index aac11517a69f..70d35cd40d84 100644 --- a/cmd/web_https.go +++ b/cmd/web_https.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 cmd diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index ccda03fa9255..b502c15cecd6 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.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 main diff --git a/contrib/fixtures/fixture_generation.go b/contrib/fixtures/fixture_generation.go index 66ff5c54e31b..210e0aae0676 100644 --- a/contrib/fixtures/fixture_generation.go +++ b/contrib/fixtures/fixture_generation.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 main diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index 686a3ddffaac..b31a4a8c689e 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.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 main diff --git a/main.go b/main.go index 0e550f05ebca..070e9857d08c 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ // Copyright 2014 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 // Gitea (git with a cup of tea) is a painless self-hosted Git Service. package main // import "code.gitea.io/gitea" diff --git a/models/activities/action.go b/models/activities/action.go index bbb607326572..80c117dc9572 100644 --- a/models/activities/action.go +++ b/models/activities/action.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 activities diff --git a/models/activities/action_list.go b/models/activities/action_list.go index 86aa8689e2f0..0979434f7646 100644 --- a/models/activities/action_list.go +++ b/models/activities/action_list.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 activities diff --git a/models/activities/action_test.go b/models/activities/action_test.go index b79eb0d08d06..29312bd482b1 100644 --- a/models/activities/action_test.go +++ b/models/activities/action_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 activities_test diff --git a/models/activities/main_test.go b/models/activities/main_test.go index 0a87f47600b0..a8740f53c4d4 100644 --- a/models/activities/main_test.go +++ b/models/activities/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 activities_test diff --git a/models/activities/notification.go b/models/activities/notification.go index 10b3a7671357..9aa4b87628b1 100644 --- a/models/activities/notification.go +++ b/models/activities/notification.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 activities diff --git a/models/activities/notification_test.go b/models/activities/notification_test.go index d871891001a0..36b63b266b1e 100644 --- a/models/activities/notification_test.go +++ b/models/activities/notification_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 activities_test diff --git a/models/activities/repo_activity.go b/models/activities/repo_activity.go index 4c8aa7e81d1c..9018276c3aeb 100644 --- a/models/activities/repo_activity.go +++ b/models/activities/repo_activity.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 activities diff --git a/models/activities/statistic.go b/models/activities/statistic.go index ea785a3ee262..138f4d8fe9e9 100644 --- a/models/activities/statistic.go +++ b/models/activities/statistic.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 activities diff --git a/models/activities/user_heatmap.go b/models/activities/user_heatmap.go index 6e76be6c6b58..3370103a556f 100644 --- a/models/activities/user_heatmap.go +++ b/models/activities/user_heatmap.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.package models +// SPDX-License-Identifier: MIT package activities diff --git a/models/activities/user_heatmap_test.go b/models/activities/user_heatmap_test.go index a8a240f790b0..34715ab6ddd6 100644 --- a/models/activities/user_heatmap_test.go +++ b/models/activities/user_heatmap_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.package models +// SPDX-License-Identifier: MIT package activities_test diff --git a/models/admin/task.go b/models/admin/task.go index 4fa0f10394e6..9e661b9997e8 100644 --- a/models/admin/task.go +++ b/models/admin/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 admin diff --git a/models/asymkey/error.go b/models/asymkey/error.go index 3ddeb0498a2d..1d486082f461 100644 --- a/models/asymkey/error.go +++ b/models/asymkey/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 asymkey diff --git a/models/asymkey/gpg_key.go b/models/asymkey/gpg_key.go index 30f5ecc94964..ecd9041e6561 100644 --- a/models/asymkey/gpg_key.go +++ b/models/asymkey/gpg_key.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 asymkey diff --git a/models/asymkey/gpg_key_add.go b/models/asymkey/gpg_key_add.go index e7be19073aa8..eb4027b3a444 100644 --- a/models/asymkey/gpg_key_add.go +++ b/models/asymkey/gpg_key_add.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 asymkey diff --git a/models/asymkey/gpg_key_commit_verification.go b/models/asymkey/gpg_key_commit_verification.go index d5b06f83fd97..1cdd748e35af 100644 --- a/models/asymkey/gpg_key_commit_verification.go +++ b/models/asymkey/gpg_key_commit_verification.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 asymkey diff --git a/models/asymkey/gpg_key_common.go b/models/asymkey/gpg_key_common.go index 1ea510c45fef..5ceeee9aacf7 100644 --- a/models/asymkey/gpg_key_common.go +++ b/models/asymkey/gpg_key_common.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 asymkey diff --git a/models/asymkey/gpg_key_import.go b/models/asymkey/gpg_key_import.go index 210c4b835b3b..5b5ef4faba5e 100644 --- a/models/asymkey/gpg_key_import.go +++ b/models/asymkey/gpg_key_import.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 asymkey diff --git a/models/asymkey/gpg_key_test.go b/models/asymkey/gpg_key_test.go index 2cee45d98f75..6a0f9c614441 100644 --- a/models/asymkey/gpg_key_test.go +++ b/models/asymkey/gpg_key_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 asymkey diff --git a/models/asymkey/gpg_key_verify.go b/models/asymkey/gpg_key_verify.go index 4e9d04f57607..cb5eb7c85383 100644 --- a/models/asymkey/gpg_key_verify.go +++ b/models/asymkey/gpg_key_verify.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 asymkey diff --git a/models/asymkey/main_test.go b/models/asymkey/main_test.go index 9f53e335fec9..82a408ece08b 100644 --- a/models/asymkey/main_test.go +++ b/models/asymkey/main_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 asymkey diff --git a/models/asymkey/ssh_key.go b/models/asymkey/ssh_key.go index 811f563c8d2c..4d6ae8103cd8 100644 --- a/models/asymkey/ssh_key.go +++ b/models/asymkey/ssh_key.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 asymkey diff --git a/models/asymkey/ssh_key_authorized_keys.go b/models/asymkey/ssh_key_authorized_keys.go index ce3b0248cea6..e138182d6864 100644 --- a/models/asymkey/ssh_key_authorized_keys.go +++ b/models/asymkey/ssh_key_authorized_keys.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 asymkey diff --git a/models/asymkey/ssh_key_authorized_principals.go b/models/asymkey/ssh_key_authorized_principals.go index 4b08d0dfe7ab..092839611f91 100644 --- a/models/asymkey/ssh_key_authorized_principals.go +++ b/models/asymkey/ssh_key_authorized_principals.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 asymkey diff --git a/models/asymkey/ssh_key_commit_verification.go b/models/asymkey/ssh_key_commit_verification.go index 65bae0f393ce..af73637c4a89 100644 --- a/models/asymkey/ssh_key_commit_verification.go +++ b/models/asymkey/ssh_key_commit_verification.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 asymkey diff --git a/models/asymkey/ssh_key_deploy.go b/models/asymkey/ssh_key_deploy.go index 601e5c32e5f3..cc843921170c 100644 --- a/models/asymkey/ssh_key_deploy.go +++ b/models/asymkey/ssh_key_deploy.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 asymkey diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go index 788d58dbabd9..ca0334cc0b1a 100644 --- a/models/asymkey/ssh_key_fingerprint.go +++ b/models/asymkey/ssh_key_fingerprint.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 asymkey diff --git a/models/asymkey/ssh_key_parse.go b/models/asymkey/ssh_key_parse.go index 2462310ed977..b3eecb2c9bfe 100644 --- a/models/asymkey/ssh_key_parse.go +++ b/models/asymkey/ssh_key_parse.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 asymkey diff --git a/models/asymkey/ssh_key_principals.go b/models/asymkey/ssh_key_principals.go index 7a769fd84dea..f00c3f3e9e67 100644 --- a/models/asymkey/ssh_key_principals.go +++ b/models/asymkey/ssh_key_principals.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 asymkey diff --git a/models/asymkey/ssh_key_test.go b/models/asymkey/ssh_key_test.go index adffedd0b6ea..afd79ae6ded5 100644 --- a/models/asymkey/ssh_key_test.go +++ b/models/asymkey/ssh_key_test.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 asymkey diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go index 6931df9e8841..d6c16eb467e2 100644 --- a/models/asymkey/ssh_key_verify.go +++ b/models/asymkey/ssh_key_verify.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 asymkey diff --git a/models/auth/main_test.go b/models/auth/main_test.go index 5d52e963b867..3205d8816ff5 100644 --- a/models/auth/main_test.go +++ b/models/auth/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 auth_test diff --git a/models/auth/oauth2.go b/models/auth/oauth2.go index 2ff106628880..8e5a003d194f 100644 --- a/models/auth/oauth2.go +++ b/models/auth/oauth2.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 auth diff --git a/models/auth/oauth2_test.go b/models/auth/oauth2_test.go index 7a4df6b9acd7..80d0e9baa481 100644 --- a/models/auth/oauth2_test.go +++ b/models/auth/oauth2_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 auth_test diff --git a/models/auth/session.go b/models/auth/session.go index b5e4712bded6..b60e6a903b9d 100644 --- a/models/auth/session.go +++ b/models/auth/session.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 auth diff --git a/models/auth/source.go b/models/auth/source.go index f8be5398aef6..bade2fecf098 100644 --- a/models/auth/source.go +++ b/models/auth/source.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 auth diff --git a/models/auth/source_test.go b/models/auth/source_test.go index 67e96ee19efd..31216cca8e77 100644 --- a/models/auth/source_test.go +++ b/models/auth/source_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 auth_test diff --git a/models/auth/token.go b/models/auth/token.go index 9902b80b7826..763174f08f6c 100644 --- a/models/auth/token.go +++ b/models/auth/token.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 auth diff --git a/models/auth/token_test.go b/models/auth/token_test.go index b27ff13406cc..8a1e66495022 100644 --- a/models/auth/token_test.go +++ b/models/auth/token_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 auth_test diff --git a/models/auth/twofactor.go b/models/auth/twofactor.go index 736d4c340c40..179d315364b1 100644 --- a/models/auth/twofactor.go +++ b/models/auth/twofactor.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 auth diff --git a/models/auth/webauthn.go b/models/auth/webauthn.go index 1575b6cbab67..d5b2ceafd39f 100644 --- a/models/auth/webauthn.go +++ b/models/auth/webauthn.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 auth diff --git a/models/auth/webauthn_test.go b/models/auth/webauthn_test.go index 29344376cc41..8ba900bf89c1 100644 --- a/models/auth/webauthn_test.go +++ b/models/auth/webauthn_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 auth_test diff --git a/models/avatars/avatar.go b/models/avatars/avatar.go index dec264cea426..7ccb782fa62f 100644 --- a/models/avatars/avatar.go +++ b/models/avatars/avatar.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 avatars diff --git a/models/avatars/avatar_test.go b/models/avatars/avatar_test.go index ace5445fc0ed..29be2ea346c3 100644 --- a/models/avatars/avatar_test.go +++ b/models/avatars/avatar_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 avatars_test diff --git a/models/avatars/main_test.go b/models/avatars/main_test.go index 0e98d8f64d8c..650763271779 100644 --- a/models/avatars/main_test.go +++ b/models/avatars/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 avatars_test diff --git a/models/db/common.go b/models/db/common.go index 1a59a8b5c697..76c7c119f413 100644 --- a/models/db/common.go +++ b/models/db/common.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 db diff --git a/models/db/consistency.go b/models/db/consistency.go index 5a7878c74dd6..d19732cf80dc 100644 --- a/models/db/consistency.go +++ b/models/db/consistency.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 db diff --git a/models/db/context.go b/models/db/context.go index 8c81469ebc10..fb95e94c931d 100644 --- a/models/db/context.go +++ b/models/db/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 db diff --git a/models/db/context_test.go b/models/db/context_test.go index f00e7834ed23..e7518a50d8d2 100644 --- a/models/db/context_test.go +++ b/models/db/context_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 db_test diff --git a/models/db/convert.go b/models/db/convert.go index 039a6810408c..b17e68c87e59 100644 --- a/models/db/convert.go +++ b/models/db/convert.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 db diff --git a/models/db/engine.go b/models/db/engine.go index 41949eb6f60f..07ee6ca580ae 100755 --- a/models/db/engine.go +++ b/models/db/engine.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 db diff --git a/models/db/engine_test.go b/models/db/engine_test.go index c2ba9614aa4f..fa1ac08a1738 100644 --- a/models/db/engine_test.go +++ b/models/db/engine_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 db_test diff --git a/models/db/error.go b/models/db/error.go index 85cba5c4e929..5860cb4a071d 100644 --- a/models/db/error.go +++ b/models/db/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 db diff --git a/models/db/index.go b/models/db/index.go index 58a976ad5287..46be74e91e7f 100644 --- a/models/db/index.go +++ b/models/db/index.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 db diff --git a/models/db/index_test.go b/models/db/index_test.go index cf777b9d3894..5fce0a601296 100644 --- a/models/db/index_test.go +++ b/models/db/index_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 db_test diff --git a/models/db/install/db.go b/models/db/install/db.go index 363a8c86794b..d4c1139637f3 100644 --- a/models/db/install/db.go +++ b/models/db/install/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 install diff --git a/models/db/iterate.go b/models/db/iterate.go index cbd2feed280e..fc8c78d83ea3 100644 --- a/models/db/iterate.go +++ b/models/db/iterate.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 db diff --git a/models/db/iterate_test.go b/models/db/iterate_test.go index 5d03a6e9ceab..b0ea8b53ef1e 100644 --- a/models/db/iterate_test.go +++ b/models/db/iterate_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 db_test diff --git a/models/db/list_options.go b/models/db/list_options.go index 54f6d945c81f..b9ee360b1b85 100644 --- a/models/db/list_options.go +++ b/models/db/list_options.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 db diff --git a/models/db/log.go b/models/db/log.go index 4c497fdfd72c..fec2ea3c3d38 100644 --- a/models/db/log.go +++ b/models/db/log.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 db diff --git a/models/db/main_test.go b/models/db/main_test.go index b774dce4d8d3..ce4850291857 100644 --- a/models/db/main_test.go +++ b/models/db/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 db_test diff --git a/models/db/name.go b/models/db/name.go index a05d1a789be1..51be33a8bcb7 100644 --- a/models/db/name.go +++ b/models/db/name.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 db diff --git a/models/db/paginator/main_test.go b/models/db/paginator/main_test.go index 1127987e53d9..b0557bc5a4a9 100644 --- a/models/db/paginator/main_test.go +++ b/models/db/paginator/main_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 paginator diff --git a/models/db/paginator/paginator.go b/models/db/paginator/paginator.go index 747539f30ea6..bcda47d97822 100644 --- a/models/db/paginator/paginator.go +++ b/models/db/paginator/paginator.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 paginator diff --git a/models/db/paginator/paginator_test.go b/models/db/paginator/paginator_test.go index fdb8eee4417a..a1117fc7a445 100644 --- a/models/db/paginator/paginator_test.go +++ b/models/db/paginator/paginator_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 paginator diff --git a/models/db/search.go b/models/db/search.go index 704a48ed1eb4..f5273cb6f6bf 100644 --- a/models/db/search.go +++ b/models/db/search.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 db diff --git a/models/db/sequence.go b/models/db/sequence.go index 0daacee70c31..6d801d022fbc 100644 --- a/models/db/sequence.go +++ b/models/db/sequence.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 db diff --git a/models/db/sql_postgres_with_schema.go b/models/db/sql_postgres_with_schema.go index 4bbd12bdebc5..ec63447f6f6f 100644 --- a/models/db/sql_postgres_with_schema.go +++ b/models/db/sql_postgres_with_schema.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 db diff --git a/models/error.go b/models/error.go index f4c4bc8f67cb..8223f23585bb 100644 --- a/models/error.go +++ b/models/error.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 models diff --git a/models/fixture_generation.go b/models/fixture_generation.go index 50b983fa8207..abf880ee8e2b 100644 --- a/models/fixture_generation.go +++ b/models/fixture_generation.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 models diff --git a/models/fixture_test.go b/models/fixture_test.go index 0857341e4447..8a28db816492 100644 --- a/models/fixture_test.go +++ b/models/fixture_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 models diff --git a/models/foreignreference/error.go b/models/foreignreference/error.go index a1db773cd29c..07ed1052a63b 100644 --- a/models/foreignreference/error.go +++ b/models/foreignreference/error.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 foreignreference diff --git a/models/foreignreference/foreignreference.go b/models/foreignreference/foreignreference.go index cc657a0fbec6..2d2ad04c5a14 100644 --- a/models/foreignreference/foreignreference.go +++ b/models/foreignreference/foreignreference.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 foreignreference diff --git a/models/git/branches.go b/models/git/branches.go index 328f6f0f0d00..87246ed149b0 100644 --- a/models/git/branches.go +++ b/models/git/branches.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 git diff --git a/models/git/branches_test.go b/models/git/branches_test.go index 754c5a4e66de..038a4f6686a6 100644 --- a/models/git/branches_test.go +++ b/models/git/branches_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_test diff --git a/models/git/commit_status.go b/models/git/commit_status.go index df6f5ae7ea1b..411fbbe53604 100644 --- a/models/git/commit_status.go +++ b/models/git/commit_status.go @@ -1,6 +1,5 @@ // Copyright 2017 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 git diff --git a/models/git/commit_status_test.go b/models/git/commit_status_test.go index 7b81b1549c22..c82967301495 100644 --- a/models/git/commit_status_test.go +++ b/models/git/commit_status_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 git_test diff --git a/models/git/lfs.go b/models/git/lfs.go index 87e07d7a5e0c..a86e84c050c2 100644 --- a/models/git/lfs.go +++ b/models/git/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 package git diff --git a/models/git/lfs_lock.go b/models/git/lfs_lock.go index c5a8cc245e3c..3d765ea22bb7 100644 --- a/models/git/lfs_lock.go +++ b/models/git/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 git diff --git a/models/git/main_test.go b/models/git/main_test.go index 41e6ac470428..5ef9cde60764 100644 --- a/models/git/main_test.go +++ b/models/git/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 git_test diff --git a/models/git/protected_tag.go b/models/git/protected_tag.go index 4640a77b20f8..1d32b11366ff 100644 --- a/models/git/protected_tag.go +++ b/models/git/protected_tag.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/models/git/protected_tag_test.go b/models/git/protected_tag_test.go index 352eed00603d..164c33e28fd3 100644 --- a/models/git/protected_tag_test.go +++ b/models/git/protected_tag_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_test diff --git a/models/issues/assignees.go b/models/issues/assignees.go index 19480fa1e1f7..25ecd4b05caf 100644 --- a/models/issues/assignees.go +++ b/models/issues/assignees.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/models/issues/assignees_test.go b/models/issues/assignees_test.go index 4286bdd7eebe..7f18569d4911 100644 --- a/models/issues/assignees_test.go +++ b/models/issues/assignees_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_test diff --git a/models/issues/comment.go b/models/issues/comment.go index 9483814a19e0..0aaa870b4659 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -1,8 +1,7 @@ // Copyright 2018 The Gitea Authors. // 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 issues diff --git a/models/issues/comment_list.go b/models/issues/comment_list.go index e42b8605f94e..2b55bc212fec 100644 --- a/models/issues/comment_list.go +++ b/models/issues/comment_list.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/models/issues/comment_test.go b/models/issues/comment_test.go index f12da0177f86..6a647474dca5 100644 --- a/models/issues/comment_test.go +++ b/models/issues/comment_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 issues_test diff --git a/models/issues/content_history.go b/models/issues/content_history.go index f5cfa65b8ff4..cc06b184d780 100644 --- a/models/issues/content_history.go +++ b/models/issues/content_history.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 issues diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go index 1218d871d0f8..7d52f1bcc645 100644 --- a/models/issues/content_history_test.go +++ b/models/issues/content_history_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 issues_test diff --git a/models/issues/dependency.go b/models/issues/dependency.go index a02280d8a6d1..bd39824369a9 100644 --- a/models/issues/dependency.go +++ b/models/issues/dependency.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/models/issues/dependency_test.go b/models/issues/dependency_test.go index 3ea0b4ff5ca7..7af30b201937 100644 --- a/models/issues/dependency_test.go +++ b/models/issues/dependency_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_test diff --git a/models/issues/issue.go b/models/issues/issue.go index 69d6657d4645..488a17609e51 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.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 issues diff --git a/models/issues/issue_index.go b/models/issues/issue_index.go index 1fa79f494a32..b480cc683f54 100644 --- a/models/issues/issue_index.go +++ b/models/issues/issue_index.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 issues diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go index d9dff4cb4d6c..35a0c1f0e3a7 100644 --- a/models/issues/issue_list.go +++ b/models/issues/issue_list.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 issues diff --git a/models/issues/issue_list_test.go b/models/issues/issue_list_test.go index c38a405e02a7..954a20ffe44e 100644 --- a/models/issues/issue_list_test.go +++ b/models/issues/issue_list_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 issues_test diff --git a/models/issues/issue_lock.go b/models/issues/issue_lock.go index 608b5fd14040..1376ffcadad3 100644 --- a/models/issues/issue_lock.go +++ b/models/issues/issue_lock.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/models/issues/issue_project.go b/models/issues/issue_project.go index 39a27abd3e09..a366a92fad04 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.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 issues diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go index 2c8728e71a3a..6764a9e6260e 100644 --- a/models/issues/issue_test.go +++ b/models/issues/issue_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 issues_test diff --git a/models/issues/issue_user.go b/models/issues/issue_user.go index c1a68c96e817..4a537752a2ca 100644 --- a/models/issues/issue_user.go +++ b/models/issues/issue_user.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 issues diff --git a/models/issues/issue_user_test.go b/models/issues/issue_user_test.go index 7dd84ed68cdf..0daace6c9b19 100644 --- a/models/issues/issue_user_test.go +++ b/models/issues/issue_user_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/issue_watch.go b/models/issues/issue_watch.go index cb9d7e7125e9..1efc0ea6871c 100644 --- a/models/issues/issue_watch.go +++ b/models/issues/issue_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 issues diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go index 7aaf9f7f5da5..4f44487f567a 100644 --- a/models/issues/issue_watch_test.go +++ b/models/issues/issue_watch_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 issues_test diff --git a/models/issues/issue_xref.go b/models/issues/issue_xref.go index 4c6601a0a2e5..a965cf7340d5 100644 --- a/models/issues/issue_xref.go +++ b/models/issues/issue_xref.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/models/issues/issue_xref_test.go b/models/issues/issue_xref_test.go index d6d88db89486..6d96c398d052 100644 --- a/models/issues/issue_xref_test.go +++ b/models/issues/issue_xref_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_test diff --git a/models/issues/label.go b/models/issues/label.go index dc7058d64355..e5583ff00f61 100644 --- a/models/issues/label.go +++ b/models/issues/label.go @@ -1,7 +1,6 @@ // Copyright 2016 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 issues diff --git a/models/issues/label_test.go b/models/issues/label_test.go index 077e0eeb67ba..239e328d475c 100644 --- a/models/issues/label_test.go +++ b/models/issues/label_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 issues_test diff --git a/models/issues/main_test.go b/models/issues/main_test.go index 89f9e1c9997f..93e05f33f664 100644 --- a/models/issues/main_test.go +++ b/models/issues/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 issues_test diff --git a/models/issues/milestone.go b/models/issues/milestone.go index 9d1778f732e9..7c2ce407e688 100644 --- a/models/issues/milestone.go +++ b/models/issues/milestone.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 issues diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go index f04a2b2b3bef..5db5655906bf 100644 --- a/models/issues/milestone_test.go +++ b/models/issues/milestone_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 issues_test diff --git a/models/issues/pull.go b/models/issues/pull.go index 993a1ba8bdf7..9105dd4d3a6e 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.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 issues diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index 6110ba77fa72..432e848e97ad 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.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/models/issues/pull_test.go b/models/issues/pull_test.go index d88f9d4f54f1..8ce8eecc4aa8 100644 --- a/models/issues/pull_test.go +++ b/models/issues/pull_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 issues_test diff --git a/models/issues/reaction.go b/models/issues/reaction.go index 5cb63795d1d6..381881ff6193 100644 --- a/models/issues/reaction.go +++ b/models/issues/reaction.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 issues diff --git a/models/issues/reaction_test.go b/models/issues/reaction_test.go index 835a667619cb..ddd0e2d04c00 100644 --- a/models/issues/reaction_test.go +++ b/models/issues/reaction_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 issues_test diff --git a/models/issues/review.go b/models/issues/review.go index 5cf7d4c3da72..0b50763fdc3e 100644 --- a/models/issues/review.go +++ b/models/issues/review.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/models/issues/review_test.go b/models/issues/review_test.go index 39ad14c65fc2..cc4c13f9e238 100644 --- a/models/issues/review_test.go +++ b/models/issues/review_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 issues_test diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go index d1d985b74698..8a8fdca339cf 100644 --- a/models/issues/stopwatch.go +++ b/models/issues/stopwatch.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 issues diff --git a/models/issues/stopwatch_test.go b/models/issues/stopwatch_test.go index a5e33f1cf6e2..7745bc513c8b 100644 --- a/models/issues/stopwatch_test.go +++ b/models/issues/stopwatch_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 issues_test diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go index e1da0f32b0ef..6d2597545914 100644 --- a/models/issues/tracked_time.go +++ b/models/issues/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 issues diff --git a/models/issues/tracked_time_test.go b/models/issues/tracked_time_test.go index ba8b242d9991..b3174c7c82da 100644 --- a/models/issues/tracked_time_test.go +++ b/models/issues/tracked_time_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_test diff --git a/models/main_test.go b/models/main_test.go index 358400156910..cc4eebfe7644 100644 --- a/models/main_test.go +++ b/models/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 models diff --git a/models/migrate.go b/models/migrate.go index 2a79640b076e..b1b556812648 100644 --- a/models/migrate.go +++ b/models/migrate.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 models diff --git a/models/migrate_test.go b/models/migrate_test.go index bc7729673a55..48cd905e4c0d 100644 --- a/models/migrate_test.go +++ b/models/migrate_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 models diff --git a/models/migrations/base/db.go b/models/migrations/base/db.go index 5466b76220a3..dcf99c96ae81 100644 --- a/models/migrations/base/db.go +++ b/models/migrations/base/db.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 base diff --git a/models/migrations/base/db_test.go b/models/migrations/base/db_test.go index ee227b79783f..5145e19e8661 100644 --- a/models/migrations/base/db_test.go +++ b/models/migrations/base/db_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 base diff --git a/models/migrations/base/hash.go b/models/migrations/base/hash.go index 0f078dd70fdb..164f826b45d0 100644 --- a/models/migrations/base/hash.go +++ b/models/migrations/base/hash.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 base diff --git a/models/migrations/base/main_test.go b/models/migrations/base/main_test.go index 290d87214adb..c1c789150f94 100644 --- a/models/migrations/base/main_test.go +++ b/models/migrations/base/main_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 base diff --git a/models/migrations/base/testlogger.go b/models/migrations/base/testlogger.go index 0f35a078eca0..7cbf4602be00 100644 --- a/models/migrations/base/testlogger.go +++ b/models/migrations/base/testlogger.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/models/migrations/base/tests.go b/models/migrations/base/tests.go index dafc0df2f27d..a9bcd20f674b 100644 --- a/models/migrations/base/tests.go +++ b/models/migrations/base/tests.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 base diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index a48c837e8b25..e718355f8349 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.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 migrations diff --git a/models/migrations/v1_10/v100.go b/models/migrations/v1_10/v100.go index af58b4b21d19..bd11790b9884 100644 --- a/models/migrations/v1_10/v100.go +++ b/models/migrations/v1_10/v100.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v101.go b/models/migrations/v1_10/v101.go index 350e537a97cc..79b419e9d97c 100644 --- a/models/migrations/v1_10/v101.go +++ b/models/migrations/v1_10/v101.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v88.go b/models/migrations/v1_10/v88.go index 32659006ea9d..e6376af62e49 100644 --- a/models/migrations/v1_10/v88.go +++ b/models/migrations/v1_10/v88.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v89.go b/models/migrations/v1_10/v89.go index 4b21ef20ff17..937068292c22 100644 --- a/models/migrations/v1_10/v89.go +++ b/models/migrations/v1_10/v89.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v90.go b/models/migrations/v1_10/v90.go index aa08ac36bc6d..c9a69a6dfe30 100644 --- a/models/migrations/v1_10/v90.go +++ b/models/migrations/v1_10/v90.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v91.go b/models/migrations/v1_10/v91.go index b8c083f8d4ae..9b5fefb1d02a 100644 --- a/models/migrations/v1_10/v91.go +++ b/models/migrations/v1_10/v91.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v92.go b/models/migrations/v1_10/v92.go index c0552aaab5b9..9080108594cd 100644 --- a/models/migrations/v1_10/v92.go +++ b/models/migrations/v1_10/v92.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v93.go b/models/migrations/v1_10/v93.go index 6ce89f0d49b3..5b59065171e5 100644 --- a/models/migrations/v1_10/v93.go +++ b/models/migrations/v1_10/v93.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v94.go b/models/migrations/v1_10/v94.go index 542e45c139ff..fe3804aee428 100644 --- a/models/migrations/v1_10/v94.go +++ b/models/migrations/v1_10/v94.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v95.go b/models/migrations/v1_10/v95.go index 48a0c4ea7fbc..1b60eefb4272 100644 --- a/models/migrations/v1_10/v95.go +++ b/models/migrations/v1_10/v95.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v96.go b/models/migrations/v1_10/v96.go index 372ca9e65a84..2abd260be41a 100644 --- a/models/migrations/v1_10/v96.go +++ b/models/migrations/v1_10/v96.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v97.go b/models/migrations/v1_10/v97.go index 4438a9ed50c5..8a1a4426ab2c 100644 --- a/models/migrations/v1_10/v97.go +++ b/models/migrations/v1_10/v97.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v98.go b/models/migrations/v1_10/v98.go index 8e9ebb7d970b..cab9a6306503 100644 --- a/models/migrations/v1_10/v98.go +++ b/models/migrations/v1_10/v98.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v99.go b/models/migrations/v1_10/v99.go index 21554f6effcd..170a30631f88 100644 --- a/models/migrations/v1_10/v99.go +++ b/models/migrations/v1_10/v99.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 v1_10 //nolint diff --git a/models/migrations/v1_11/v102.go b/models/migrations/v1_11/v102.go index 49d9d3ae71dc..9358e4cef334 100644 --- a/models/migrations/v1_11/v102.go +++ b/models/migrations/v1_11/v102.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v103.go b/models/migrations/v1_11/v103.go index e9114adeef89..e4e16a054e82 100644 --- a/models/migrations/v1_11/v103.go +++ b/models/migrations/v1_11/v103.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v104.go b/models/migrations/v1_11/v104.go index 0ab3682f6eba..c76554cf59f7 100644 --- a/models/migrations/v1_11/v104.go +++ b/models/migrations/v1_11/v104.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v105.go b/models/migrations/v1_11/v105.go index 07aeedcd62ac..df261c992c8e 100644 --- a/models/migrations/v1_11/v105.go +++ b/models/migrations/v1_11/v105.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v106.go b/models/migrations/v1_11/v106.go index af7750866714..3e06309a8d8e 100644 --- a/models/migrations/v1_11/v106.go +++ b/models/migrations/v1_11/v106.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v107.go b/models/migrations/v1_11/v107.go index 5cc0d5282da3..1ffbd35dd714 100644 --- a/models/migrations/v1_11/v107.go +++ b/models/migrations/v1_11/v107.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v108.go b/models/migrations/v1_11/v108.go index 06ff1b16e3eb..28132c377d9f 100644 --- a/models/migrations/v1_11/v108.go +++ b/models/migrations/v1_11/v108.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v109.go b/models/migrations/v1_11/v109.go index 2bfd2536bf5c..d2ee9a6aaa21 100644 --- a/models/migrations/v1_11/v109.go +++ b/models/migrations/v1_11/v109.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v110.go b/models/migrations/v1_11/v110.go index 813a753e0c22..81afa1331d4f 100644 --- a/models/migrations/v1_11/v110.go +++ b/models/migrations/v1_11/v110.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v111.go b/models/migrations/v1_11/v111.go index f1f1d7cb0fbb..5b15c3216368 100644 --- a/models/migrations/v1_11/v111.go +++ b/models/migrations/v1_11/v111.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v112.go b/models/migrations/v1_11/v112.go index f8e84cf7529f..3478ffe4498a 100644 --- a/models/migrations/v1_11/v112.go +++ b/models/migrations/v1_11/v112.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v113.go b/models/migrations/v1_11/v113.go index 36ab1bd9c4bd..dc9adb60b05d 100644 --- a/models/migrations/v1_11/v113.go +++ b/models/migrations/v1_11/v113.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v114.go b/models/migrations/v1_11/v114.go index 688dd06d42f3..95adcee989c1 100644 --- a/models/migrations/v1_11/v114.go +++ b/models/migrations/v1_11/v114.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v115.go b/models/migrations/v1_11/v115.go index 1fbf0c4f2558..da935f6514e4 100644 --- a/models/migrations/v1_11/v115.go +++ b/models/migrations/v1_11/v115.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v116.go b/models/migrations/v1_11/v116.go index 6b6d91777b75..73fddd103951 100644 --- a/models/migrations/v1_11/v116.go +++ b/models/migrations/v1_11/v116.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 v1_11 //nolint diff --git a/models/migrations/v1_12/v117.go b/models/migrations/v1_12/v117.go index 6a102e0df7ae..bc768f3f0bb1 100644 --- a/models/migrations/v1_12/v117.go +++ b/models/migrations/v1_12/v117.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v118.go b/models/migrations/v1_12/v118.go index 227daffc45fb..9b893e2992bb 100644 --- a/models/migrations/v1_12/v118.go +++ b/models/migrations/v1_12/v118.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v119.go b/models/migrations/v1_12/v119.go index 998ca004d2e0..60bfe6a57da2 100644 --- a/models/migrations/v1_12/v119.go +++ b/models/migrations/v1_12/v119.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v120.go b/models/migrations/v1_12/v120.go index cc35ce5f3ea6..f4e61215eb01 100644 --- a/models/migrations/v1_12/v120.go +++ b/models/migrations/v1_12/v120.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v121.go b/models/migrations/v1_12/v121.go index 19864658d1fa..ac656b2d4225 100644 --- a/models/migrations/v1_12/v121.go +++ b/models/migrations/v1_12/v121.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v122.go b/models/migrations/v1_12/v122.go index b0edae93bdba..67ac9411faab 100644 --- a/models/migrations/v1_12/v122.go +++ b/models/migrations/v1_12/v122.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v123.go b/models/migrations/v1_12/v123.go index 1ecfdce7363a..ec56161afa6d 100644 --- a/models/migrations/v1_12/v123.go +++ b/models/migrations/v1_12/v123.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v124.go b/models/migrations/v1_12/v124.go index 0fc86378dbc1..311690c039b3 100644 --- a/models/migrations/v1_12/v124.go +++ b/models/migrations/v1_12/v124.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v125.go b/models/migrations/v1_12/v125.go index d74f888e9064..5540dfd626fb 100644 --- a/models/migrations/v1_12/v125.go +++ b/models/migrations/v1_12/v125.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v126.go b/models/migrations/v1_12/v126.go index 51dfb5167384..ca9ec3aa3f34 100644 --- a/models/migrations/v1_12/v126.go +++ b/models/migrations/v1_12/v126.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v127.go b/models/migrations/v1_12/v127.go index 5849b82566d8..b248eb4c06cb 100644 --- a/models/migrations/v1_12/v127.go +++ b/models/migrations/v1_12/v127.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v128.go b/models/migrations/v1_12/v128.go index 71e8e3207727..44d44a26c549 100644 --- a/models/migrations/v1_12/v128.go +++ b/models/migrations/v1_12/v128.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v129.go b/models/migrations/v1_12/v129.go index 28bc5f604f9e..cf228242b9df 100644 --- a/models/migrations/v1_12/v129.go +++ b/models/migrations/v1_12/v129.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v130.go b/models/migrations/v1_12/v130.go index ca3765be7bd1..391810c7cade 100644 --- a/models/migrations/v1_12/v130.go +++ b/models/migrations/v1_12/v130.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v131.go b/models/migrations/v1_12/v131.go index 14d954b4ba8e..a734d9fbf8f9 100644 --- a/models/migrations/v1_12/v131.go +++ b/models/migrations/v1_12/v131.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v132.go b/models/migrations/v1_12/v132.go index 8d93460f76b3..1708a57a7e4c 100644 --- a/models/migrations/v1_12/v132.go +++ b/models/migrations/v1_12/v132.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v133.go b/models/migrations/v1_12/v133.go index 1d69c47b9f23..e1c392459b8e 100644 --- a/models/migrations/v1_12/v133.go +++ b/models/migrations/v1_12/v133.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v134.go b/models/migrations/v1_12/v134.go index 297db37a08f9..3d1c82f09e16 100644 --- a/models/migrations/v1_12/v134.go +++ b/models/migrations/v1_12/v134.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v135.go b/models/migrations/v1_12/v135.go index 9453ecdd581f..5a87d9911b38 100644 --- a/models/migrations/v1_12/v135.go +++ b/models/migrations/v1_12/v135.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v136.go b/models/migrations/v1_12/v136.go index b114ddf50831..0cecba7be939 100644 --- a/models/migrations/v1_12/v136.go +++ b/models/migrations/v1_12/v136.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v137.go b/models/migrations/v1_12/v137.go index 6eb6b1ebb38f..371b1a3fdb85 100644 --- a/models/migrations/v1_12/v137.go +++ b/models/migrations/v1_12/v137.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v138.go b/models/migrations/v1_12/v138.go index c101c6e4cdfa..a2bfdb59a85c 100644 --- a/models/migrations/v1_12/v138.go +++ b/models/migrations/v1_12/v138.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v139.go b/models/migrations/v1_12/v139.go index 69daa94f9814..725b8fa30597 100644 --- a/models/migrations/v1_12/v139.go +++ b/models/migrations/v1_12/v139.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 v1_12 //nolint diff --git a/models/migrations/v1_13/v140.go b/models/migrations/v1_13/v140.go index 37aeeaeb6b13..3de9eaaf7cda 100644 --- a/models/migrations/v1_13/v140.go +++ b/models/migrations/v1_13/v140.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v141.go b/models/migrations/v1_13/v141.go index 7dd1cc5d6738..80796e6db931 100644 --- a/models/migrations/v1_13/v141.go +++ b/models/migrations/v1_13/v141.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v142.go b/models/migrations/v1_13/v142.go index 3a2206b6c683..7c7c01ad47d8 100644 --- a/models/migrations/v1_13/v142.go +++ b/models/migrations/v1_13/v142.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v143.go b/models/migrations/v1_13/v143.go index eee66c0a0d4a..ad1a8c66a5d1 100644 --- a/models/migrations/v1_13/v143.go +++ b/models/migrations/v1_13/v143.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v144.go b/models/migrations/v1_13/v144.go index 0b8b91268b77..f5a0bc575100 100644 --- a/models/migrations/v1_13/v144.go +++ b/models/migrations/v1_13/v144.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v145.go b/models/migrations/v1_13/v145.go index b12da3c6757b..c96e79f8a0ee 100644 --- a/models/migrations/v1_13/v145.go +++ b/models/migrations/v1_13/v145.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v146.go b/models/migrations/v1_13/v146.go index 7afd325371f5..5db8b0a4374a 100644 --- a/models/migrations/v1_13/v146.go +++ b/models/migrations/v1_13/v146.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v147.go b/models/migrations/v1_13/v147.go index 1518b8dd24fc..d9c51145c418 100644 --- a/models/migrations/v1_13/v147.go +++ b/models/migrations/v1_13/v147.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v148.go b/models/migrations/v1_13/v148.go index 40ede7174c86..7bb8ab700b6a 100644 --- a/models/migrations/v1_13/v148.go +++ b/models/migrations/v1_13/v148.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v149.go b/models/migrations/v1_13/v149.go index f0054b752df4..e093b4f9db8d 100644 --- a/models/migrations/v1_13/v149.go +++ b/models/migrations/v1_13/v149.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v150.go b/models/migrations/v1_13/v150.go index 99e6ddf685b4..d5ba48956654 100644 --- a/models/migrations/v1_13/v150.go +++ b/models/migrations/v1_13/v150.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v151.go b/models/migrations/v1_13/v151.go index 9efda9364593..9490c1778c6a 100644 --- a/models/migrations/v1_13/v151.go +++ b/models/migrations/v1_13/v151.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v152.go b/models/migrations/v1_13/v152.go index ec49a2fb97b2..7f7c414de8a9 100644 --- a/models/migrations/v1_13/v152.go +++ b/models/migrations/v1_13/v152.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v153.go b/models/migrations/v1_13/v153.go index 1428edd3c117..4146d8338784 100644 --- a/models/migrations/v1_13/v153.go +++ b/models/migrations/v1_13/v153.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v154.go b/models/migrations/v1_13/v154.go index 8976db675cf9..8b4498be847a 100644 --- a/models/migrations/v1_13/v154.go +++ b/models/migrations/v1_13/v154.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 v1_13 //nolint diff --git a/models/migrations/v1_14/main_test.go b/models/migrations/v1_14/main_test.go index 859f7520ee7a..7a091b9b9acf 100644 --- a/models/migrations/v1_14/main_test.go +++ b/models/migrations/v1_14/main_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 v1_14 //nolint diff --git a/models/migrations/v1_14/v155.go b/models/migrations/v1_14/v155.go index 630eb94f1ad1..7c5dc5fbe278 100644 --- a/models/migrations/v1_14/v155.go +++ b/models/migrations/v1_14/v155.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v156.go b/models/migrations/v1_14/v156.go index 698c1c942b5c..2cf4954a15f5 100644 --- a/models/migrations/v1_14/v156.go +++ b/models/migrations/v1_14/v156.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v157.go b/models/migrations/v1_14/v157.go index 12f0876d611b..b9d8225af8ab 100644 --- a/models/migrations/v1_14/v157.go +++ b/models/migrations/v1_14/v157.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v158.go b/models/migrations/v1_14/v158.go index e6c9e629f7ff..7ea80a659ed2 100644 --- a/models/migrations/v1_14/v158.go +++ b/models/migrations/v1_14/v158.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v159.go b/models/migrations/v1_14/v159.go index 60be2b12bdaf..149ae0f6a8e2 100644 --- a/models/migrations/v1_14/v159.go +++ b/models/migrations/v1_14/v159.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v160.go b/models/migrations/v1_14/v160.go index 5bdf180ef901..b9b7e7fbdd5d 100644 --- a/models/migrations/v1_14/v160.go +++ b/models/migrations/v1_14/v160.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v161.go b/models/migrations/v1_14/v161.go index cf661caa3756..ef3c14d59501 100644 --- a/models/migrations/v1_14/v161.go +++ b/models/migrations/v1_14/v161.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v162.go b/models/migrations/v1_14/v162.go index bfaa824fa2c0..972f771fd7b3 100644 --- a/models/migrations/v1_14/v162.go +++ b/models/migrations/v1_14/v162.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v163.go b/models/migrations/v1_14/v163.go index 8044dd4035cf..22f55f48d169 100644 --- a/models/migrations/v1_14/v163.go +++ b/models/migrations/v1_14/v163.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v164.go b/models/migrations/v1_14/v164.go index 0a1424850330..a6791b16e03d 100644 --- a/models/migrations/v1_14/v164.go +++ b/models/migrations/v1_14/v164.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v165.go b/models/migrations/v1_14/v165.go index d42dea96a512..a784832e1c3f 100644 --- a/models/migrations/v1_14/v165.go +++ b/models/migrations/v1_14/v165.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v166.go b/models/migrations/v1_14/v166.go index bdb18ffa6454..1eb726334760 100644 --- a/models/migrations/v1_14/v166.go +++ b/models/migrations/v1_14/v166.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v167.go b/models/migrations/v1_14/v167.go index 8098a7621306..fb6b3b474af9 100644 --- a/models/migrations/v1_14/v167.go +++ b/models/migrations/v1_14/v167.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v168.go b/models/migrations/v1_14/v168.go index e62ab909a0ca..a30a8859f7fe 100644 --- a/models/migrations/v1_14/v168.go +++ b/models/migrations/v1_14/v168.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v169.go b/models/migrations/v1_14/v169.go index f5fe332d97fa..5b81bb58b199 100644 --- a/models/migrations/v1_14/v169.go +++ b/models/migrations/v1_14/v169.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v170.go b/models/migrations/v1_14/v170.go index cb0f927a2f58..adb28cae5e6c 100644 --- a/models/migrations/v1_14/v170.go +++ b/models/migrations/v1_14/v170.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v171.go b/models/migrations/v1_14/v171.go index 0c94fd4f93c3..35769342e875 100644 --- a/models/migrations/v1_14/v171.go +++ b/models/migrations/v1_14/v171.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v172.go b/models/migrations/v1_14/v172.go index 6518c0317478..76519b94579a 100644 --- a/models/migrations/v1_14/v172.go +++ b/models/migrations/v1_14/v172.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v173.go b/models/migrations/v1_14/v173.go index c8c9c39c6951..3b7ecb8f9d8f 100644 --- a/models/migrations/v1_14/v173.go +++ b/models/migrations/v1_14/v173.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v174.go b/models/migrations/v1_14/v174.go index 9a139764c33a..766d3a4208e4 100644 --- a/models/migrations/v1_14/v174.go +++ b/models/migrations/v1_14/v174.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v175.go b/models/migrations/v1_14/v175.go index e66871f5eee5..f1b9b974c6aa 100644 --- a/models/migrations/v1_14/v175.go +++ b/models/migrations/v1_14/v175.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v176.go b/models/migrations/v1_14/v176.go index 4a343159ec9b..bd2484e49d7b 100644 --- a/models/migrations/v1_14/v176.go +++ b/models/migrations/v1_14/v176.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v176_test.go b/models/migrations/v1_14/v176_test.go index c088af9066b1..ea3e750d7f95 100644 --- a/models/migrations/v1_14/v176_test.go +++ b/models/migrations/v1_14/v176_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 v1_14 //nolint diff --git a/models/migrations/v1_14/v177.go b/models/migrations/v1_14/v177.go index c3086cd8e948..e72a9e53a95b 100644 --- a/models/migrations/v1_14/v177.go +++ b/models/migrations/v1_14/v177.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v177_test.go b/models/migrations/v1_14/v177_test.go index 4e061316d33b..5568a18fec0d 100644 --- a/models/migrations/v1_14/v177_test.go +++ b/models/migrations/v1_14/v177_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 v1_14 //nolint diff --git a/models/migrations/v1_15/main_test.go b/models/migrations/v1_15/main_test.go index d589734e37d6..366f19788ec7 100644 --- a/models/migrations/v1_15/main_test.go +++ b/models/migrations/v1_15/main_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 v1_15 //nolint diff --git a/models/migrations/v1_15/v178.go b/models/migrations/v1_15/v178.go index 27ece98916ad..9bb6ed7f8df7 100644 --- a/models/migrations/v1_15/v178.go +++ b/models/migrations/v1_15/v178.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v179.go b/models/migrations/v1_15/v179.go index c23bf91766c9..f6b142eb42d4 100644 --- a/models/migrations/v1_15/v179.go +++ b/models/migrations/v1_15/v179.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v180.go b/models/migrations/v1_15/v180.go index fc948bb1f5ef..17163ee2c683 100644 --- a/models/migrations/v1_15/v180.go +++ b/models/migrations/v1_15/v180.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v181.go b/models/migrations/v1_15/v181.go index 7ec3dae3767d..e2bb3208c41d 100644 --- a/models/migrations/v1_15/v181.go +++ b/models/migrations/v1_15/v181.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v181_test.go b/models/migrations/v1_15/v181_test.go index f621d0d162ff..1b075be7a094 100644 --- a/models/migrations/v1_15/v181_test.go +++ b/models/migrations/v1_15/v181_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 v1_15 //nolint diff --git a/models/migrations/v1_15/v182.go b/models/migrations/v1_15/v182.go index 32282089afed..c584ef851df3 100644 --- a/models/migrations/v1_15/v182.go +++ b/models/migrations/v1_15/v182.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v182_test.go b/models/migrations/v1_15/v182_test.go index b227e557ae6e..75ef8e1cd83f 100644 --- a/models/migrations/v1_15/v182_test.go +++ b/models/migrations/v1_15/v182_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 v1_15 //nolint diff --git a/models/migrations/v1_15/v183.go b/models/migrations/v1_15/v183.go index 48039f8dc4cc..4cc98f9efcb3 100644 --- a/models/migrations/v1_15/v183.go +++ b/models/migrations/v1_15/v183.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v184.go b/models/migrations/v1_15/v184.go index 195b419bc321..48f8b62165cc 100644 --- a/models/migrations/v1_15/v184.go +++ b/models/migrations/v1_15/v184.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v185.go b/models/migrations/v1_15/v185.go index 4b8ed2e03824..382cb621477f 100644 --- a/models/migrations/v1_15/v185.go +++ b/models/migrations/v1_15/v185.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v186.go b/models/migrations/v1_15/v186.go index 3f53ff6a11a4..310ac85f4cf9 100644 --- a/models/migrations/v1_15/v186.go +++ b/models/migrations/v1_15/v186.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v187.go b/models/migrations/v1_15/v187.go index c3f60d1db876..afd86bac45e3 100644 --- a/models/migrations/v1_15/v187.go +++ b/models/migrations/v1_15/v187.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v188.go b/models/migrations/v1_15/v188.go index 265b6f2f3f56..71e45cab0e31 100644 --- a/models/migrations/v1_15/v188.go +++ b/models/migrations/v1_15/v188.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 v1_15 //nolint diff --git a/models/migrations/v1_16/main_test.go b/models/migrations/v1_16/main_test.go index 8109a8a26360..817a0c13a458 100644 --- a/models/migrations/v1_16/main_test.go +++ b/models/migrations/v1_16/main_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 v1_16 //nolint diff --git a/models/migrations/v1_16/v189.go b/models/migrations/v1_16/v189.go index b04115845e26..32e3899a3a1c 100644 --- a/models/migrations/v1_16/v189.go +++ b/models/migrations/v1_16/v189.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v189_test.go b/models/migrations/v1_16/v189_test.go index 9c0f0967cda3..96cb97c32838 100644 --- a/models/migrations/v1_16/v189_test.go +++ b/models/migrations/v1_16/v189_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 v1_16 //nolint diff --git a/models/migrations/v1_16/v190.go b/models/migrations/v1_16/v190.go index a669fc31fab1..1853729ae99d 100644 --- a/models/migrations/v1_16/v190.go +++ b/models/migrations/v1_16/v190.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v191.go b/models/migrations/v1_16/v191.go index 461ac653d415..2d2c3d1a587a 100644 --- a/models/migrations/v1_16/v191.go +++ b/models/migrations/v1_16/v191.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v192.go b/models/migrations/v1_16/v192.go index e3ac2654fde3..2d5d158a09e0 100644 --- a/models/migrations/v1_16/v192.go +++ b/models/migrations/v1_16/v192.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v193.go b/models/migrations/v1_16/v193.go index 8bf960feb3b5..dd50e353e371 100644 --- a/models/migrations/v1_16/v193.go +++ b/models/migrations/v1_16/v193.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v193_test.go b/models/migrations/v1_16/v193_test.go index b573a54bb055..17669a012e3a 100644 --- a/models/migrations/v1_16/v193_test.go +++ b/models/migrations/v1_16/v193_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 v1_16 //nolint diff --git a/models/migrations/v1_16/v194.go b/models/migrations/v1_16/v194.go index 8486b1131add..ae7fe10bfc56 100644 --- a/models/migrations/v1_16/v194.go +++ b/models/migrations/v1_16/v194.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v195.go b/models/migrations/v1_16/v195.go index a7165cbf758a..9e390a971e47 100644 --- a/models/migrations/v1_16/v195.go +++ b/models/migrations/v1_16/v195.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v195_test.go b/models/migrations/v1_16/v195_test.go index 06ff13b52bc1..742397bf32a4 100644 --- a/models/migrations/v1_16/v195_test.go +++ b/models/migrations/v1_16/v195_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 v1_16 //nolint diff --git a/models/migrations/v1_16/v196.go b/models/migrations/v1_16/v196.go index b73a56607ef7..ed7f4185a1bf 100644 --- a/models/migrations/v1_16/v196.go +++ b/models/migrations/v1_16/v196.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v197.go b/models/migrations/v1_16/v197.go index da2e9ae76f3a..ef9d57a79e5b 100644 --- a/models/migrations/v1_16/v197.go +++ b/models/migrations/v1_16/v197.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v198.go b/models/migrations/v1_16/v198.go index 0e09ee53065c..ed792de793c1 100644 --- a/models/migrations/v1_16/v198.go +++ b/models/migrations/v1_16/v198.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v199.go b/models/migrations/v1_16/v199.go index 53ed7e4e8a56..6adcf890afb6 100644 --- a/models/migrations/v1_16/v199.go +++ b/models/migrations/v1_16/v199.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v200.go b/models/migrations/v1_16/v200.go index 70ee36354ca0..e39f4af9e86f 100644 --- a/models/migrations/v1_16/v200.go +++ b/models/migrations/v1_16/v200.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v201.go b/models/migrations/v1_16/v201.go index 6a2eda77b1ea..35e0c9f2fbe3 100644 --- a/models/migrations/v1_16/v201.go +++ b/models/migrations/v1_16/v201.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v202.go b/models/migrations/v1_16/v202.go index de0576b8d6d1..79676f3fab2d 100644 --- a/models/migrations/v1_16/v202.go +++ b/models/migrations/v1_16/v202.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v203.go b/models/migrations/v1_16/v203.go index 78903cb59516..26ec135a07cd 100644 --- a/models/migrations/v1_16/v203.go +++ b/models/migrations/v1_16/v203.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v204.go b/models/migrations/v1_16/v204.go index 8151866fa24b..e7577c8da49c 100644 --- a/models/migrations/v1_16/v204.go +++ b/models/migrations/v1_16/v204.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v205.go b/models/migrations/v1_16/v205.go index 9cca445d3533..d6c577083cdc 100644 --- a/models/migrations/v1_16/v205.go +++ b/models/migrations/v1_16/v205.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v206.go b/models/migrations/v1_16/v206.go index b2530d1005a3..64c794a2d0f2 100644 --- a/models/migrations/v1_16/v206.go +++ b/models/migrations/v1_16/v206.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v207.go b/models/migrations/v1_16/v207.go index f93ae4c33977..91208f066cab 100644 --- a/models/migrations/v1_16/v207.go +++ b/models/migrations/v1_16/v207.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v208.go b/models/migrations/v1_16/v208.go index 40f8b05b8009..1a11ef096ad9 100644 --- a/models/migrations/v1_16/v208.go +++ b/models/migrations/v1_16/v208.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v209.go b/models/migrations/v1_16/v209.go index e2f06bbfb057..be3100e02a04 100644 --- a/models/migrations/v1_16/v209.go +++ b/models/migrations/v1_16/v209.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v210.go b/models/migrations/v1_16/v210.go index b59b35660758..974e77fb8421 100644 --- a/models/migrations/v1_16/v210.go +++ b/models/migrations/v1_16/v210.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v210_test.go b/models/migrations/v1_16/v210_test.go index 20c430594e62..d43fb0310616 100644 --- a/models/migrations/v1_16/v210_test.go +++ b/models/migrations/v1_16/v210_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 v1_16 //nolint diff --git a/models/migrations/v1_17/main_test.go b/models/migrations/v1_17/main_test.go index 0f1708de8b69..e6871cacf2e0 100644 --- a/models/migrations/v1_17/main_test.go +++ b/models/migrations/v1_17/main_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 v1_17 // nolint diff --git a/models/migrations/v1_17/v211.go b/models/migrations/v1_17/v211.go index de9eb4b4b0d9..227de4984fc5 100644 --- a/models/migrations/v1_17/v211.go +++ b/models/migrations/v1_17/v211.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v212.go b/models/migrations/v1_17/v212.go index 5187f5e72f49..a00d29cd2fd0 100644 --- a/models/migrations/v1_17/v212.go +++ b/models/migrations/v1_17/v212.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v213.go b/models/migrations/v1_17/v213.go index 7b1b158f9fd1..2ed56104cf7e 100644 --- a/models/migrations/v1_17/v213.go +++ b/models/migrations/v1_17/v213.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v214.go b/models/migrations/v1_17/v214.go index e6fa53d4b849..e619b805a619 100644 --- a/models/migrations/v1_17/v214.go +++ b/models/migrations/v1_17/v214.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v215.go b/models/migrations/v1_17/v215.go index e1485159641b..43e5b636c9bf 100644 --- a/models/migrations/v1_17/v215.go +++ b/models/migrations/v1_17/v215.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v216.go b/models/migrations/v1_17/v216.go index bde58257721b..388cb971e705 100644 --- a/models/migrations/v1_17/v216.go +++ b/models/migrations/v1_17/v216.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v217.go b/models/migrations/v1_17/v217.go index abba9e8ec9fe..bbb40251fbe8 100644 --- a/models/migrations/v1_17/v217.go +++ b/models/migrations/v1_17/v217.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v218.go b/models/migrations/v1_17/v218.go index a5cd1c591ad5..4d5e77070bbc 100644 --- a/models/migrations/v1_17/v218.go +++ b/models/migrations/v1_17/v218.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v219.go b/models/migrations/v1_17/v219.go index d22f4e6b8e5d..c8aa2378c30a 100644 --- a/models/migrations/v1_17/v219.go +++ b/models/migrations/v1_17/v219.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v220.go b/models/migrations/v1_17/v220.go index bbceb933b3f6..31158509b87d 100644 --- a/models/migrations/v1_17/v220.go +++ b/models/migrations/v1_17/v220.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v221.go b/models/migrations/v1_17/v221.go index 17744d53ab02..ceb079f369d0 100644 --- a/models/migrations/v1_17/v221.go +++ b/models/migrations/v1_17/v221.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v221_test.go b/models/migrations/v1_17/v221_test.go index d635820f82a1..3215d74915f1 100644 --- a/models/migrations/v1_17/v221_test.go +++ b/models/migrations/v1_17/v221_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 v1_17 // nolint diff --git a/models/migrations/v1_17/v222.go b/models/migrations/v1_17/v222.go index 3aafb1848d3e..558c0d9adcd2 100644 --- a/models/migrations/v1_17/v222.go +++ b/models/migrations/v1_17/v222.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v223.go b/models/migrations/v1_17/v223.go index 530ddf0e05c8..c83deb255fe0 100644 --- a/models/migrations/v1_17/v223.go +++ b/models/migrations/v1_17/v223.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 v1_17 // nolint diff --git a/models/migrations/v1_18/main_test.go b/models/migrations/v1_18/main_test.go index cb0934042843..aec48845bf7f 100644 --- a/models/migrations/v1_18/main_test.go +++ b/models/migrations/v1_18/main_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 v1_18 // nolint diff --git a/models/migrations/v1_18/v224.go b/models/migrations/v1_18/v224.go index 34dbcc1aa192..f37b773effa1 100644 --- a/models/migrations/v1_18/v224.go +++ b/models/migrations/v1_18/v224.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v225.go b/models/migrations/v1_18/v225.go index 8848a8982587..2ff5f4c7f7c6 100644 --- a/models/migrations/v1_18/v225.go +++ b/models/migrations/v1_18/v225.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v226.go b/models/migrations/v1_18/v226.go index bff88cbefa0b..536346a97a6b 100644 --- a/models/migrations/v1_18/v226.go +++ b/models/migrations/v1_18/v226.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v227.go b/models/migrations/v1_18/v227.go index 7dc468108c3a..b4da88ee0aed 100644 --- a/models/migrations/v1_18/v227.go +++ b/models/migrations/v1_18/v227.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v228.go b/models/migrations/v1_18/v228.go index 28ce171b535a..3144310507f0 100644 --- a/models/migrations/v1_18/v228.go +++ b/models/migrations/v1_18/v228.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v229.go b/models/migrations/v1_18/v229.go index ea7c3ed32910..10d9f350979f 100644 --- a/models/migrations/v1_18/v229.go +++ b/models/migrations/v1_18/v229.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 v1_18 //nolint diff --git a/models/migrations/v1_18/v229_test.go b/models/migrations/v1_18/v229_test.go index caa24b26b8c0..d489328c0005 100644 --- a/models/migrations/v1_18/v229_test.go +++ b/models/migrations/v1_18/v229_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 v1_18 //nolint diff --git a/models/migrations/v1_18/v230.go b/models/migrations/v1_18/v230.go index fe98e07a4582..2d2248fcb384 100644 --- a/models/migrations/v1_18/v230.go +++ b/models/migrations/v1_18/v230.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go index 0af13a1b9ee5..308f3a50231f 100644 --- a/models/migrations/v1_18/v230_test.go +++ b/models/migrations/v1_18/v230_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 v1_18 //nolint diff --git a/models/migrations/v1_19/main_test.go b/models/migrations/v1_19/main_test.go index 8ba7fcaf1051..3d08ec2f5e96 100644 --- a/models/migrations/v1_19/main_test.go +++ b/models/migrations/v1_19/main_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 v1_19 // nolint diff --git a/models/migrations/v1_19/v231.go b/models/migrations/v1_19/v231.go index 809a1cfa5769..79e46132f0a3 100644 --- a/models/migrations/v1_19/v231.go +++ b/models/migrations/v1_19/v231.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 v1_19 //nolint diff --git a/models/migrations/v1_19/v232.go b/models/migrations/v1_19/v232.go index 92c9ad84b7ec..9feb5343bcd8 100644 --- a/models/migrations/v1_19/v232.go +++ b/models/migrations/v1_19/v232.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 v1_19 // nolint diff --git a/models/migrations/v1_19/v233.go b/models/migrations/v1_19/v233.go index 6443d58fbeeb..fe568b64eb57 100644 --- a/models/migrations/v1_19/v233.go +++ b/models/migrations/v1_19/v233.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 v1_19 //nolint diff --git a/models/migrations/v1_19/v233_test.go b/models/migrations/v1_19/v233_test.go index dd810feef289..9902b7e4ae37 100644 --- a/models/migrations/v1_19/v233_test.go +++ b/models/migrations/v1_19/v233_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 v1_19 //nolint diff --git a/models/migrations/v1_6/v70.go b/models/migrations/v1_6/v70.go index 880bcb8af747..166772ad700a 100644 --- a/models/migrations/v1_6/v70.go +++ b/models/migrations/v1_6/v70.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 v1_6 // nolint diff --git a/models/migrations/v1_6/v71.go b/models/migrations/v1_6/v71.go index c021a24abcc2..57586c5c3265 100644 --- a/models/migrations/v1_6/v71.go +++ b/models/migrations/v1_6/v71.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 v1_6 // nolint diff --git a/models/migrations/v1_6/v72.go b/models/migrations/v1_6/v72.go index 275512c4d006..b7428150bef7 100644 --- a/models/migrations/v1_6/v72.go +++ b/models/migrations/v1_6/v72.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 v1_6 // nolint diff --git a/models/migrations/v1_7/v73.go b/models/migrations/v1_7/v73.go index aa2cbba88afd..0c5775c2b2dd 100644 --- a/models/migrations/v1_7/v73.go +++ b/models/migrations/v1_7/v73.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 v1_7 // nolint diff --git a/models/migrations/v1_7/v74.go b/models/migrations/v1_7/v74.go index 3694d68d310a..aeca5448e106 100644 --- a/models/migrations/v1_7/v74.go +++ b/models/migrations/v1_7/v74.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 v1_7 // nolint diff --git a/models/migrations/v1_7/v75.go b/models/migrations/v1_7/v75.go index df2666735115..bad8010090a8 100644 --- a/models/migrations/v1_7/v75.go +++ b/models/migrations/v1_7/v75.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 v1_7 // nolint diff --git a/models/migrations/v1_8/v76.go b/models/migrations/v1_8/v76.go index ef60eb726050..451268938602 100644 --- a/models/migrations/v1_8/v76.go +++ b/models/migrations/v1_8/v76.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v77.go b/models/migrations/v1_8/v77.go index 7d5dccc9b639..f92dfed882dd 100644 --- a/models/migrations/v1_8/v77.go +++ b/models/migrations/v1_8/v77.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v78.go b/models/migrations/v1_8/v78.go index d7943fb0aa40..8bc0221412e7 100644 --- a/models/migrations/v1_8/v78.go +++ b/models/migrations/v1_8/v78.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v79.go b/models/migrations/v1_8/v79.go index 6a867f50552f..9cebca185376 100644 --- a/models/migrations/v1_8/v79.go +++ b/models/migrations/v1_8/v79.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v80.go b/models/migrations/v1_8/v80.go index 2e1b0631e1d9..ec9726d88920 100644 --- a/models/migrations/v1_8/v80.go +++ b/models/migrations/v1_8/v80.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v81.go b/models/migrations/v1_8/v81.go index b06f879ef54c..ff050386b43c 100644 --- a/models/migrations/v1_8/v81.go +++ b/models/migrations/v1_8/v81.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 v1_8 // nolint diff --git a/models/migrations/v1_9/v82.go b/models/migrations/v1_9/v82.go index 82cb8b3ce1a4..b0dffe6035f6 100644 --- a/models/migrations/v1_9/v82.go +++ b/models/migrations/v1_9/v82.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 v1_9 // nolint diff --git a/models/migrations/v1_9/v83.go b/models/migrations/v1_9/v83.go index 31cce268eb82..afe504e9c5f9 100644 --- a/models/migrations/v1_9/v83.go +++ b/models/migrations/v1_9/v83.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v84.go b/models/migrations/v1_9/v84.go index 8aa7fbc07a9a..13fc238d4801 100644 --- a/models/migrations/v1_9/v84.go +++ b/models/migrations/v1_9/v84.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v85.go b/models/migrations/v1_9/v85.go index 0cd32c3829d4..6cf7faaad639 100644 --- a/models/migrations/v1_9/v85.go +++ b/models/migrations/v1_9/v85.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v86.go b/models/migrations/v1_9/v86.go index 416e4fad93cf..a2a2c042c0ba 100644 --- a/models/migrations/v1_9/v86.go +++ b/models/migrations/v1_9/v86.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v87.go b/models/migrations/v1_9/v87.go index 97c8f621c682..b373a40bc07f 100644 --- a/models/migrations/v1_9/v87.go +++ b/models/migrations/v1_9/v87.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 v1_9 //nolint diff --git a/models/org.go b/models/org.go index b56c80522b83..1c9383fe8d26 100644 --- a/models/org.go +++ b/models/org.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 models diff --git a/models/org_team.go b/models/org_team.go index 792829563acb..62376192ab5c 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -1,7 +1,6 @@ // Copyright 2018 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 models diff --git a/models/org_team_test.go b/models/org_team_test.go index 3b1fabf1c34a..446084c81525 100644 --- a/models/org_team_test.go +++ b/models/org_team_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 models diff --git a/models/org_test.go b/models/org_test.go index 23b417119ede..54e8f0846597 100644 --- a/models/org_test.go +++ b/models/org_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 models diff --git a/models/organization/main_test.go b/models/organization/main_test.go index 376552cb22eb..7ccf8c8efde4 100644 --- a/models/organization/main_test.go +++ b/models/organization/main_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 organization_test diff --git a/models/organization/mini_org.go b/models/organization/mini_org.go index 36cf948e654c..b1627b5e6c64 100644 --- a/models/organization/mini_org.go +++ b/models/organization/mini_org.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 organization diff --git a/models/organization/org.go b/models/organization/org.go index 6bb982b2814f..ef7b834ad35c 100644 --- a/models/organization/org.go +++ b/models/organization/org.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 organization diff --git a/models/organization/org_repo.go b/models/organization/org_repo.go index 364374f71b34..99638916b0b5 100644 --- a/models/organization/org_repo.go +++ b/models/organization/org_repo.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 organization diff --git a/models/organization/org_test.go b/models/organization/org_test.go index 0fba6e25925c..2f821e3a4c1f 100644 --- a/models/organization/org_test.go +++ b/models/organization/org_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 organization_test diff --git a/models/organization/org_user.go b/models/organization/org_user.go index 7a5d17a75a7e..d514e401ba6a 100644 --- a/models/organization/org_user.go +++ b/models/organization/org_user.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 organization diff --git a/models/organization/org_user_test.go b/models/organization/org_user_test.go index aed3ea23cf8c..1da17631e365 100644 --- a/models/organization/org_user_test.go +++ b/models/organization/org_user_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 organization_test diff --git a/models/organization/team.go b/models/organization/team.go index aa9b24b57f43..f6d71845df23 100644 --- a/models/organization/team.go +++ b/models/organization/team.go @@ -1,7 +1,6 @@ // Copyright 2018 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 organization diff --git a/models/organization/team_invite.go b/models/organization/team_invite.go index 4504a2e9fef3..17f6c5961044 100644 --- a/models/organization/team_invite.go +++ b/models/organization/team_invite.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 organization diff --git a/models/organization/team_invite_test.go b/models/organization/team_invite_test.go index e0596ec28da5..cd6e1fe2eff2 100644 --- a/models/organization/team_invite_test.go +++ b/models/organization/team_invite_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 organization_test diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go index 3ac4fa926b83..e6b50ecff7e4 100644 --- a/models/organization/team_repo.go +++ b/models/organization/team_repo.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 organization diff --git a/models/organization/team_test.go b/models/organization/team_test.go index c8d58a0eb7a8..d324c6d0da18 100644 --- a/models/organization/team_test.go +++ b/models/organization/team_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 organization_test diff --git a/models/organization/team_unit.go b/models/organization/team_unit.go index 4ad1ae95dc99..7668ca74835d 100644 --- a/models/organization/team_unit.go +++ b/models/organization/team_unit.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 organization diff --git a/models/organization/team_user.go b/models/organization/team_user.go index 80f4d00e3dd6..7a024f1c6d9b 100644 --- a/models/organization/team_user.go +++ b/models/organization/team_user.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 organization diff --git a/models/packages/conan/references.go b/models/packages/conan/references.go index e47e689af72f..06e828e8fa47 100644 --- a/models/packages/conan/references.go +++ b/models/packages/conan/references.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/models/packages/conan/search.go b/models/packages/conan/search.go index 39a90004597d..ab0bff596890 100644 --- a/models/packages/conan/search.go +++ b/models/packages/conan/search.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/models/packages/container/const.go b/models/packages/container/const.go index 9d3ed64a6e69..0dfbda051dbc 100644 --- a/models/packages/container/const.go +++ b/models/packages/container/const.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/models/packages/container/search.go b/models/packages/container/search.go index e4a5a538488f..dfd5e244ba28 100644 --- a/models/packages/container/search.go +++ b/models/packages/container/search.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/models/packages/descriptor.go b/models/packages/descriptor.go index 357574a706c2..7ffed2d8aad5 100644 --- a/models/packages/descriptor.go +++ b/models/packages/descriptor.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/models/packages/package.go b/models/packages/package.go index cea04a095795..5c4837d98b0c 100644 --- a/models/packages/package.go +++ b/models/packages/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 packages diff --git a/models/packages/package_blob.go b/models/packages/package_blob.go index fcb71a96ec67..36ad745312d2 100644 --- a/models/packages/package_blob.go +++ b/models/packages/package_blob.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/models/packages/package_blob_upload.go b/models/packages/package_blob_upload.go index 635068f1d865..64d1f9d473db 100644 --- a/models/packages/package_blob_upload.go +++ b/models/packages/package_blob_upload.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/models/packages/package_file.go b/models/packages/package_file.go index 9f6284af0763..6d0fd185a04e 100644 --- a/models/packages/package_file.go +++ b/models/packages/package_file.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/models/packages/package_property.go b/models/packages/package_property.go index fc1071380194..1b7f253d5663 100644 --- a/models/packages/package_property.go +++ b/models/packages/package_property.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/models/packages/package_test.go b/models/packages/package_test.go index 915ef15f91f9..735688a731e0 100644 --- a/models/packages/package_test.go +++ b/models/packages/package_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_test diff --git a/models/packages/package_version.go b/models/packages/package_version.go index 6ee362502f69..a2a8a45d8f38 100644 --- a/models/packages/package_version.go +++ b/models/packages/package_version.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/models/perm/access/access.go b/models/perm/access/access.go index 7344e114a64e..55d3f78e01d2 100644 --- a/models/perm/access/access.go +++ b/models/perm/access/access.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 access diff --git a/models/perm/access/access_test.go b/models/perm/access/access_test.go index dc707b971be9..bd828a1e9d4e 100644 --- a/models/perm/access/access_test.go +++ b/models/perm/access/access_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 access_test diff --git a/models/perm/access/main_test.go b/models/perm/access/main_test.go index eb0abb74d1b8..837a9db437a9 100644 --- a/models/perm/access/main_test.go +++ b/models/perm/access/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 access_test diff --git a/models/perm/access/repo_permission.go b/models/perm/access/repo_permission.go index 3b709a3e8553..58c4299d165c 100644 --- a/models/perm/access/repo_permission.go +++ b/models/perm/access/repo_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 access diff --git a/models/perm/access_mode.go b/models/perm/access_mode.go index dfa7f7b7524a..c482e296bccf 100644 --- a/models/perm/access_mode.go +++ b/models/perm/access_mode.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 perm diff --git a/models/project/board.go b/models/project/board.go index 8428fca7220f..d8468f0cb55c 100644 --- a/models/project/board.go +++ b/models/project/board.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 project diff --git a/models/project/issue.go b/models/project/issue.go index da48d4731e65..3269197d6cde 100644 --- a/models/project/issue.go +++ b/models/project/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 project diff --git a/models/project/main_test.go b/models/project/main_test.go index 2e97b3a5ef3b..816cbeb94a04 100644 --- a/models/project/main_test.go +++ b/models/project/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 project diff --git a/models/project/project.go b/models/project/project.go index 5dee241dcf3d..0d655e333eb3 100644 --- a/models/project/project.go +++ b/models/project/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 project diff --git a/models/project/project_test.go b/models/project/project_test.go index f33fb3351af6..4fde0fc7ce3a 100644 --- a/models/project/project_test.go +++ b/models/project/project_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 project diff --git a/models/pull/automerge.go b/models/pull/automerge.go index 16ab5af09391..d7e04eafa6ca 100644 --- a/models/pull/automerge.go +++ b/models/pull/automerge.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 pull diff --git a/models/pull/review_state.go b/models/pull/review_state.go index 1c465bf76677..1a2b1e165f73 100644 --- a/models/pull/review_state.go +++ b/models/pull/review_state.go @@ -1,6 +1,6 @@ // 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 pull import ( diff --git a/models/repo.go b/models/repo.go index 2510f0e6bca4..ca4f60a2f333 100644 --- a/models/repo.go +++ b/models/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 models diff --git a/models/repo/archiver.go b/models/repo/archiver.go index 84358ce0dc69..11ecaff34c69 100644 --- a/models/repo/archiver.go +++ b/models/repo/archiver.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 repo diff --git a/models/repo/attachment.go b/models/repo/attachment.go index 428f370a0baa..8fbf79a7a053 100644 --- a/models/repo/attachment.go +++ b/models/repo/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 repo diff --git a/models/repo/attachment_test.go b/models/repo/attachment_test.go index d7c2f529dbca..21fba227a5c0 100644 --- a/models/repo/attachment_test.go +++ b/models/repo/attachment_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 repo_test diff --git a/models/repo/avatar.go b/models/repo/avatar.go index 84b9f5ac21eb..9ec01bc04b26 100644 --- a/models/repo/avatar.go +++ b/models/repo/avatar.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 repo diff --git a/models/repo/collaboration.go b/models/repo/collaboration.go index c558259e4683..04d92c415fec 100644 --- a/models/repo/collaboration.go +++ b/models/repo/collaboration.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 repo diff --git a/models/repo/collaboration_test.go b/models/repo/collaboration_test.go index cbf46dd286d0..d240e9cbef04 100644 --- a/models/repo/collaboration_test.go +++ b/models/repo/collaboration_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 repo_test diff --git a/models/repo/fork.go b/models/repo/fork.go index b54c61c425fd..eafbab0fb171 100644 --- a/models/repo/fork.go +++ b/models/repo/fork.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 repo diff --git a/models/repo/fork_test.go b/models/repo/fork_test.go index 9e08d8136e2f..d02bf91dd94d 100644 --- a/models/repo/fork_test.go +++ b/models/repo/fork_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 repo_test diff --git a/models/repo/git.go b/models/repo/git.go index 509020565a17..7ae88058dc86 100644 --- a/models/repo/git.go +++ b/models/repo/git.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 repo diff --git a/models/repo/issue.go b/models/repo/issue.go index 9f0fa3bad9ce..0d27cc041e6c 100644 --- a/models/repo/issue.go +++ b/models/repo/issue.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 repo diff --git a/models/repo/language_stats.go b/models/repo/language_stats.go index 5c4cecdca1fd..f8f5dd041fa1 100644 --- a/models/repo/language_stats.go +++ b/models/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 repo diff --git a/models/repo/main_test.go b/models/repo/main_test.go index f6d704ca6587..bb9be54b9c54 100644 --- a/models/repo/main_test.go +++ b/models/repo/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 repo_test diff --git a/models/repo/mirror.go b/models/repo/mirror.go index 297ffd594a72..63b26b5d0cd8 100644 --- a/models/repo/mirror.go +++ b/models/repo/mirror.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 repo diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index fa876ee560ac..55fde8b838eb 100644 --- a/models/repo/pushmirror.go +++ b/models/repo/pushmirror.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 repo diff --git a/models/repo/pushmirror_test.go b/models/repo/pushmirror_test.go index 5087e3009577..2b3c5be292c7 100644 --- a/models/repo/pushmirror_test.go +++ b/models/repo/pushmirror_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 repo_test diff --git a/models/repo/redirect.go b/models/repo/redirect.go index f28220c2afea..92a011a45354 100644 --- a/models/repo/redirect.go +++ b/models/repo/redirect.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 repo diff --git a/models/repo/redirect_test.go b/models/repo/redirect_test.go index 90114667e599..8255704d594a 100644 --- a/models/repo/redirect_test.go +++ b/models/repo/redirect_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 repo_test diff --git a/models/repo/release.go b/models/repo/release.go index a92e4bb6e555..da6235988a70 100644 --- a/models/repo/release.go +++ b/models/repo/release.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 repo diff --git a/models/repo/repo.go b/models/repo/repo.go index a3dac8383f7b..f58b7de6edf0 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.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 repo diff --git a/models/repo/repo_indexer.go b/models/repo/repo_indexer.go index 67ba3382dc6e..9667c562443a 100644 --- a/models/repo/repo_indexer.go +++ b/models/repo/repo_indexer.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 repo diff --git a/models/repo/repo_list.go b/models/repo/repo_list.go index abfa73abb905..6d9dd9ec65ac 100644 --- a/models/repo/repo_list.go +++ b/models/repo/repo_list.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 repo diff --git a/models/repo/repo_list_test.go b/models/repo/repo_list_test.go index 926ed07e9e9e..bfbceb7e2ec3 100644 --- a/models/repo/repo_list_test.go +++ b/models/repo/repo_list_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 repo_test diff --git a/models/repo/repo_test.go b/models/repo/repo_test.go index 617ec12798d4..081221d1dfeb 100644 --- a/models/repo/repo_test.go +++ b/models/repo/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 repo_test diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go index c21c1e7a79e2..e20d03e2c5ae 100644 --- a/models/repo/repo_unit.go +++ b/models/repo/repo_unit.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 repo diff --git a/models/repo/star.go b/models/repo/star.go index c7459b365592..b3d3d795f8f5 100644 --- a/models/repo/star.go +++ b/models/repo/star.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 repo diff --git a/models/repo/star_test.go b/models/repo/star_test.go index 1b53e17d2732..7221a6c8ebba 100644 --- a/models/repo/star_test.go +++ b/models/repo/star_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 repo_test diff --git a/models/repo/topic.go b/models/repo/topic.go index db41c85a33c8..05f50cfe4635 100644 --- a/models/repo/topic.go +++ b/models/repo/topic.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 repo diff --git a/models/repo/topic_test.go b/models/repo/topic_test.go index 8187addb81fe..8a8728168d45 100644 --- a/models/repo/topic_test.go +++ b/models/repo/topic_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 repo_test diff --git a/models/repo/update.go b/models/repo/update.go index 39c89a7c7c19..3aef280ff80b 100644 --- a/models/repo/update.go +++ b/models/repo/update.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 repo diff --git a/models/repo/upload.go b/models/repo/upload.go index 13b6055701fe..3b1b97c6d61f 100644 --- a/models/repo/upload.go +++ b/models/repo/upload.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 repo diff --git a/models/repo/user_repo.go b/models/repo/user_repo.go index 9ca367f556b7..0d5b8579e01c 100644 --- a/models/repo/user_repo.go +++ b/models/repo/user_repo.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 repo diff --git a/models/repo/user_repo_test.go b/models/repo/user_repo_test.go index 640914592090..7816b0262a54 100644 --- a/models/repo/user_repo_test.go +++ b/models/repo/user_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 repo_test diff --git a/models/repo/watch.go b/models/repo/watch.go index ecc25ee32b5c..00f313ca7cc5 100644 --- a/models/repo/watch.go +++ b/models/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 repo diff --git a/models/repo/watch_test.go b/models/repo/watch_test.go index 18a2d5d5fdf3..8b8c6d6250c4 100644 --- a/models/repo/watch_test.go +++ b/models/repo/watch_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 repo_test diff --git a/models/repo/wiki.go b/models/repo/wiki.go index c8886eaa3454..b378666a2062 100644 --- a/models/repo/wiki.go +++ b/models/repo/wiki.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 repo diff --git a/models/repo/wiki_test.go b/models/repo/wiki_test.go index 863173627628..629986f741a5 100644 --- a/models/repo/wiki_test.go +++ b/models/repo/wiki_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 repo_test diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index 684d0e63a02c..2c04cb442b2c 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -1,7 +1,6 @@ // Copyright 2016 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 models diff --git a/models/repo_collaboration_test.go b/models/repo_collaboration_test.go index 77034b65d229..94c5ab529155 100644 --- a/models/repo_collaboration_test.go +++ b/models/repo_collaboration_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 models diff --git a/models/repo_test.go b/models/repo_test.go index a8358e307d8e..da66b16136ac 100644 --- a/models/repo_test.go +++ b/models/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 models diff --git a/models/repo_transfer.go b/models/repo_transfer.go index 067ab4122f0a..6f02ab45fe25 100644 --- a/models/repo_transfer.go +++ b/models/repo_transfer.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 models diff --git a/models/repo_transfer_test.go b/models/repo_transfer_test.go index 7904b04e98c3..9720071a989b 100644 --- a/models/repo_transfer_test.go +++ b/models/repo_transfer_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 models diff --git a/models/system/appstate.go b/models/system/appstate.go index bc18c5181df8..737853767890 100644 --- a/models/system/appstate.go +++ b/models/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/models/system/main_test.go b/models/system/main_test.go index a56c76aedcd2..94e290644704 100644 --- a/models/system/main_test.go +++ b/models/system/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 system_test diff --git a/models/system/notice.go b/models/system/notice.go index 3276fa3ffba4..e598abe22251 100644 --- a/models/system/notice.go +++ b/models/system/notice.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/models/system/notice_test.go b/models/system/notice_test.go index 768bcca66cdd..01eb9b57a51f 100644 --- a/models/system/notice_test.go +++ b/models/system/notice_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 system_test diff --git a/models/system/setting.go b/models/system/setting.go index 22119ee5e6fa..dc6145b417e4 100644 --- a/models/system/setting.go +++ b/models/system/setting.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/models/system/setting_key.go b/models/system/setting_key.go index 14105b89d0d3..ad083ed1ead9 100644 --- a/models/system/setting_key.go +++ b/models/system/setting_key.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 system diff --git a/models/system/setting_test.go b/models/system/setting_test.go index d25fc05f31d1..3ff5ba252089 100644 --- a/models/system/setting_test.go +++ b/models/system/setting_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_test diff --git a/models/unit/unit.go b/models/unit/unit.go index b83bd61831a4..c4743dbdb407 100644 --- a/models/unit/unit.go +++ b/models/unit/unit.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 unit diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go index 46f889746aa3..17ff75c089f1 100644 --- a/models/unittest/consistency.go +++ b/models/unittest/consistency.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 unittest diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index e39acd766f93..9fba053825b9 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.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 unittest diff --git a/models/unittest/fscopy.go b/models/unittest/fscopy.go index ff815e729d47..631da49f2d5b 100644 --- a/models/unittest/fscopy.go +++ b/models/unittest/fscopy.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 unittest diff --git a/models/unittest/reflection.go b/models/unittest/reflection.go index 68c312ac9e38..1b149b19fe07 100644 --- a/models/unittest/reflection.go +++ b/models/unittest/reflection.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 unittest diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 2e6c25ae48f5..87d9304618b0 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.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 unittest diff --git a/models/unittest/unit_tests.go b/models/unittest/unit_tests.go index c8673debed02..b2f19196c70e 100644 --- a/models/unittest/unit_tests.go +++ b/models/unittest/unit_tests.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 unittest diff --git a/models/user.go b/models/user.go index 0fc28ff055a7..715d0e3866d5 100644 --- a/models/user.go +++ b/models/user.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 models diff --git a/models/user/avatar.go b/models/user/avatar.go index f5237667464d..ce25139b5f74 100644 --- a/models/user/avatar.go +++ b/models/user/avatar.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/models/user/badge.go b/models/user/badge.go index 5ff840cb8c35..948b0b106561 100644 --- a/models/user/badge.go +++ b/models/user/badge.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 user diff --git a/models/user/email_address.go b/models/user/email_address.go index b6d372f04d7b..70394edb23f5 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -1,7 +1,6 @@ // Copyright 2016 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 user diff --git a/models/user/email_address_test.go b/models/user/email_address_test.go index b9acaa1113ae..7e523a165dfc 100644 --- a/models/user/email_address_test.go +++ b/models/user/email_address_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 user_test diff --git a/models/user/error.go b/models/user/error.go index 3fe4ee6657ec..306b9ee9d9b8 100644 --- a/models/user/error.go +++ b/models/user/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 user diff --git a/models/user/external_login_user.go b/models/user/external_login_user.go index 496717c57bcf..f70f3effcc52 100644 --- a/models/user/external_login_user.go +++ b/models/user/external_login_user.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 user diff --git a/models/user/follow.go b/models/user/follow.go index a02ebdb8c2dd..7efecc26a781 100644 --- a/models/user/follow.go +++ b/models/user/follow.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 user diff --git a/models/user/follow_test.go b/models/user/follow_test.go index ad2f7cf7429f..fc408d5257c1 100644 --- a/models/user/follow_test.go +++ b/models/user/follow_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_test diff --git a/models/user/list.go b/models/user/list.go index 6c43c961c8da..6b3b7bea9ad3 100644 --- a/models/user/list.go +++ b/models/user/list.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 user diff --git a/models/user/main_test.go b/models/user/main_test.go index b2416a3e0a72..0d76aacd5f89 100644 --- a/models/user/main_test.go +++ b/models/user/main_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 user_test diff --git a/models/user/openid.go b/models/user/openid.go index f8e8a787e6ee..194670504896 100644 --- a/models/user/openid.go +++ b/models/user/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 user diff --git a/models/user/openid_test.go b/models/user/openid_test.go index d20b72d19af4..6f0eae55e73a 100644 --- a/models/user/openid_test.go +++ b/models/user/openid_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 user_test diff --git a/models/user/redirect.go b/models/user/redirect.go index af8d6439ad99..9d8903c05994 100644 --- a/models/user/redirect.go +++ b/models/user/redirect.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/models/user/redirect_test.go b/models/user/redirect_test.go index a5b19d4f04a6..3d2ea3aeec74 100644 --- a/models/user/redirect_test.go +++ b/models/user/redirect_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_test diff --git a/models/user/search.go b/models/user/search.go index fa4a021a473e..622e47ccffc5 100644 --- a/models/user/search.go +++ b/models/user/search.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 user diff --git a/models/user/setting.go b/models/user/setting.go index 41de499de97c..a17483f9af73 100644 --- a/models/user/setting.go +++ b/models/user/setting.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 user diff --git a/models/user/setting_keys.go b/models/user/setting_keys.go index d48ac930527a..10255735b317 100644 --- a/models/user/setting_keys.go +++ b/models/user/setting_keys.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 user diff --git a/models/user/setting_test.go b/models/user/setting_test.go index 5a772a8ce7cf..d0d612d25daf 100644 --- a/models/user/setting_test.go +++ b/models/user/setting_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 user_test diff --git a/models/user/user.go b/models/user/user.go index 1a71acb0b727..7e3ae388fb30 100644 --- a/models/user/user.go +++ b/models/user/user.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 user diff --git a/models/user/user_test.go b/models/user/user_test.go index 1cdfb5978c86..2ee4da0d67f7 100644 --- a/models/user/user_test.go +++ b/models/user/user_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 user_test diff --git a/models/user/user_update.go b/models/user/user_update.go index 9c9dc09bb234..66702e2a144e 100644 --- a/models/user/user_update.go +++ b/models/user/user_update.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 user diff --git a/models/webhook/hooktask.go b/models/webhook/hooktask.go index 92d9e9738333..2a37ff31d88d 100644 --- a/models/webhook/hooktask.go +++ b/models/webhook/hooktask.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 webhook diff --git a/models/webhook/main_test.go b/models/webhook/main_test.go index 39ef2da6a25c..8df569a3ccf4 100644 --- a/models/webhook/main_test.go +++ b/models/webhook/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 webhook diff --git a/models/webhook/webhook.go b/models/webhook/webhook.go index 1daf806c4e87..5defc67fd721 100644 --- a/models/webhook/webhook.go +++ b/models/webhook/webhook.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 webhook diff --git a/models/webhook/webhook_test.go b/models/webhook/webhook_test.go index 8c4838ebdc05..2bdafb61b698 100644 --- a/models/webhook/webhook_test.go +++ b/models/webhook/webhook_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 webhook diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index 9bcef69de18c..ed5c9990d65e 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 62068d53b3df..b5f978c4ddd2 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 fe6aba9058ae..299bdc43e336 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 defe498614f0..888254c9dae9 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 7fa2b09265ce..15399ca380e7 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 d192b9cdb277..ec5fa59842fb 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 beefde232f56..78ebf8e824e3 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 baec2cebc539..74e7a06d0615 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 0f14d285452f..f608387bfe90 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 976a6ddc7bf2..adcca923dd6c 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 2784e49d3460..aafd3c431b72 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 68cd7a8756d5..3a8d119bdd15 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 28546f603183..5a7f450937ad 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 8926fc6d7a20..249ce02335cb 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 39e93d716209..cca1482b1d0b 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 414d7631b5c7..a48e89860edb 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 08565d2f312a..c277d59c415f 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 e39b6f46d6b1..ec60a86100db 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 71fb9d2757f9..1beeb64cd6ca 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 2de77de00918..9ee926b059ba 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 a2acc5443894..5ef4ed379bec 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 270f05e1b0da..cb1803a231ac 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 a8d7090369e5..09a98bd0e9eb 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 cc7e2a791d01..63926d5f1908 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 44635fbb3bd5..23bcc73e2e60 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 88440633c272..ecfc179a5c4b 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 026f68f646ce..dddce202daf7 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 46cdd5293256..e920177f8944 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 2faa5acf3829..91e864ad2af7 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 df0947ec619f..994e58ac3cd3 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 87de898e0b80..81f4b464e6d3 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 d98b0a0cec3b..2e7d5bb603d9 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 7bb71f08ce78..8e056ff2ec5c 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 f418f77e46ea..1c8f7d55ba8c 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 9c26b011b679..2e2efd00f240 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 9dab3b0951bf..c5b0c2c54d2e 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 7dd2821aae25..b0c253100820 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 cc270affac52..c88ffd5aa5c7 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 bd64e1c5b1c9..221c27d0e13f 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 619826ff21b1..a87e8464666d 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 6bbed42ea54c..5eeeedc4e29d 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 a1210d2f05dc..51152142a581 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 6dd13c039dc0..fc56799b4736 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 b264a569ff5e..ce2eb1446dbb 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 7ff0ef112bb2..37b6ad86d49d 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 e5f303d26f6e..d29e393ab4d7 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 a7232a4658ab..abe767f4a5c4 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 b354ce6a48a1..61f29120a654 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 39eddd58dd5a..9dfc25333355 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 b3bfebe0c0e0..812f0e34b3a7 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 4b4c74525d1f..15779983fd1e 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 6654763e56f3..1502236034a1 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 1a10c4763a81..05c0f86218c9 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 b9d130e2a8ac..f49997a7875f 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 2231677d422c..dad02b171905 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 323fdbd2cc9b..911a49949e03 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 e6d882eb5b34..7cc29debbd03 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 0bd003da6cb3..735613504cae 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 47368bb28058..0d632b67c050 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 4f48d746b95c..f9c4ab6a9845 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 89260b86544e..39df29a86072 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 ce0f9a511b38..65a9d74b7752 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 617b472f0d16..3effd88f109c 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 fd2263c75fde..8cb5d09eb946 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 9e7977b5d554..24f50fa4713e 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 1a83c49e95a2..57cf2fae5ace 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 112964dbe14c..40eb5c0d35d4 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 a72c8b47e653..1fa99953a23f 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 78eb62d42dc8..107854e01335 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 6015a7371289..59842e40209b 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 0bba0e502e6d..8c4ef88ebe0e 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 7c11b2a89f87..ff3466cb3f6a 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 c33cf5c1116d..81cd1ac245ed 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 ec672abad277..4d780f3f0090 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 84f16b9af38a..4c8e57bf7948 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 b2414f46774c..1dcfc9b64dcf 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 55f782f8f673..49a1b148fb11 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 9713cda48b8f..900f1dd816bd 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 ca9a4c39c5a5..4291d737a4db 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 e8a543fea955..66c5018ee2a9 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 a0a672d3a517..21d410cfcb5c 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 5fc95dab72b7..95c6d03ab13d 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 09b84afa6c4c..3c75f588fdf7 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 7ed28a9c109e..5eb38ad063dd 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 093994856cae..6b90539fd981 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 89d912e460c5..c3ab4187b724 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 52fbcf547f72..cdce60831c9a 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 e0ab15dfd838..d1ec5980ceab 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 1112da43f8a6..20d76162c711 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 fe0c3509604e..c5497befe703 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 5a8e13c811f7..c627597fa3c9 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 b3e9699a020d..e4d85c4a18d9 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 474997acd855..77e3d4e8ef84 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 cefb3817bf35..390dfb43aa88 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 602b2e523ed1..bb560ac6a350 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 8afd9f44fd97..3ddca92fb34c 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 5d14cef55c9f..2025edc58ddf 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 d9f895739f2e..ea14a9b2c416 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 f5e5667c091d..498ed9c8d53e 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 b1bfd50b202c..41fca01d5713 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 9f5e336461a0..e79369e581c1 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 6f0e066f54d1..73df51390102 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 5a270454574b..ad50078d3ea9 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 8ae9168ea6e5..aa987de4477b 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 166e38bd247d..550e536cbd80 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 89a86a7f3e6b..3d4ef8599b78 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 1e14d3de6bb5..b73013ea1bd0 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 def252896fd4..2526cd121e41 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 281a1bb13579..d5d2f323afec 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 a80e062f0e55..4c4272880d6f 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 812d6739929d..7ed2a829038f 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 44e878fd4ea6..97d08aa8a87e 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 091e1a5c1cb1..6df26716be66 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 326fe8036b44..f29634e05e66 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 feb0dd31be18..75539c0d0a93 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 832b12213c88..fea75b481827 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 4bee8cd27a96..94277b7c1d19 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 9567affd0374..8864f54d1bf2 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 2a2b51e422f0..aa206409d0b6 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 89bb98162f40..511332eb5064 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 39f3f111623f..63374384f6bc 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 0d94494f11bb..d88fcd1a8c80 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 ae2acc3a5add..f567406822fc 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 52d25c9c7482..2dca2d0d344d 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 061adc108235..14710de61215 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 bb9d3bf8cef9..669f1b15d538 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 83e23545de52..c740a4e13eb9 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 341698ab34fe..20db5691ebe4 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 d7bca3b9486a..e469d2cab637 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 4bc359689670..1e331fac003e 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 3c1f6f5ffd65..23607c43abe2 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 fb8c22dfd357..1d6fb0018327 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 1a43d0dd4ab5..10ef3d83fba9 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 de71248508f6..0f865c52a8c8 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 ebfea8e702c2..dc10d451b3bb 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 c9aa5233e1e2..97e8ee47247b 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 5aca10f75257..392a95a4e619 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 bf83a10ed5a2..de69eaa2c894 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 cb36428604a6..5468318ca80c 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 18d62838df16..f5919d82dcae 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 091573787871..e3bfe496da70 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 c50f891224c8..46f93ce13ec0 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 2b51d5972086..ec8f1cce62fc 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 82c76bad20a4..90e609fc81c7 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 1f4d693a262d..155cb3cb7c85 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 dee4fc226ef2..fe3b6598d7d8 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 a8dd66df0bce..63539cb3a239 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 fe6d1f1e580c..c2297d89703e 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 ba216ce3e4a4..4da375c3211a 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 34e7178beab1..267671d8fa64 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 4a8dcfdf3537..226ef5df7319 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 075de6d25def..f6e32401e66e 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 fb5b63def949..8b94c69200c0 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 cecd3960da9d..23fddb014c1b 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 c1d4bd16655d..467721815018 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 18cce342895b..ee0505f29f90 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 061da8ca500c..49390f7c00c6 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 85ba7db23ed5..ad583a747981 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 93142034ec16..09bb2c8b3c84 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 2f459148a22d..cd8d26818495 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 c416eea13685..3585313f6ae3 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 8ba3ae4fdafd..4ba40d20af0d 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 13be2004ca2f..cff9724f0054 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 d9c50be6f7a6..d3a3dc8c837c 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 901a0aa2447a..6882874d2dc7 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 710f0de9f6b2..2c6df8b9c4ff 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 8fe9c404c3db..ef59ead9003b 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 56af2c640fd4..a0216d14a622 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 8a3707aa0918..7f44735f9f90 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 5397f24cb624..698b6c7074a6 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 5640011f4aec..7f0892f6f5e9 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 44ba0a36b1b1..184a2bc9dd0c 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 9f0b8653773f..026c73a28336 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 a3fc7e0c4216..14dcf14d8a0d 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 dc295765629b..ca19d3827e58 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 95c371884199..b1d0df6474a8 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 58a738e28bc6..fe788946e500 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 90259fd74664..8343e3484353 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 14fec3f9c6bd..b6c42a802f0d 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 13a7be778f58..35a705fea30f 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 7b3a5101f2b3..af8c0592fe22 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 075b59ad06c6..492438be3791 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 6b00a4fdc43a..8e92c30e5470 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 7575b116586b..b1b55c88a444 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 63f7254dea98..5b50bc82adea 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 25188d07e308..4803be58165f 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 a652e938fa5a..cdf076505d96 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 5542883288c6..99eb2b540b1a 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 daeb4b591f5b..74c76b40a444 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 503e774e7a33..9674eca275e2 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 baeb1149098f..a1d28f40e8c0 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 0234c77c0bea..d616d957412f 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 af448b01104a..9edc201fead7 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 397434e12f2a..54e424bb832a 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 d11c58e005eb..8a68a4574f1b 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 d766a8cac316..ac53d661b517 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 afd38ca25191..776d7ce3e15b 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 002e2525e2e8..d6e91f25a9a6 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 494a1613052a..668ed6799998 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 8585d824f91b..8aa06545d4cb 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 c6dec2898784..2bc75e7cf9b1 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 5d3aace52fdd..1fb631002b77 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 6a00473bb794..589349a72c9e 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 8ca170cd1f87..2a39148192cf 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 ba81bfc6dbbf..5fea5c0aea4b 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 e72016493622..e0e5e73fa335 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 dc4a5becb9df..16ea6bbd8a31 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 15f282c6e4af..3a02484bc23b 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 16501efb43fc..28f35d17a98e 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 a2620cba6954..d818d86a3a0c 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 c5c00f5445ee..db2944fc53d5 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 b59db8f490e7..b5b17f23b047 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 5ab38cd85252..c984ad6e20dd 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 3fa5c8da3e86..a203d5ce6d3d 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 ee61f6117970..3afaa334dbca 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 653f0a6f084c..e05f2510c4cf 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 3482f81e900d..d0ddef64e087 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 e5f1660b8ef3..2337e69c6afc 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 f5944dd29c21..856b8cef53c6 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 19edcf4c6cba..31d9f3d73b2d 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 bb010b58834d..f1afc5d0a6fe 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 3770004d6d71..92d3d107a742 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 3644d00f36e2..84b6ea40753e 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 2b2992c32a51..194dd12f7dbb 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 d999ccc02a81..a399118cf855 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 aff67a3b22f5..cda755886a8e 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 c512c7348e8d..30eee13669e4 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 480c5e44da7c..fa601e6533c6 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 5cbb5ffc94a8..185317e7a709 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 b41cfab7efb2..637685183e5a 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 611bef867274..da820ed88975 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 a439dabae18e..628faf509ff7 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 9a2d481b6310..718db700aede 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 d6342c928006..baedfe598063 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 c153e5d3be4e..0e0fc1cd012d 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 2cfbe4b2fa6b..18d427acd951 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 5432962784f0..f6bf9b0b9083 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 b9d975a1d50a..6b5b207ff360 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 21f019fb56f8..c7b4c101ef28 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 ba1dbd38f6a0..ca6ccc1b6648 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 10c1d67b9720..212ddf437cc1 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 0bb589e23138..a2620d2c801f 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 07ae51b8dd38..a2f58e224a94 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 1d0d1059e9fd..406fe6c8af36 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 30a460a943c5..e42d35cd49b8 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 c634905711f3..9b67589571c3 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 8ab2bdf41ff9..a1f8e0ff522a 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 95fe2dd1c3b1..4d20cfd483e7 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 3836c0588088..05e472c0833e 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 189975374614..7a9887728f18 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 a092e07f411a..1069310316ad 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 b93976df6a61..c781847471eb 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 84cd2974ec8e..65f5f78b148d 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 dafdb503b676..3219b939f40a 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 750233d4a71c..1247a81fea3c 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 49e54d147e71..624d2f4d4bd1 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 32790fb54bb3..a1984400d61d 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 79994e6e5be3..77675147b2cd 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 3ea1c8617848..6ee2639d34f9 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 a34d54bc0e19..00bcd5c90c67 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 dd3c9c977141..68c80967585d 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 fc58633f16e8..e7506eefa680 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 774dcc814991..bbcc6ba48719 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 9845ade3dda4..d07ab10db069 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 06923dfd25d3..c353d5b6880f 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 df255fa8758f..1de9ffc224b1 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 ba58236fbad1..33ba57a094c7 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 dff1cf0c60b1..952bddfb292d 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 42d22f06a2db..22827158e4c0 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 d21c86337e2a..d28b536e0245 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 97e32b89753b..ee8e3df62ff4 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 5b0279d1abb6..55d3c7bc0914 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 e8b9ff837088..ff0541d049a0 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 d39b1dcf2aac..068626c4faed 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 f4fe54b8cbea..1c01e25e29e2 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 a4a8b6324116..f9a1bc520a2f 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 f983fcd11d56..32379f2859d8 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 0bdf5a198746..f8bce3f4651f 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 c3863a64a6e1..0845642cd39c 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 3398719cf687..f43a83fb62b8 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 4361262a2f24..35691eec8615 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 aaf61aefcf36..f810e5c7aae5 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 88986f06d6b3..a1369301e043 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 0eedf4de1798..94277a6b8eb3 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 943966ed1559..3ae3cf077b2c 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 69f476865031..118abe2d4e8d 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 dc72981a9ec9..835551e00c6c 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 a1a3e7f363e3..ec0d6269bd56 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 8f6dcb1966c3..a8c7e379f66f 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 2a3a2116b413..b5e13d56a3b3 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 ed27cb1f55b7..f4302c23bcb5 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 d17f1f7b98e6..658b98feabd8 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 9cd8b15c9e04..41b5459fef62 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 d010b05ee56a..6b2e55f2fbfd 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 2fdd92c81099..649497aabb36 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 b26d516c683d..f86d2c54bedd 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 9535522bb682..1eee2465f14e 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 8ec74bc78d22..1c390060509e 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 15e23a0dac21..02781afe84eb 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 888198d4e9aa..efc7337b6b25 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 155f2866cae3..39d5234214d7 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 1d373506a406..445bd7765341 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 fc7c9b496725..8764d984ac10 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 b5cac55b52a4..c30be41544e0 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 4da87b48a309..e4c3882d4f8a 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 ea47e5d62442..54dac12fa0d2 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 1fe54d4265e4..942639a43444 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 aebd1562125a..4466f7ff34f9 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 d0cba7817c36..13386a320f01 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 cc2b9fe07721..f1ca23d342bf 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 95950548ece7..4a3732600bb9 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 0d3739fd98d7..829c217574e8 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 8e23721b867d..34e99653d6aa 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 5964ed8f8b95..3c8a736b30a6 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 47f77738c5f1..cd18a807d80b 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 4303ecf4c03c..73f908dfab55 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 33f68c8e8e96..819cdb521fa5 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 0045d793229d..56e39c392e33 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 519abf663d99..8ccb08179ca5 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 e03e6f74a7b6..490c3fa71b18 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 61af50b81a9d..e385020c67c1 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 c8758bf6bece..d7d28f28f83b 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 4b40d81ab721..d4496cff03fd 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 1c4f5b4a1951..ac4b3c8c4e1a 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 99a5fd340689..8c03f87d907c 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 f804447f2def..e93797de2ba7 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 cc917039d8ee..ba58835221b4 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 d07f5e609013..0e75e2adfd27 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 a2328a2288bf..5658839c6fc3 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 2140486a30d2..f84680205e88 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 597593eee153..cf42c9cceb7a 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 282fbb0598ec..506f86194cb9 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 5095b854650d..7af34a6cbc2d 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 612f78c76cb3..b9f5769be28b 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 0eeb2d70a5f1..f47776690f2c 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 ae00c3905fe8..80b19ba35f21 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 25b0f7b7a5ef..6746c40d1831 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 e57187a67782..32f26bffabb0 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 3d49620253e0..e844f801c4f7 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 3f5ebec90899..6e90847e06a9 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 84a02bfbbb39..50b438219b85 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 fa289986ccec..1e5c4707585e 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 fbb741d1cd8a..bb2c47f18e99 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 bd8449babfed..10d17ff8d3c9 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 f86512288672..7f714d723929 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 d502065259ec..84817ef1e4a5 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 245ff8dab0ba..2221a251bf1f 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 8dc88eb858f3..0ac25c2b2ac8 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 e4c0f3761dac..b4e9ade0ae4b 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 7854ac84dbb1..8a5075357440 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 fb37236d77eb..bbefbd380c25 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 1e9768e61869..6949966328c4 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 1ba75dbb68ec..f9c9cbc5f422 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 672edbf46d32..f7f5e885a3b4 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 103894d1abfc..3715f031af58 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 c7f8ee69f19c..e19f8f641979 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 8045c34c079a..ea34df0a3b2a 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 abbff1e435e8..5a8485e571b0 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 cd12cd8c171a..4acb678cd76e 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 b3289cb3c3b0..5a31e961fb58 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 950ee15b9107..624558c3f734 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 c2a6c4a38f78..e59f6c7c8424 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 b3b07404b451..c792ec2dc629 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 0c0fcce49d94..74142aa8632c 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 dcd80b05a97d..17f8dd133fcd 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 0447689b74cd..27ecaa830a60 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 7759c96056a9..ebd3672d6369 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 b2608aa09fea..64cda9d04751 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 92cf71407d69..f319f02ef174 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 27104e209c34..da997f645b21 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 cc13570afb97..7cb9f84b0d2d 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 f49fbe3ee42e..38f0eb10dad6 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 fa8218cf938e..1fd5456259ea 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 f3b725de67bd..34355b8f9c8a 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 ad925c32ce3c..e5b69331df7a 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 1e92a1b0b35f..234e72c295ea 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 dd520cd63f97..4e7500f0d67f 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 0946bdd40b35..ca1df6c763f7 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 923b3817b038..f92cf25e7bc5 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 75622595d969..22c2cf6fb32a 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 2e40c102bea8..1cacf5f37582 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 b5a054c642fe..a420c130c7e2 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 febe0f75c0eb..c5db3b346151 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 1b767b2e725c..dca109d6afc8 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 02957fc4edb1..8a0c340a6558 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 57571861aaad..ff642aa4fafc 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 b261bd024263..37b4c2ac9578 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 5da2291e036e..aac5b2178e82 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 6092a6782747..bc530bc148cc 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 7539952cf1c7..078a8028116f 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 f7d5a72ed231..728bc2f2ef72 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 99a8856f1e83..d979ea07f6fe 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 13795f3d7bc2..52e8ff9d0279 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 c70d236bdc9c..43652e314c0e 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 d029405664be..2f882c2cb86e 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 dc31b3189b5d..05ce70f38877 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 2f7deac88e23..dbed20ba3a5c 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 88e0c93de192..de5f072d2485 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 2bacd5dec02e..c67f79d0f2ae 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 123fa0e65aef..18f7fa22aea6 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 159c44ee6cd0..426e36ee58bd 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 a117a60815b4..c3e09bb8a915 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 a38289c9768d..63a3ffd19998 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 37ce7661f220..326d987ba536 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 e1d6efa7f026..039e934b3a4d 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 373986758096..a20253676e67 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 6ba3bd6a868a..17a8fa482e42 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 77b7a7ef419b..29151cb3cbc4 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 4d60879be372..ff3c86d3f84f 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 797576b1e7de..b98294001c28 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 feadc18b6a18..a0e1a77a6ed3 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 960e813533d1..c47b242cdc09 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 0ac9c87b1451..580157018419 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 bb228e0207a5..5bb3fb8930c9 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 3e28191b0626..556a4b939eed 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 a7d6a9df0b4c..256a376cf710 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 49236981b67f..37a5170dd3b8 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 98eb2c847843..6ea86eb0ddce 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 98d3824a85e4..6981d430ade2 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 fd38e6785991..c3946f38f155 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 9400cf695443..f9ee478d6346 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 5234814cfe48..dd9cc0095c52 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 2636fbe2880f..f9c3907e1723 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 01cca8fe6986..570d2e92c26f 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 120ff122d4e6..7ec399255d32 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 13763db98648..1181fa4d528b 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 3f8cafcfb536..ef00a45057f7 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 e21ec67e1fed..529262226fae 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 fb5e51d0c532..98b5919a73f2 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 6ee9d69687ce..be057c8c07b5 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 a17d4565603a..f4bc84268e7e 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 4d17441d8c1b..83a4b5b7afd6 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 6c895ce120b5..42c1ef416f4e 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 16cadefb891b..02f67248129d 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 2b844f4b0e5f..9a2b1e10b2fd 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 44714cd6ea5d..aafbdf779c2d 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 2b555e47e95c..dc72d0982a13 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 e8c7773e9706..74c3e7dfaa5e 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 9c04d7bfb4e5..634bbb17e621 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 892d718caa57..fa1b80ee82e3 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 f3e9bf20bcb4..36fe66570769 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 e43ed64fc6cd..4c0c3f0ec696 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 df367d10e21e..125728c4f131 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 2c45042fa8c0..14fb755606e9 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 e5963ebcd632..501757bfeda6 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 f1fc39991847..e2c73c8f3a0d 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 dbefa9c23670..ec2fa08b6b76 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 f52989b2e2e7..6789533339ce 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 9720c945ae8a..d616ffe3d3e0 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 e1f1f769ec73..fe2a2a7bd50f 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 63f98aa9c354..6c35dc86bd8b 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 938524e6dee2..e8565e5bb1f1 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 8ce0ad484e75..c611c14270dd 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 e208c1437894..027014270ade 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 21e5c9a27999..a8b62fdde72b 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 8dfd82a6d628..f09d6de2bf89 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 3efef3bece81..6eb7c2acd0a4 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 ba51260ebbee..bbf470cd7ad3 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 b1561f392bd2..f40d914a7bb5 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 2e1367e4c4f1..c176e1ddfc84 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 6df5bc1513f5..f1bc582ff069 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 7a72bda40e3b..8f02f652585e 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 7f14287de508..1272510067ff 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 77e3d3193a9e..c98317374837 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 628d9cebcd1e..49bd5071f698 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 30eabeb37a48..527072713ffa 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 1e7c77fdbf95..c5be906b35e6 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 35f66d9fa5bc..44a84f220315 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 2f7ea1837325..06a28c4a601e 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 61730544b078..f0cd366c1283 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 10333b204d65..f437f13683ca 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 2acf9d84b0ca..5439a86bd8f2 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 64d9b323e512..ec85c425d3a0 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 b12771b686a8..a280663b27ed 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 f8c92e824fdf..32bdf3bfa259 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 ac1d80c860f4..42026f9b1054 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 fe250c645430..4878f88ad1d9 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 8b58d6af336c..5e4bf5d67112 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 672924a63658..cd74ee574366 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 10120bf85ded..e85ca79253f7 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 bb98d468fb09..c33b79426ed4 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 9ad95badeb95..c6fb9447b705 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 bba2c54ad21f..6975e0290773 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 a166a935a677..22ee64f8e206 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 79f69f07ce85..ee00a5428ab6 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 028023d50032..431f48390c8b 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 949c4528931e..9b92398bacd9 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 2691ab02f51e..fbedb8e5b93c 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 c00f62027661..c7526714c65c 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 b1820e73acaf..318610355e43 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 b0835c896fee..8f83abf42c0e 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 84ab235d5efb..039e95241cf5 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 65fb816537de..42d34c806ce1 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 e581ba75f305..84d6dd98a5a1 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 880770f07395..1e5259fcfba6 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 87e0594ecfbf..8f8215c71d8d 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 d1bf7239eb94..f2d3dbdc970f 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 6daf3fc96ecb..9372694b87a6 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 dae32f75a851..406f64784ce8 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 8e0322bb906d..405726182dcb 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 477d5dd81f1d..491ae5d15ea7 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 5245a35f7717..22eeb75c4017 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 bdf04a363b79..244927880e92 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 91b70dc588a3..1777d169c108 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 8fd0c8f055bd..5cbbf8313c94 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 507adadb1fa7..835cee3a3648 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 97c7cff4c100..dd3c5df82db3 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 041f0dcfb927..9c24b23fa933 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 b83d8199b9d7..44c03f999ee7 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 1b927aa3b674..ad835ae4d428 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 7d6eec151f4c..a47f9b2dc83d 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 7bd741d0c8bd..2ae4bc73d2ec 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 c43f1e09898a..8bee890aadb2 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 304078284581..94a9b26aa695 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 25fb15e300f3..c7e05e666967 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 e86e0d4535e1..646bf35cc674 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 c967d3b741be..8e9f3a8976f6 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 c5fd7d60bfc1..5726a8fb1b4b 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 139fa4c918d8..1cb9a50f6731 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 4d7d294a921e..a95b9c2e9946 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 65072a959948..cd7176c238d5 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 42134fa7adab..007790f2a962 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 4e4b4000b1a8..1fa711b359c3 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 f1360f447883..a90eb8a764ac 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 21af0394690b..53646718e09b 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 e7edc7a95e52..b84d1cfea877 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 b1c99d851363..0a189ecebf91 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 f9de37210fe5..6fdfb81e0318 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 8c5d7d82eb46..7b0c550ace39 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 928dd497401a..fcbc44249dc7 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 474b73293cce..68a2e87204e3 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 9a4496512444..2da79adb3beb 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 74ec6618a534..ae0736e8307c 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 9475887ecc7f..a76de2797ffc 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 cb397d81c45d..29cdca8fbfda 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 4e5545739592..be06c47478fd 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 1f18868d8ea4..c1037cfb27ed 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 a90be2a68756..481ca969b1fb 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 26415102860d..a80df47ab486 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 583d9a6e2bce..acab3eb58004 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 266bbc3c5aa3..a05f77a97e0f 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 8b8587e09bb5..0e67b18a3e35 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 46d4027d145f..1b1c8f7e7f5c 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 0ff1d814abcf..8f0437be8a0a 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 686b04365742..6f8e875c1d41 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 1d9535360a01..7372fc998d99 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 5a9b7054b9da..7324328ee30d 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 fd41bdd7cc3a..c262234b6a28 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 4b10f3dc6e56..2f6d08b6b88b 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 8e5b864e2413..6a0847bd7e2b 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 2bd0322d06fa..9ddce97dafef 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 6cfd99156f08..6492af82d2c0 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 62201032c740..120fbb5bda8e 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 059273dce4be..04d6e5583461 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 af9041ade367..9d16a2360bc6 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 56505b0ca414..53e09e8dad82 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 53fb0066d995..fed33395edec 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 d3bb33b24839..a67d0d849a0c 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 d0406dbf9028..19594369be63 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 d2eb6ebcd7ef..7b4bfc5c7b6b 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 62ca1d82e886..082538c3858e 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 df7310b09b46..68892a219825 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 0e7f5a55ab12..f77ee659748c 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 075152db59cd..32f74aa072cb 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 ffd8b7aa014b..256bbb7a5281 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 c39d4411086e..cfb0f5466840 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 0bfd7dcb4dd3..51e36c3419bd 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 14953765abbc..ceb65c1c8d24 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 63007b84791f..ab879b272e70 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 72cb6df7a43c..21d4f8993611 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 6b601c008fe9..9ec14f2caa74 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 166ea0b9829c..cad2c685bd6a 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 1a25716ccb76..5aaa2a9e6430 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 5d5b06b648d7..a439a2459223 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 0749036cb7ef..994c54e8590d 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 f7b42d674c04..912f820ede0c 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 1b83e3271f0c..a7d3b9ce1f69 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 86681bf9d75a..117eb0bed297 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 2f6f502af639..0739653eea48 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 7becd9433542..38beca5e99ae 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 23e0c383b8b4..dfde79190c3e 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 f52a5ed3c90a..39c6a06a4225 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 4c2fdbf73dbb..0db0a25fd448 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 21afd636c74a..eb7774afbcb5 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 5715f2585b95..96c7a271a923 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 8a36b0b266ad..20230250ec3f 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 f0600a192d96..b722e32ca070 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 45c3f6294ab5..00166b7a07e5 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 e13ec05d0185..4a1085ba5012 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 2aadd8638e55..5c622797f441 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 ace783ebbcfe..a840cf1820c7 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 56408313ee4d..8d907a47e568 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 15d17cdda7e3..ceade1ddd2f7 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 72b40f7cf24c..fa7a20db8b5b 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 7e150687ef03..a3904af80eec 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 3709106315f8..6b4c0bc111a2 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 8e8a8a2705d2..21e7751f765e 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 c21c466cb075..596a551e0d48 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 6fd1eb624a77..802c8d3e576f 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 3fd9088ce385..7fbf4cb46d8a 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 1e98c59ba49c..b4c58623fd29 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 3b2a8b599a50..2df5099de962 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 10bd9e62ceb2..95db0debadca 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 4401a2801c17..69f323fa990a 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 fbdd6c90aa86..0059535bea80 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 f627241b2630..f64bb83af9ba 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 ca2af4865736..810be8f521d9 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 38ce60bbe227..3fe40389b1f4 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 cf6601704edf..16f3d9dd26b7 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 1f3bc04e8640..864cb8f50a31 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 2f9c8992a168..946a6ec7e78e 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 55a516a975ad..b3e98df1953d 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 ce1a9fe4be36..328d7e47c8e8 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 29928bd97e5e..27b9d05a75c7 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 bddc945a5c70..4eaf5a255d11 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 0bf4b94ae1f3..6ffbc74a519b 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 80ee1ccf1774..4a7d89528807 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 294d56a953d0..fea193e86b5d 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 58aa3b83390e..86b221e1feb0 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 606785a4fdad..2e89a9eefcf5 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 09e21387df49..3df5a0be9914 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 90c4a2107bbd..e48b1a493db2 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 ed42b24be81b..c1d8b902ec3a 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 e83d0437ceff..c73e51b1ab0f 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 81516894a58f..c5e96f335690 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 4cfa5538c8fc..3a5ae34df19a 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 a72b04119a9a..6a11e040afb3 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 a2ebf7df93b5..ff9b0aea1d61 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 ee487607c3b0..08eed59a89c8 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 cca1de76a7d9..b6abd294f17d 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 ef01fbcc3e85..da7ab7b98f5d 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 4e13d92d414d..e0f0a263f300 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 7c1a8930cee5..fbfc1f22924c 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 99e5ce9cb3a0..6f075d54b79d 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 b388c50db2bc..e2e48862f581 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 deee8cd0296d..765501d4321c 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 fb0c2aaf9f45..65a6e5000331 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 b1c283c488d5..3f2e4c59bbd0 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 e022a0daad84..ded52c14268a 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 d234d531f3dc..e0f8350afb11 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 a86e71a8c8b0..7d25a61fedfd 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 95671e791a4e..5fa9e17c8a13 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 5ebae7afef34..ec83e9ac3313 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 81ea66016140..7ab523822b42 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 0cac1280f344..a257e7c1da3e 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 7f7cbe702fb1..7ebb327ae6eb 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 bcb2cbaf3fe2..6f1d3cf53959 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 a22ea4d777fc..cc9d0e976f40 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 1cd7669c0095..8f421d9e4bfe 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 963f79c3c6b1..61e49adb765e 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 ed1628ab473c..7686d3f289f7 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 1875b6334953..57ae8b2a9df2 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 d0380cac3d8d..c2f7a0e57933 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 8473d450510c..295ba7c10e72 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 9350b5e96b9e..2e1dde00f6ac 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 36b2aff575f1..4618db9a769d 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 a81b0bc1acd5..7f64ccf908e9 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 3fb9e6d6d05f..637209ad807e 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 d8ed43a1cd2f..4048c9acd2d2 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 0f4605c1bbb5..76a91522bad2 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 853519e22416..90f574127d11 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 fc311aa61b4c..5a1009bfa3d8 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 e50928e8c260..c9fef953ce70 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 a3b47c459863..dbce94fc3bdd 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 816fb3764c5e..bc3f93aad7d0 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 734b3a6acc20..cd107158644b 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 d258b04f774a..f2c3242e9a45 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 74410f43f9f0..768bc662cefc 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 8cadd6b918f8..11b915c2617a 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 af49d7b06a4b..eee401a23f43 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 3b3758efc049..9129ae79a136 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 49891ef02496..9ac778dfd3ef 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 08e491dbaf22..63bd447bf3e6 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 ec9d4ec167a9..79a29c8b3b6d 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 41311aa13f3c..87d6c2f09a99 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 6ad3e88ba5ee..77a33d3c49d9 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 8e3e138e04b7..bfddf90e92bc 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 83ef58561de5..16d5a1965f69 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 d765e27733fe..e5d7561beff6 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 d319faad0984..2ea293a2be85 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 c41f7a008c22..e732094c298a 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 2baa71664ed2..f2721df1adba 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 3657efc919ed..6e69dd19cc0d 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 3d4ddec21cb2..03013f713395 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 b0ea448a1cec..5794df1ebf33 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 d05ee9fe4afa..d1e38faf5f1f 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 685b2699b06a..f1ea2574f186 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 78166cfdff48..0bcfd45ca410 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 13461915e6f3..017ed45f8c04 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 1e256aa8650c..4d1213a52c05 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 5a12c2e2618d..434dc4236e00 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 be6ba372fdfb..969998c59260 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 552f5b866a5b..17345cbc49d9 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 2da2bc5dc4eb..f2def7b0ece2 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 49de29ab67a9..0a4a8bbcfbf9 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 b682f376d9ad..daf96bda7e23 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 2e6f7f68b0c0..032a6c0872c9 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 e505a6ee4aaa..912bfb3d5fde 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 96c66df92b23..75fcf634a967 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 6df47ca56821..9d3a8dcfac21 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 91b0ef9455e1..34fe070d22d4 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 c054fbe7b6c0..ef0d01e80f16 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 aa8a76552448..9ca93784a85c 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 cbaed7e66ac2..1bf622e61d63 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 8e49c7855e5d..3381846b863f 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 9bdbdb4a7755..52f383f69834 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 2d6458b9b5a5..3af7387c4741 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 afe1bcf425df..efcb2767340c 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 3cb620660203..39f7fa5d65ae 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 d737f6ccbbca..75d062d7aaaa 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 cced9717be0a..733f00a1d566 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 b5904d6713a6..7c1aaf6daf73 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 7de686498a22..43189940ee20 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 d1d4a864e364..f2d7cc692d28 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 f4018527c029..f60be4bbdb47 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 f620da5eea57..34add27214b8 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 4341b1bf5d18..cd72aabae5e6 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 801afe92c925..232444cb8374 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 7e263db5a26e..0d5e7655431c 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 9bb38af1c8b0..499bc2c7aad9 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 9cea7e281789..2ab5960373cb 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 cf3b50725d8b..d1b0ff0cda6d 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 7715b0b5d37f..aa25ec3a2716 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 5e225f32e4e4..34a2d3389301 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 b55b87606983..0ff9529fae90 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 9084cfa07472..6778e208cf37 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 diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go index 0d8b9ce61eeb..b523725c4895 100644 --- a/routers/api/packages/api.go +++ b/routers/api/packages/api.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/routers/api/packages/composer/api.go b/routers/api/packages/composer/api.go index ed52d165135b..a3bcf80417c7 100644 --- a/routers/api/packages/composer/api.go +++ b/routers/api/packages/composer/api.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/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go index a19433c6f099..c6e0593b42f5 100644 --- a/routers/api/packages/composer/composer.go +++ b/routers/api/packages/composer/composer.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/routers/api/packages/conan/auth.go b/routers/api/packages/conan/auth.go index 00855a97a47a..fe33e2c74043 100644 --- a/routers/api/packages/conan/auth.go +++ b/routers/api/packages/conan/auth.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/routers/api/packages/conan/conan.go b/routers/api/packages/conan/conan.go index e7c891b35f9c..d538cc7d397d 100644 --- a/routers/api/packages/conan/conan.go +++ b/routers/api/packages/conan/conan.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/routers/api/packages/conan/search.go b/routers/api/packages/conan/search.go index 39dd6362aa48..2bcf9df162b9 100644 --- a/routers/api/packages/conan/search.go +++ b/routers/api/packages/conan/search.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/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go index 770068a3bfb7..948001dcad79 100644 --- a/routers/api/packages/container/auth.go +++ b/routers/api/packages/container/auth.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/routers/api/packages/container/blob.go b/routers/api/packages/container/blob.go index 06b450de02d5..fd5819d506f3 100644 --- a/routers/api/packages/container/blob.go +++ b/routers/api/packages/container/blob.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/routers/api/packages/container/container.go b/routers/api/packages/container/container.go index 7af06a9171c7..cbbdf8eb880f 100644 --- a/routers/api/packages/container/container.go +++ b/routers/api/packages/container/container.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 container diff --git a/routers/api/packages/container/errors.go b/routers/api/packages/container/errors.go index 0efbb081ca2f..1a9b0f32d2fe 100644 --- a/routers/api/packages/container/errors.go +++ b/routers/api/packages/container/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 container diff --git a/routers/api/packages/container/manifest.go b/routers/api/packages/container/manifest.go index 64c958c2d06c..350933f3d2f8 100644 --- a/routers/api/packages/container/manifest.go +++ b/routers/api/packages/container/manifest.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/routers/api/packages/generic/generic.go b/routers/api/packages/generic/generic.go index 1c233da20f6f..5fba02cacd46 100644 --- a/routers/api/packages/generic/generic.go +++ b/routers/api/packages/generic/generic.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 generic diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go index 11291ca14e06..af863bc4b91d 100644 --- a/routers/api/packages/helm/helm.go +++ b/routers/api/packages/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/routers/api/packages/helper/helper.go b/routers/api/packages/helper/helper.go index 8cde84023f09..660aaec1a3a5 100644 --- a/routers/api/packages/helper/helper.go +++ b/routers/api/packages/helper/helper.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 helper diff --git a/routers/api/packages/maven/api.go b/routers/api/packages/maven/api.go index 4ca541dd6f37..167fe42b56d5 100644 --- a/routers/api/packages/maven/api.go +++ b/routers/api/packages/maven/api.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/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go index 3125062b9201..0ca3fa179394 100644 --- a/routers/api/packages/maven/maven.go +++ b/routers/api/packages/maven/maven.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/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go index 490387a0e4f8..f8d50f03cf50 100644 --- a/routers/api/packages/npm/api.go +++ b/routers/api/packages/npm/api.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/routers/api/packages/npm/npm.go b/routers/api/packages/npm/npm.go index 6c11286a86ce..4306d5ba363c 100644 --- a/routers/api/packages/npm/npm.go +++ b/routers/api/packages/npm/npm.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/routers/api/packages/nuget/api_v2.go b/routers/api/packages/nuget/api_v2.go index 60a5d9c0e488..c545d0fc4e94 100644 --- a/routers/api/packages/nuget/api_v2.go +++ b/routers/api/packages/nuget/api_v2.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/routers/api/packages/nuget/api_v3.go b/routers/api/packages/nuget/api_v3.go index bb3e447bd647..b5900b6c0b77 100644 --- a/routers/api/packages/nuget/api_v3.go +++ b/routers/api/packages/nuget/api_v3.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/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go index 1dad45264855..2be102a38baf 100644 --- a/routers/api/packages/nuget/auth.go +++ b/routers/api/packages/nuget/auth.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/routers/api/packages/nuget/links.go b/routers/api/packages/nuget/links.go index 618b54ae8dee..1b02e4618467 100644 --- a/routers/api/packages/nuget/links.go +++ b/routers/api/packages/nuget/links.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/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go index 06aaca596d5d..d6f7d1d7f66c 100644 --- a/routers/api/packages/nuget/nuget.go +++ b/routers/api/packages/nuget/nuget.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/routers/api/packages/pub/pub.go b/routers/api/packages/pub/pub.go index 26cb9fbb9a63..247950a214ae 100644 --- a/routers/api/packages/pub/pub.go +++ b/routers/api/packages/pub/pub.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/routers/api/packages/pypi/pypi.go b/routers/api/packages/pypi/pypi.go index 76801a92e12b..826f58095e70 100644 --- a/routers/api/packages/pypi/pypi.go +++ b/routers/api/packages/pypi/pypi.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/routers/api/packages/pypi/pypi_test.go b/routers/api/packages/pypi/pypi_test.go index 56e327a3472a..3023692177fd 100644 --- a/routers/api/packages/pypi/pypi_test.go +++ b/routers/api/packages/pypi/pypi_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 pypi diff --git a/routers/api/packages/rubygems/rubygems.go b/routers/api/packages/rubygems/rubygems.go index f0b00f42c365..c1a10b5e78f3 100644 --- a/routers/api/packages/rubygems/rubygems.go +++ b/routers/api/packages/rubygems/rubygems.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/routers/api/packages/vagrant/vagrant.go b/routers/api/packages/vagrant/vagrant.go index 746a2b19ba30..7b76ab79b058 100644 --- a/routers/api/packages/vagrant/vagrant.go +++ b/routers/api/packages/vagrant/vagrant.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/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 542ae7e1206e..80855809856c 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.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/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go index 649cb488b39c..2d945c27a51c 100644 --- a/routers/api/v1/activitypub/reqsignature.go +++ b/routers/api/v1/activitypub/reqsignature.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/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go index 48222f89ebb8..0e4e498e9824 100644 --- a/routers/api/v1/admin/adopt.go +++ b/routers/api/v1/admin/adopt.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 admin diff --git a/routers/api/v1/admin/cron.go b/routers/api/v1/admin/cron.go index 0c4333b892a5..cc8c6c9e2391 100644 --- a/routers/api/v1/admin/cron.go +++ b/routers/api/v1/admin/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 admin diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index 727f3193cf39..9d0725e3e85d 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.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 admin diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index 712ced89c99e..83ed06e49bce 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.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 admin diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 1a4b02001133..183ade8a0a5e 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/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 admin diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index e41fccb635dd..3f5cf431f823 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.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 v1 Gitea API. // diff --git a/routers/api/v1/auth.go b/routers/api/v1/auth.go index becf45f6433f..e44271ba148a 100644 --- a/routers/api/v1/auth.go +++ b/routers/api/v1/auth.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/routers/api/v1/auth_windows.go b/routers/api/v1/auth_windows.go index d41c4bb223ff..3514e21baac4 100644 --- a/routers/api/v1/auth_windows.go +++ b/routers/api/v1/auth_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 package v1 diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index eb0b78a5bab0..3ff42f08d682 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.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 misc diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go index 65ce06027802..025f2f44b011 100644 --- a/routers/api/v1/misc/markdown_test.go +++ b/routers/api/v1/misc/markdown_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 misc diff --git a/routers/api/v1/misc/nodeinfo.go b/routers/api/v1/misc/nodeinfo.go index a4ba440356b4..319c3483e10c 100644 --- a/routers/api/v1/misc/nodeinfo.go +++ b/routers/api/v1/misc/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 misc diff --git a/routers/api/v1/misc/signing.go b/routers/api/v1/misc/signing.go index 1070cc78cb44..2ca9813e15ca 100644 --- a/routers/api/v1/misc/signing.go +++ b/routers/api/v1/misc/signing.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 misc diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go index b8c7d4f9ada2..83fa35219abe 100644 --- a/routers/api/v1/misc/version.go +++ b/routers/api/v1/misc/version.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 misc diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go index 9948f90a1207..3b6a9bfdc297 100644 --- a/routers/api/v1/notify/notifications.go +++ b/routers/api/v1/notify/notifications.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 notify diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go index 6d9664400a55..a2e72cb48de0 100644 --- a/routers/api/v1/notify/repo.go +++ b/routers/api/v1/notify/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 notify diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go index f8e496091246..47d0e4972143 100644 --- a/routers/api/v1/notify/threads.go +++ b/routers/api/v1/notify/threads.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 notify diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go index 5f4d8b35c2d5..725eeff017fc 100644 --- a/routers/api/v1/notify/user.go +++ b/routers/api/v1/notify/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 notify diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go index f8ea5a876cf8..2e9d7c656a76 100644 --- a/routers/api/v1/org/hook.go +++ b/routers/api/v1/org/hook.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 org diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go index a67bd56dfcfa..c95a6be3d20a 100644 --- a/routers/api/v1/org/label.go +++ b/routers/api/v1/org/label.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 org diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go index 85fe2ded4d5c..fe071439588e 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.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 org diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 5a8b253a2076..cf985d44fbb0 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.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 org diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index b2bcc4d58608..f233494fa528 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.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 org diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go index 29fa6c85a5b6..433a79939cc7 100644 --- a/routers/api/v1/packages/package.go +++ b/routers/api/v1/packages/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 packages diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go index 035f2dc1e1de..d0004f06860d 100644 --- a/routers/api/v1/repo/blob.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index d10a308df3a7..f5b1eb1c42c2 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.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 repo diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index 0e6236216c21..383193daa71b 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.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 repo diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go index 4e77c3f2f5df..682044407dfe 100644 --- a/routers/api/v1/repo/commits.go +++ b/routers/api/v1/repo/commits.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 repo diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index aba5b1f9e7f8..623fe18e5d26 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.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 repo diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go index c0a79d1a6328..e2cb4400f592 100644 --- a/routers/api/v1/repo/fork.go +++ b/routers/api/v1/repo/fork.go @@ -1,7 +1,6 @@ // Copyright 2016 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 repo diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go index 0b4e09cadd2a..963cbc719f42 100644 --- a/routers/api/v1/repo/git_hook.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go index 47f46df339ff..34d2dcfcc814 100644 --- a/routers/api/v1/repo/git_ref.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go index 57fff7d3261b..9b84fb2b301b 100644 --- a/routers/api/v1/repo/hook.go +++ b/routers/api/v1/repo/hook.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 repo diff --git a/routers/api/v1/repo/hook_test.go b/routers/api/v1/repo/hook_test.go index fd9a165bf358..34dc990c3da4 100644 --- a/routers/api/v1/repo/hook_test.go +++ b/routers/api/v1/repo/hook_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 repo diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 60f9859e107a..c539a362388f 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.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 repo diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index a5da09172797..7f6f24605d03 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -1,7 +1,6 @@ // Copyright 2015 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 repo diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index 091f1ce27c6f..04d70913c7a6 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.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 repo diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go index fb7fd713b38a..dcfe7967b58e 100644 --- a/routers/api/v1/repo/issue_reaction.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go index 941b22e45457..110139cc36b6 100644 --- a/routers/api/v1/repo/issue_stopwatch.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go index 5e03e42b4c5c..32832d83f79a 100644 --- a/routers/api/v1/repo/issue_subscription.go +++ b/routers/api/v1/repo/issue_subscription.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 repo diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go index e3abb973be43..6786d23a9326 100644 --- a/routers/api/v1/repo/issue_tracked_time.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index 14f6aa614867..cff68504694e 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -1,7 +1,6 @@ // Copyright 2015 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 repo diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 8b1e29866882..8b49becd37bb 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.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 repo diff --git a/routers/api/v1/repo/language.go b/routers/api/v1/repo/language.go index ca803cb68b88..12f1761ad08c 100644 --- a/routers/api/v1/repo/language.go +++ b/routers/api/v1/repo/language.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 repo diff --git a/routers/api/v1/repo/main_test.go b/routers/api/v1/repo/main_test.go index 1f91a2493718..543fb922d6ba 100644 --- a/routers/api/v1/repo/main_test.go +++ b/routers/api/v1/repo/main_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 repo diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index aeef862b1f8a..a0316c9a78f4 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.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 repo diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go index 0e8800510b52..2b80b4df7345 100644 --- a/routers/api/v1/repo/milestone.go +++ b/routers/api/v1/repo/milestone.go @@ -1,7 +1,6 @@ // Copyright 2016 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 repo diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go index 91e5e0c03161..b693c0e7db46 100644 --- a/routers/api/v1/repo/mirror.go +++ b/routers/api/v1/repo/mirror.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 repo diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go index ee3133adecee..91eebb4c724d 100644 --- a/routers/api/v1/repo/notes.go +++ b/routers/api/v1/repo/notes.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 repo diff --git a/routers/api/v1/repo/patch.go b/routers/api/v1/repo/patch.go index 40afe2d92b1d..6fbb9e7b3a75 100644 --- a/routers/api/v1/repo/patch.go +++ b/routers/api/v1/repo/patch.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 repo diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index fba7ed646274..53505e998c24 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.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 repo diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go index df88e2a57bff..2f357afb79f7 100644 --- a/routers/api/v1/repo/pull_review.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index 60cc19d5653b..4e1927ea3d92 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/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 repo diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go index 02f85d384a32..88632b463773 100644 --- a/routers/api/v1/repo/release_attachment.go +++ b/routers/api/v1/repo/release_attachment.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 repo diff --git a/routers/api/v1/repo/release_tags.go b/routers/api/v1/repo/release_tags.go index 77395bb46929..5e1f1860ae77 100644 --- a/routers/api/v1/repo/release_tags.go +++ b/routers/api/v1/repo/release_tags.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 repo diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 29febe751cb9..e8603d19172e 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.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 repo diff --git a/routers/api/v1/repo/repo_test.go b/routers/api/v1/repo/repo_test.go index 9acc0ee7d21b..59c3bde81930 100644 --- a/routers/api/v1/repo/repo_test.go +++ b/routers/api/v1/repo/repo_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 repo diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go index c78c3cc512f2..a3d110587390 100644 --- a/routers/api/v1/repo/star.go +++ b/routers/api/v1/repo/star.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 repo diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go index 97ef69a6ea6d..84827a91adf2 100644 --- a/routers/api/v1/repo/status.go +++ b/routers/api/v1/repo/status.go @@ -1,6 +1,5 @@ // Copyright 2017 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 repo diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go index c1aaa241937d..5cc94abd487f 100644 --- a/routers/api/v1/repo/subscriber.go +++ b/routers/api/v1/repo/subscriber.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 repo diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go index ab3186616254..6b38a08c2f7b 100644 --- a/routers/api/v1/repo/tag.go +++ b/routers/api/v1/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 repo diff --git a/routers/api/v1/repo/teams.go b/routers/api/v1/repo/teams.go index f485f2086ee5..1ea3ae0008a8 100644 --- a/routers/api/v1/repo/teams.go +++ b/routers/api/v1/repo/teams.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 repo diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go index 64dc763dc381..316b19025986 100644 --- a/routers/api/v1/repo/topic.go +++ b/routers/api/v1/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 repo diff --git a/routers/api/v1/repo/transfer.go b/routers/api/v1/repo/transfer.go index 067a4ebe194b..a40419e13e3c 100644 --- a/routers/api/v1/repo/transfer.go +++ b/routers/api/v1/repo/transfer.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 repo diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go index b8294ebe312b..9df96204cbef 100644 --- a/routers/api/v1/repo/tree.go +++ b/routers/api/v1/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 repo diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 734a550a7155..0b55a9b2818f 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/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 repo diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go index 36f93893a880..02bda1309d72 100644 --- a/routers/api/v1/settings/settings.go +++ b/routers/api/v1/settings/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 settings diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go index afc0c05057d6..91341669da90 100644 --- a/routers/api/v1/swagger/activitypub.go +++ b/routers/api/v1/swagger/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 swagger diff --git a/routers/api/v1/swagger/app.go b/routers/api/v1/swagger/app.go index 9783abe1a082..6a08b118745d 100644 --- a/routers/api/v1/swagger/app.go +++ b/routers/api/v1/swagger/app.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 swagger diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go index 85f2ed0e3520..00cfbe0adba2 100644 --- a/routers/api/v1/swagger/cron.go +++ b/routers/api/v1/swagger/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 swagger diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go index 09e7077b200c..62458a342431 100644 --- a/routers/api/v1/swagger/issue.go +++ b/routers/api/v1/swagger/issue.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 swagger diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go index c3da37af636a..839083358966 100644 --- a/routers/api/v1/swagger/key.go +++ b/routers/api/v1/swagger/key.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 swagger diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go index 1d3c257efacb..a4052a6a763e 100644 --- a/routers/api/v1/swagger/misc.go +++ b/routers/api/v1/swagger/misc.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 swagger diff --git a/routers/api/v1/swagger/nodeinfo.go b/routers/api/v1/swagger/nodeinfo.go index c1ecf3a3f36d..8650dfa09233 100644 --- a/routers/api/v1/swagger/nodeinfo.go +++ b/routers/api/v1/swagger/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 swagger diff --git a/routers/api/v1/swagger/notify.go b/routers/api/v1/swagger/notify.go index cd30d496e0dc..743d807a0a91 100644 --- a/routers/api/v1/swagger/notify.go +++ b/routers/api/v1/swagger/notify.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 swagger diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index e8cfc0706f5c..979b18407590 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.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 swagger diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go index d98e821ba744..0105446b00a3 100644 --- a/routers/api/v1/swagger/org.go +++ b/routers/api/v1/swagger/org.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 swagger diff --git a/routers/api/v1/swagger/package.go b/routers/api/v1/swagger/package.go index 2a1f05731477..eada12d1eae6 100644 --- a/routers/api/v1/swagger/package.go +++ b/routers/api/v1/swagger/package.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 swagger diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index 642b1b7b9102..bd867213a62d 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.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 swagger diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go index 4bf153cb9c52..a9466699df3f 100644 --- a/routers/api/v1/swagger/settings.go +++ b/routers/api/v1/swagger/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 swagger diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go index 857bdc2a14c4..fb6d185ee7de 100644 --- a/routers/api/v1/swagger/user.go +++ b/routers/api/v1/swagger/user.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 swagger diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index 14f159259186..6cb7b812b233 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.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 user diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 31c13172fc07..84823aaed207 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/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 user diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 22f8f40e1c81..38ddf990c47e 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -1,7 +1,6 @@ // Copyright 2015 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 user diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go index b87cf0041e19..7c91d2ac6563 100644 --- a/routers/api/v1/user/gpg_key.go +++ b/routers/api/v1/user/gpg_key.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 user diff --git a/routers/api/v1/user/helper.go b/routers/api/v1/user/helper.go index ae7fa5248e47..28f600ad92a2 100644 --- a/routers/api/v1/user/helper.go +++ b/routers/api/v1/user/helper.go @@ -1,6 +1,5 @@ // Copyright 2021 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 user diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 71a2c910a6a3..d00eec85e494 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/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 user diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go index d1917a9938ba..2af70f9ad393 100644 --- a/routers/api/v1/user/repo.go +++ b/routers/api/v1/user/repo.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 user diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go index f00bf8c26872..89bfd83efc15 100644 --- a/routers/api/v1/user/settings.go +++ b/routers/api/v1/user/settings.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 user diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go index 96748c630d6b..2ef5806974ee 100644 --- a/routers/api/v1/user/star.go +++ b/routers/api/v1/user/star.go @@ -1,7 +1,6 @@ // Copyright 2016 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 user diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 69197aef23eb..8a21c2c7cacd 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.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 user diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go index 7765a399f381..43c097444ec3 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.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 user diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go index 816f8b3595f7..2801dee8babe 100644 --- a/routers/api/v1/utils/git.go +++ b/routers/api/v1/utils/git.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 utils diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go index aa922f4f5b15..7faf609ae813 100644 --- a/routers/api/v1/utils/hook.go +++ b/routers/api/v1/utils/hook.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 utils diff --git a/routers/api/v1/utils/page.go b/routers/api/v1/utils/page.go index 608bec739576..ef5806fa9218 100644 --- a/routers/api/v1/utils/page.go +++ b/routers/api/v1/utils/page.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 utils diff --git a/routers/common/db.go b/routers/common/db.go index 99d66f93e89c..ac082ab36f99 100644 --- a/routers/common/db.go +++ b/routers/common/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 common diff --git a/routers/common/middleware.go b/routers/common/middleware.go index 6ea1e1dfbe5e..0c7838b0ef5b 100644 --- a/routers/common/middleware.go +++ b/routers/common/middleware.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 common diff --git a/routers/common/repo.go b/routers/common/repo.go index 340eb1809f59..4b04ddae347d 100644 --- a/routers/common/repo.go +++ b/routers/common/repo.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 common diff --git a/routers/init.go b/routers/init.go index fecc5c439c6d..670191debc66 100644 --- a/routers/init.go +++ b/routers/init.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 routers diff --git a/routers/install/install.go b/routers/install/install.go index 184dc5bae185..ab37f9ba35fe 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -1,7 +1,6 @@ // Copyright 2014 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 install diff --git a/routers/install/routes.go b/routers/install/routes.go index 7617477827cb..9aa5a88d24b1 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.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 install diff --git a/routers/install/routes_test.go b/routers/install/routes_test.go index e69d2d15dfaf..35b5e5e9160b 100644 --- a/routers/install/routes_test.go +++ b/routers/install/routes_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 install diff --git a/routers/install/setting.go b/routers/install/setting.go index c4912f1124f8..b76219f45d36 100644 --- a/routers/install/setting.go +++ b/routers/install/setting.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 install diff --git a/routers/private/default_branch.go b/routers/private/default_branch.go index 55ffef43f3f0..268ebbe4431b 100644 --- a/routers/private/default_branch.go +++ b/routers/private/default_branch.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go index 1370e5302b71..9c69f9c34587 100644 --- a/routers/private/hook_post_receive.go +++ b/routers/private/hook_post_receive.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go index 86bdf60ab98b..52a82bfa4450 100644 --- a/routers/private/hook_pre_receive.go +++ b/routers/private/hook_pre_receive.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 includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go index 0653f8b0d27e..05921e6f5841 100644 --- a/routers/private/hook_proc_receive.go +++ b/routers/private/hook_proc_receive.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_verification.go b/routers/private/hook_verification.go index 8a2d1cf33db3..7b9550dfdddd 100644 --- a/routers/private/hook_verification.go +++ b/routers/private/hook_verification.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/internal.go b/routers/private/internal.go index f8e451e80f07..d5c85480a774 100644 --- a/routers/private/internal.go +++ b/routers/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 includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go index c50d2a01a72a..2e6f87d6b08b 100644 --- a/routers/private/internal_repo.go +++ b/routers/private/internal_repo.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/key.go b/routers/private/key.go index 9977492c6353..b536019dd7a0 100644 --- a/routers/private/key.go +++ b/routers/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 includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/mail.go b/routers/private/mail.go index 255e1d901dfe..622a01dd8fee 100644 --- a/routers/private/mail.go +++ b/routers/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/routers/private/manager.go b/routers/private/manager.go index e7f08ac45546..f15da298d6a0 100644 --- a/routers/private/manager.go +++ b/routers/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/routers/private/manager_process.go b/routers/private/manager_process.go index e12bbee18b4c..a5993bf3718d 100644 --- a/routers/private/manager_process.go +++ b/routers/private/manager_process.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 private diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go index 43cbdec01c02..09ced33b8d76 100644 --- a/routers/private/manager_unix.go +++ b/routers/private/manager_unix.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 !windows diff --git a/routers/private/manager_windows.go b/routers/private/manager_windows.go index 2b72ee952d4e..b5382c7d9161 100644 --- a/routers/private/manager_windows.go +++ b/routers/private/manager_windows.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 windows diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go index 34e06e51c29b..97ac9a3c5ad9 100644 --- a/routers/private/restore_repo.go +++ b/routers/private/restore_repo.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 private diff --git a/routers/private/serv.go b/routers/private/serv.go index ddb2e6aa8bff..676d83d9e135 100644 --- a/routers/private/serv.go +++ b/routers/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 includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/ssh_log.go b/routers/private/ssh_log.go index 2f1793a0e0f4..54604ad55466 100644 --- a/routers/private/ssh_log.go +++ b/routers/private/ssh_log.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 private diff --git a/routers/utils/utils.go b/routers/utils/utils.go index 66eaa1d9ce17..d6856fceacd2 100644 --- a/routers/utils/utils.go +++ b/routers/utils/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 utils diff --git a/routers/utils/utils_test.go b/routers/utils/utils_test.go index 42cf948e3091..6d19214c88e5 100644 --- a/routers/utils/utils_test.go +++ b/routers/utils/utils_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 utils diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index d0664eb78098..0a51000c70c9 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.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 admin diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go index 1bc43998b25a..2b65ab3ea37e 100644 --- a/routers/web/admin/admin_test.go +++ b/routers/web/admin/admin_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 admin diff --git a/routers/web/admin/applications.go b/routers/web/admin/applications.go index c7a9c3100fac..745d17ff2a44 100644 --- a/routers/web/admin/applications.go +++ b/routers/web/admin/applications.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 admin diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index 7ea8a52809e6..1bc166902c7b 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.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 admin diff --git a/routers/web/admin/config.go b/routers/web/admin/config.go index 792eec8d5680..eaa02588ca5c 100644 --- a/routers/web/admin/config.go +++ b/routers/web/admin/config.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 admin diff --git a/routers/web/admin/emails.go b/routers/web/admin/emails.go index 9482ae01235e..c16158c6ae47 100644 --- a/routers/web/admin/emails.go +++ b/routers/web/admin/emails.go @@ -1,6 +1,5 @@ // 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 admin diff --git a/routers/web/admin/hooks.go b/routers/web/admin/hooks.go index bf71cb5595f8..e8db9a3ded70 100644 --- a/routers/web/admin/hooks.go +++ b/routers/web/admin/hooks.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 admin diff --git a/routers/web/admin/main_test.go b/routers/web/admin/main_test.go index 4e6ad4d743f6..ea79830fa135 100644 --- a/routers/web/admin/main_test.go +++ b/routers/web/admin/main_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 admin diff --git a/routers/web/admin/notice.go b/routers/web/admin/notice.go index f5ec294cc361..f60cf90b3c74 100644 --- a/routers/web/admin/notice.go +++ b/routers/web/admin/notice.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 admin diff --git a/routers/web/admin/orgs.go b/routers/web/admin/orgs.go index 6081ab9b1c6b..a4eb0af58d0c 100644 --- a/routers/web/admin/orgs.go +++ b/routers/web/admin/orgs.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 admin diff --git a/routers/web/admin/packages.go b/routers/web/admin/packages.go index 5de8922e6f34..80cec51275cf 100644 --- a/routers/web/admin/packages.go +++ b/routers/web/admin/packages.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 admin diff --git a/routers/web/admin/repos.go b/routers/web/admin/repos.go index 17b00975ec0c..b488bbbd1400 100644 --- a/routers/web/admin/repos.go +++ b/routers/web/admin/repos.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 admin diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 5cdfb8142ee8..399633e39fe5 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.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 admin diff --git a/routers/web/admin/users_test.go b/routers/web/admin/users_test.go index da67cd5cb45d..ed58a54eef93 100644 --- a/routers/web/admin/users_test.go +++ b/routers/web/admin/users_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 admin diff --git a/routers/web/auth.go b/routers/web/auth.go index a771643b663d..1ca860ecc8de 100644 --- a/routers/web/auth.go +++ b/routers/web/auth.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/routers/web/auth/2fa.go b/routers/web/auth/2fa.go index c61922cd9da0..2aacf230371c 100644 --- a/routers/web/auth/2fa.go +++ b/routers/web/auth/2fa.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 auth diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go index 133a7cced169..565a15bc11ae 100644 --- a/routers/web/auth/auth.go +++ b/routers/web/auth/auth.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 auth diff --git a/routers/web/auth/linkaccount.go b/routers/web/auth/linkaccount.go index c36eaee07825..6c409c6b9df8 100644 --- a/routers/web/auth/linkaccount.go +++ b/routers/web/auth/linkaccount.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 auth diff --git a/routers/web/auth/main_test.go b/routers/web/auth/main_test.go index 71f522fb0754..8295515ba950 100644 --- a/routers/web/auth/main_test.go +++ b/routers/web/auth/main_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 auth diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go index d845f21a3301..2b872178cace 100644 --- a/routers/web/auth/oauth.go +++ b/routers/web/auth/oauth.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 auth diff --git a/routers/web/auth/oauth_test.go b/routers/web/auth/oauth_test.go index 48400846d245..5116b4fc713d 100644 --- a/routers/web/auth/oauth_test.go +++ b/routers/web/auth/oauth_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 auth diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go index eedf3f5c1ba0..f544b6535687 100644 --- a/routers/web/auth/openid.go +++ b/routers/web/auth/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 auth diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go index c21ca9cf6947..e546c77bc91e 100644 --- a/routers/web/auth/password.go +++ b/routers/web/auth/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 auth diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go index 917cbdd57bf6..b60007bc0321 100644 --- a/routers/web/auth/webauthn.go +++ b/routers/web/auth/webauthn.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 auth diff --git a/routers/web/auth_windows.go b/routers/web/auth_windows.go index f404fd377160..3125d7ce9a74 100644 --- a/routers/web/auth_windows.go +++ b/routers/web/auth_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 package web diff --git a/routers/web/base.go b/routers/web/base.go index 2441d6d51716..b0d8a7c3f1e6 100644 --- a/routers/web/base.go +++ b/routers/web/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 web diff --git a/routers/web/events/events.go b/routers/web/events/events.go index d8c6f38d02ae..1a5a162c1a2e 100644 --- a/routers/web/events/events.go +++ b/routers/web/events/events.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 events diff --git a/routers/web/explore/code.go b/routers/web/explore/code.go index 38474255d19b..942b1f83789b 100644 --- a/routers/web/explore/code.go +++ b/routers/web/explore/code.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 explore diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go index eb6972fad334..c9fb05ff3a88 100644 --- a/routers/web/explore/org.go +++ b/routers/web/explore/org.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 explore diff --git a/routers/web/explore/repo.go b/routers/web/explore/repo.go index 8d4ecf1bc08b..5271e39bbc91 100644 --- a/routers/web/explore/repo.go +++ b/routers/web/explore/repo.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 explore diff --git a/routers/web/explore/topic.go b/routers/web/explore/topic.go index 39b87f249809..50df9d1113e2 100644 --- a/routers/web/explore/topic.go +++ b/routers/web/explore/topic.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 explore diff --git a/routers/web/explore/user.go b/routers/web/explore/user.go index ea3d83e8d6c1..bb6aa3dc77c9 100644 --- a/routers/web/explore/user.go +++ b/routers/web/explore/user.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 explore diff --git a/routers/web/feed/convert.go b/routers/web/feed/convert.go index c6fc352b647f..e0e481d1a561 100644 --- a/routers/web/feed/convert.go +++ b/routers/web/feed/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 feed diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go index ffa34572bced..7641769192c5 100644 --- a/routers/web/feed/profile.go +++ b/routers/web/feed/profile.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 feed diff --git a/routers/web/feed/repo.go b/routers/web/feed/repo.go index 027f90872fa3..1d24b5880052 100644 --- a/routers/web/feed/repo.go +++ b/routers/web/feed/repo.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 feed diff --git a/routers/web/goget.go b/routers/web/goget.go index a58739fe42a3..b8e264c4415b 100644 --- a/routers/web/goget.go +++ b/routers/web/goget.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/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go index 57707b612126..1142a0aec5d5 100644 --- a/routers/web/healthcheck/check.go +++ b/routers/web/healthcheck/check.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 healthcheck diff --git a/routers/web/home.go b/routers/web/home.go index 7640243ba076..ecfecf6e67e4 100644 --- a/routers/web/home.go +++ b/routers/web/home.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 web diff --git a/routers/web/metrics.go b/routers/web/metrics.go index c7e01b8faafa..46c13f0a2440 100644 --- a/routers/web/metrics.go +++ b/routers/web/metrics.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 web diff --git a/routers/web/misc/markdown.go b/routers/web/misc/markdown.go index 0567cbb30c26..aaa3ed0781f7 100644 --- a/routers/web/misc/markdown.go +++ b/routers/web/misc/markdown.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 misc diff --git a/routers/web/misc/swagger.go b/routers/web/misc/swagger.go index e46d4194b46e..72c09a378017 100644 --- a/routers/web/misc/swagger.go +++ b/routers/web/misc/swagger.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 misc diff --git a/routers/web/nodeinfo.go b/routers/web/nodeinfo.go index 2ee94e35e86b..01b71e7086bd 100644 --- a/routers/web/nodeinfo.go +++ b/routers/web/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 web diff --git a/routers/web/org/home.go b/routers/web/org/home.go index 6bd8a89d1237..4cc364acd3a0 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.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 org diff --git a/routers/web/org/members.go b/routers/web/org/members.go index ec5a98fc6a24..3be2a39c2e36 100644 --- a/routers/web/org/members.go +++ b/routers/web/org/members.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 org diff --git a/routers/web/org/org.go b/routers/web/org/org.go index 32d8787995d0..f67e7edb4c7c 100644 --- a/routers/web/org/org.go +++ b/routers/web/org/org.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 org diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go index 185e1eee310b..1c910a93a50b 100644 --- a/routers/web/org/org_labels.go +++ b/routers/web/org/org_labels.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 org diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 3f7bc59856f3..899e554ba0dc 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.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 org diff --git a/routers/web/org/setting_oauth2.go b/routers/web/org/setting_oauth2.go index 47d1141f34ba..9bf4280b07e5 100644 --- a/routers/web/org/setting_oauth2.go +++ b/routers/web/org/setting_oauth2.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 org diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go index 399d07fe47b9..d12e2fcc4530 100644 --- a/routers/web/org/teams.go +++ b/routers/web/org/teams.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 org diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go index 316cbcd95f3b..3d030edaca06 100644 --- a/routers/web/repo/activity.go +++ b/routers/web/repo/activity.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 repo diff --git a/routers/web/repo/attachment.go b/routers/web/repo/attachment.go index 190dc6c2c751..d12fa60dafcb 100644 --- a/routers/web/repo/attachment.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go index 52d5c3c6e628..50bfa9d3bd28 100644 --- a/routers/web/repo/blame.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go index 43e6d43134cb..61fb24d0587f 100644 --- a/routers/web/repo/branch.go +++ b/routers/web/repo/branch.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 repo diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go index d2a4e19d0eaf..2056ad1b379b 100644 --- a/routers/web/repo/cherry_pick.go +++ b/routers/web/repo/cherry_pick.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 repo diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index a6553256b087..efc216661cae 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.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 repo diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index 0fb8e4472524..a9d6eea1ebee 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.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 repo diff --git a/routers/web/repo/download.go b/routers/web/repo/download.go index cd2d305de660..c1e9ba58b916 100644 --- a/routers/web/repo/download.go +++ b/routers/web/repo/download.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 repo diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index e8fc020450a5..7b064adfc5e9 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.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 repo diff --git a/routers/web/repo/editor_test.go b/routers/web/repo/editor_test.go index ac0c3858979d..1e53aac9b093 100644 --- a/routers/web/repo/editor_test.go +++ b/routers/web/repo/editor_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 repo diff --git a/routers/web/repo/find.go b/routers/web/repo/find.go index 7117c00076dc..daefe59c8f27 100644 --- a/routers/web/repo/find.go +++ b/routers/web/repo/find.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 repo diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go index 1ec781bb13d5..d2450066e341 100644 --- a/routers/web/repo/http.go +++ b/routers/web/repo/http.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 repo diff --git a/routers/web/repo/http_test.go b/routers/web/repo/http_test.go index 58ac1c07a129..5ba8de3d63c3 100644 --- a/routers/web/repo/http_test.go +++ b/routers/web/repo/http_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 repo diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 318d9af70354..2a0a849b5ba5 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.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 repo diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go index a9386d274a7a..dee506deacff 100644 --- a/routers/web/repo/issue_content_history.go +++ b/routers/web/repo/issue_content_history.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 repo diff --git a/routers/web/repo/issue_dependency.go b/routers/web/repo/issue_dependency.go index d8d934ea1c2c..41c127be91f3 100644 --- a/routers/web/repo/issue_dependency.go +++ b/routers/web/repo/issue_dependency.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 repo diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go index 560f25a0af77..01421dc9276a 100644 --- a/routers/web/repo/issue_label.go +++ b/routers/web/repo/issue_label.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 repo diff --git a/routers/web/repo/issue_label_test.go b/routers/web/repo/issue_label_test.go index ea078e215c02..a62d2afaa830 100644 --- a/routers/web/repo/issue_label_test.go +++ b/routers/web/repo/issue_label_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 repo diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go index a89ea47571e8..10db968a211e 100644 --- a/routers/web/repo/issue_lock.go +++ b/routers/web/repo/issue_lock.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 repo diff --git a/routers/web/repo/issue_stopwatch.go b/routers/web/repo/issue_stopwatch.go index 97d4441a2709..d2a7a12a1f89 100644 --- a/routers/web/repo/issue_stopwatch.go +++ b/routers/web/repo/issue_stopwatch.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 repo diff --git a/routers/web/repo/issue_test.go b/routers/web/repo/issue_test.go index ad82fe0f36b8..f1d0aac72ff5 100644 --- a/routers/web/repo/issue_test.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/issue_timetrack.go b/routers/web/repo/issue_timetrack.go index 817a2c6d208b..6e9d3673cf9d 100644 --- a/routers/web/repo/issue_timetrack.go +++ b/routers/web/repo/issue_timetrack.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 repo diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go index 5210ecf777a2..c23dbf062291 100644 --- a/routers/web/repo/issue_watch.go +++ b/routers/web/repo/issue_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 repo diff --git a/routers/web/repo/lfs.go b/routers/web/repo/lfs.go index 9bf4307bfe09..82e0055ab2ad 100644 --- a/routers/web/repo/lfs.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/main_test.go b/routers/web/repo/main_test.go index a1ca3c3bc716..e3a09a95bd36 100644 --- a/routers/web/repo/main_test.go +++ b/routers/web/repo/main_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 repo diff --git a/routers/web/repo/middlewares.go b/routers/web/repo/middlewares.go index c9e8eb4a89e3..9a4aa3382cbb 100644 --- a/routers/web/repo/middlewares.go +++ b/routers/web/repo/middlewares.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 repo diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go index 393f8ed3d931..bbc349a0a544 100644 --- a/routers/web/repo/migrate.go +++ b/routers/web/repo/migrate.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 repo diff --git a/routers/web/repo/milestone.go b/routers/web/repo/milestone.go index 1e75bd79fb27..04271563973f 100644 --- a/routers/web/repo/milestone.go +++ b/routers/web/repo/milestone.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 repo diff --git a/routers/web/repo/packages.go b/routers/web/repo/packages.go index 57db19aa3257..83324711da72 100644 --- a/routers/web/repo/packages.go +++ b/routers/web/repo/packages.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 repo diff --git a/routers/web/repo/patch.go b/routers/web/repo/patch.go index cd731337baa9..27199ba41096 100644 --- a/routers/web/repo/patch.go +++ b/routers/web/repo/patch.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 repo diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index fb2d25a22b81..73f0916346b4 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.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 repo diff --git a/routers/web/repo/projects_test.go b/routers/web/repo/projects_test.go index 62fb0457400b..c712902ea9f1 100644 --- a/routers/web/repo/projects_test.go +++ b/routers/web/repo/projects_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 repo diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 870bc1773b96..682bc64ca29d 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -1,8 +1,7 @@ // Copyright 2018 The Gitea Authors. // 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 repo diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go index bbaacc234c0c..9f4cdde864b6 100644 --- a/routers/web/repo/pull_review.go +++ b/routers/web/repo/pull_review.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 repo diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go index 0373d5b158d1..9ef44eb58237 100644 --- a/routers/web/repo/release.go +++ b/routers/web/repo/release.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 repo diff --git a/routers/web/repo/release_test.go b/routers/web/repo/release_test.go index 16371fc860c4..81ae58178fae 100644 --- a/routers/web/repo/release_test.go +++ b/routers/web/repo/release_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 repo diff --git a/routers/web/repo/render.go b/routers/web/repo/render.go index 28a6d2f4293c..f07b4e8c113c 100644 --- a/routers/web/repo/render.go +++ b/routers/web/repo/render.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 repo diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 17e600182d44..0a8a1eb4e8ba 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.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 repo diff --git a/routers/web/repo/search.go b/routers/web/repo/search.go index 3d1835c7c322..137f38d40913 100644 --- a/routers/web/repo/search.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go index 2b5691ce8850..9e47d0bb1248 100644 --- a/routers/web/repo/setting.go +++ b/routers/web/repo/setting.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 repo diff --git a/routers/web/repo/setting_protected_branch.go b/routers/web/repo/setting_protected_branch.go index c4cd3486aaa6..975873a9ef01 100644 --- a/routers/web/repo/setting_protected_branch.go +++ b/routers/web/repo/setting_protected_branch.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 repo diff --git a/routers/web/repo/settings_test.go b/routers/web/repo/settings_test.go index 4acd7df5b81c..3bb202505c47 100644 --- a/routers/web/repo/settings_test.go +++ b/routers/web/repo/settings_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 repo diff --git a/routers/web/repo/tag.go b/routers/web/repo/tag.go index 4d46716c303a..26df1dbf6cc2 100644 --- a/routers/web/repo/tag.go +++ b/routers/web/repo/tag.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 repo diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go index efbfc62d56bb..4c0b38bd9102 100644 --- a/routers/web/repo/topic.go +++ b/routers/web/repo/topic.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 repo diff --git a/routers/web/repo/treelist.go b/routers/web/repo/treelist.go index 80f43a0c402c..c364e7090f78 100644 --- a/routers/web/repo/treelist.go +++ b/routers/web/repo/treelist.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 repo diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 1d1ba250646c..c7f97410ff60 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -1,7 +1,6 @@ // Copyright 2017 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 repo diff --git a/routers/web/repo/view_test.go b/routers/web/repo/view_test.go index 803906b21778..73ba118823bf 100644 --- a/routers/web/repo/view_test.go +++ b/routers/web/repo/view_test.go @@ -1,7 +1,6 @@ // Copyright 2017 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 repo diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go index 5496496e80fd..677fbc92ed3e 100644 --- a/routers/web/repo/webhook.go +++ b/routers/web/repo/webhook.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 repo diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go index 24d851762b24..885f84543c83 100644 --- a/routers/web/repo/wiki.go +++ b/routers/web/repo/wiki.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 repo diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go index 34f466854fe2..4699f5379ada 100644 --- a/routers/web/repo/wiki_test.go +++ b/routers/web/repo/wiki_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 repo diff --git a/routers/web/swagger_json.go b/routers/web/swagger_json.go index 82d72698c606..2d626c558ed7 100644 --- a/routers/web/swagger_json.go +++ b/routers/web/swagger_json.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/routers/web/user/avatar.go b/routers/web/user/avatar.go index 05896299d25e..20c2ef3e47bf 100644 --- a/routers/web/user/avatar.go +++ b/routers/web/user/avatar.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 user diff --git a/routers/web/user/code.go b/routers/web/user/code.go index 89bd23588b84..0f959320615c 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.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 user diff --git a/routers/web/user/home.go b/routers/web/user/home.go index e67202b284e1..fc4c919de355 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.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 user diff --git a/routers/web/user/home_test.go b/routers/web/user/home_test.go index 36e99bba5e01..a75b3573a00d 100644 --- a/routers/web/user/home_test.go +++ b/routers/web/user/home_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 user diff --git a/routers/web/user/main_test.go b/routers/web/user/main_test.go index 517957a85cd9..925482a1d2ba 100644 --- a/routers/web/user/main_test.go +++ b/routers/web/user/main_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 user diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index 323422a1b9dc..b21d52bbfdea 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.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 user diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 7be37b6a50a6..ae4c239c70cc 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/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 user diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 982290e0ab2e..0002d56de01b 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.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 user diff --git a/routers/web/user/search.go b/routers/web/user/search.go index 328c7bade4f8..093de406a978 100644 --- a/routers/web/user/search.go +++ b/routers/web/user/search.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 user diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go index 8b95caf2fcb0..95b3b4040d96 100644 --- a/routers/web/user/setting/account.go +++ b/routers/web/user/setting/account.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 setting diff --git a/routers/web/user/setting/account_test.go b/routers/web/user/setting/account_test.go index 005603e7ac85..5fce41f065ba 100644 --- a/routers/web/user/setting/account_test.go +++ b/routers/web/user/setting/account_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 setting diff --git a/routers/web/user/setting/adopt.go b/routers/web/user/setting/adopt.go index a92aa6e989ec..0aaf5920bc6d 100644 --- a/routers/web/user/setting/adopt.go +++ b/routers/web/user/setting/adopt.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/routers/web/user/setting/applications.go b/routers/web/user/setting/applications.go index e9572a07a6c5..23c215738d04 100644 --- a/routers/web/user/setting/applications.go +++ b/routers/web/user/setting/applications.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 setting diff --git a/routers/web/user/setting/keys.go b/routers/web/user/setting/keys.go index a8d07ea47a9d..89be795599bd 100644 --- a/routers/web/user/setting/keys.go +++ b/routers/web/user/setting/keys.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 setting diff --git a/routers/web/user/setting/main_test.go b/routers/web/user/setting/main_test.go index d4df464abd82..c3938b32011c 100644 --- a/routers/web/user/setting/main_test.go +++ b/routers/web/user/setting/main_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 setting diff --git a/routers/web/user/setting/oauth2.go b/routers/web/user/setting/oauth2.go index 0cc05dd040df..93142c21fcfc 100644 --- a/routers/web/user/setting/oauth2.go +++ b/routers/web/user/setting/oauth2.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/routers/web/user/setting/oauth2_common.go b/routers/web/user/setting/oauth2_common.go index 49ee5c7c2fd8..f6ad1b2b381c 100644 --- a/routers/web/user/setting/oauth2_common.go +++ b/routers/web/user/setting/oauth2_common.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/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go index ba3f5b5080d9..e46724f2e74e 100644 --- a/routers/web/user/setting/profile.go +++ b/routers/web/user/setting/profile.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 setting diff --git a/routers/web/user/setting/security/2fa.go b/routers/web/user/setting/security/2fa.go index 5fd81bae4181..0cecb1aa37fe 100644 --- a/routers/web/user/setting/security/2fa.go +++ b/routers/web/user/setting/security/2fa.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 security diff --git a/routers/web/user/setting/security/openid.go b/routers/web/user/setting/security/openid.go index a378c8bf64cc..08fcb6b62343 100644 --- a/routers/web/user/setting/security/openid.go +++ b/routers/web/user/setting/security/openid.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 security diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go index 57ea24eeb149..db6faaed6e19 100644 --- a/routers/web/user/setting/security/security.go +++ b/routers/web/user/setting/security/security.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 security diff --git a/routers/web/user/setting/security/webauthn.go b/routers/web/user/setting/security/webauthn.go index bb2d1f733e08..ba05996a1cda 100644 --- a/routers/web/user/setting/security/webauthn.go +++ b/routers/web/user/setting/security/webauthn.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 security diff --git a/routers/web/user/stop_watch.go b/routers/web/user/stop_watch.go index f40d850fc135..26c7558c115e 100644 --- a/routers/web/user/stop_watch.go +++ b/routers/web/user/stop_watch.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 user diff --git a/routers/web/user/task.go b/routers/web/user/task.go index 7f5ef792ad4d..3818682403d0 100644 --- a/routers/web/user/task.go +++ b/routers/web/user/task.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/routers/web/web.go b/routers/web/web.go index fe5007abb76a..889a89f0d4ae 100644 --- a/routers/web/web.go +++ b/routers/web/web.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 web diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go index 972182becee7..935832aa1f20 100644 --- a/routers/web/webfinger.go +++ b/routers/web/webfinger.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 web diff --git a/services/agit/agit.go b/services/agit/agit.go index 803ff696b0eb..e21a1ea29d9e 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.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 agit diff --git a/services/asymkey/deploy_key.go b/services/asymkey/deploy_key.go index 4feeadd95251..f5ca54b72387 100644 --- a/services/asymkey/deploy_key.go +++ b/services/asymkey/deploy_key.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 asymkey diff --git a/services/asymkey/main_test.go b/services/asymkey/main_test.go index cb3d05945658..3fa88340fd72 100644 --- a/services/asymkey/main_test.go +++ b/services/asymkey/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 asymkey diff --git a/services/asymkey/sign.go b/services/asymkey/sign.go index a9d1e179aedb..227e0bbf3388 100644 --- a/services/asymkey/sign.go +++ b/services/asymkey/sign.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 asymkey diff --git a/services/asymkey/ssh_key.go b/services/asymkey/ssh_key.go index 06b20001fd2f..0809458107b7 100644 --- a/services/asymkey/ssh_key.go +++ b/services/asymkey/ssh_key.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 asymkey diff --git a/services/asymkey/ssh_key_test.go b/services/asymkey/ssh_key_test.go index 9bc23a719c68..32c31a433239 100644 --- a/services/asymkey/ssh_key_test.go +++ b/services/asymkey/ssh_key_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 asymkey diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go index cc329f568bc4..522acd00a32d 100644 --- a/services/attachment/attachment.go +++ b/services/attachment/attachment.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 attachment diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go index 561792db2f20..72d1b2ab3a44 100644 --- a/services/attachment/attachment_test.go +++ b/services/attachment/attachment_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 attachment diff --git a/services/auth/auth.go b/services/auth/auth.go index 3a5bb9d27e65..00e277c41abb 100644 --- a/services/auth/auth.go +++ b/services/auth/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 auth diff --git a/services/auth/auth_test.go b/services/auth/auth_test.go index 8a9dee6cefe4..f4e3cdf0d32d 100644 --- a/services/auth/auth_test.go +++ b/services/auth/auth_test.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 auth diff --git a/services/auth/basic.go b/services/auth/basic.go index 9b32ad29af8b..0a82fc5b723d 100644 --- a/services/auth/basic.go +++ b/services/auth/basic.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 auth diff --git a/services/auth/group.go b/services/auth/group.go index bbafe64b495c..a9112029c54c 100644 --- a/services/auth/group.go +++ b/services/auth/group.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 auth diff --git a/services/auth/httpsign.go b/services/auth/httpsign.go index 67053d2b7773..dcdc2de83a81 100644 --- a/services/auth/httpsign.go +++ b/services/auth/httpsign.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 auth diff --git a/services/auth/interface.go b/services/auth/interface.go index ecc9ad2ca6b8..d238a408560b 100644 --- a/services/auth/interface.go +++ b/services/auth/interface.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 auth diff --git a/services/auth/oauth2.go b/services/auth/oauth2.go index 8f038d610418..da8c526382d6 100644 --- a/services/auth/oauth2.go +++ b/services/auth/oauth2.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 auth diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go index 8dec1c8ea778..2d5b6611b58c 100644 --- a/services/auth/reverseproxy.go +++ b/services/auth/reverseproxy.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 auth diff --git a/services/auth/session.go b/services/auth/session.go index 1ec94aa0af71..f35fad1a0c25 100644 --- a/services/auth/session.go +++ b/services/auth/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 auth diff --git a/services/auth/signin.go b/services/auth/signin.go index 3ccf68c3a7ea..2af15c4133cc 100644 --- a/services/auth/signin.go +++ b/services/auth/signin.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 auth diff --git a/services/auth/source.go b/services/auth/source.go index b7108292d570..aae3a781024a 100644 --- a/services/auth/source.go +++ b/services/auth/source.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 auth diff --git a/services/auth/source/db/assert_interface_test.go b/services/auth/source/db/assert_interface_test.go index f39aaeb1e41b..62387c78f072 100644 --- a/services/auth/source/db/assert_interface_test.go +++ b/services/auth/source/db/assert_interface_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 db_test diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go index f062f66ae039..ec8998449986 100644 --- a/services/auth/source/db/authenticate.go +++ b/services/auth/source/db/authenticate.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 db diff --git a/services/auth/source/db/source.go b/services/auth/source/db/source.go index ecab6d5f3570..3f4113c79047 100644 --- a/services/auth/source/db/source.go +++ b/services/auth/source/db/source.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 db diff --git a/services/auth/source/ldap/assert_interface_test.go b/services/auth/source/ldap/assert_interface_test.go index 8fc6903cf37c..33347687dc0b 100644 --- a/services/auth/source/ldap/assert_interface_test.go +++ b/services/auth/source/ldap/assert_interface_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 ldap_test diff --git a/services/auth/source/ldap/security_protocol.go b/services/auth/source/ldap/security_protocol.go index bb0c7770a1d3..af83ce191d7c 100644 --- a/services/auth/source/ldap/security_protocol.go +++ b/services/auth/source/ldap/security_protocol.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 ldap diff --git a/services/auth/source/ldap/source.go b/services/auth/source/ldap/source.go index ad97e2dd499b..dc4cb2c94031 100644 --- a/services/auth/source/ldap/source.go +++ b/services/auth/source/ldap/source.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 ldap diff --git a/services/auth/source/ldap/source_authenticate.go b/services/auth/source/ldap/source_authenticate.go index 785cb8ed3173..321cf5540d98 100644 --- a/services/auth/source/ldap/source_authenticate.go +++ b/services/auth/source/ldap/source_authenticate.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 ldap diff --git a/services/auth/source/ldap/source_group_sync.go b/services/auth/source/ldap/source_group_sync.go index e797e015b23b..95a608492286 100644 --- a/services/auth/source/ldap/source_group_sync.go +++ b/services/auth/source/ldap/source_group_sync.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 ldap diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 6ea84ec28843..6b6b56db2f06 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.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 ldap diff --git a/services/auth/source/ldap/source_sync.go b/services/auth/source/ldap/source_sync.go index eb5ee8463f71..73e8309acaaa 100644 --- a/services/auth/source/ldap/source_sync.go +++ b/services/auth/source/ldap/source_sync.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 ldap diff --git a/services/auth/source/ldap/util.go b/services/auth/source/ldap/util.go index f27de37c87ed..bd11e2d1193f 100644 --- a/services/auth/source/ldap/util.go +++ b/services/auth/source/ldap/util.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 ldap diff --git a/services/auth/source/oauth2/assert_interface_test.go b/services/auth/source/oauth2/assert_interface_test.go index 0ec7361ca836..56fe0e4aa810 100644 --- a/services/auth/source/oauth2/assert_interface_test.go +++ b/services/auth/source/oauth2/assert_interface_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 oauth2_test diff --git a/services/auth/source/oauth2/init.go b/services/auth/source/oauth2/init.go index e4eedd34cbdf..32fe545c9065 100644 --- a/services/auth/source/oauth2/init.go +++ b/services/auth/source/oauth2/init.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 oauth2 diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go index 352f932746de..93c15743798c 100644 --- a/services/auth/source/oauth2/jwtsigningkey.go +++ b/services/auth/source/oauth2/jwtsigningkey.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 oauth2 diff --git a/services/auth/source/oauth2/providers.go b/services/auth/source/oauth2/providers.go index aa3ee3842ddb..7ba370855a96 100644 --- a/services/auth/source/oauth2/providers.go +++ b/services/auth/source/oauth2/providers.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 oauth2 diff --git a/services/auth/source/oauth2/providers_base.go b/services/auth/source/oauth2/providers_base.go index b6b6d0bbd250..61654d8eaa94 100644 --- a/services/auth/source/oauth2/providers_base.go +++ b/services/auth/source/oauth2/providers_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 oauth2 diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go index c3ebdf9df0af..b5fe1794418d 100644 --- a/services/auth/source/oauth2/providers_custom.go +++ b/services/auth/source/oauth2/providers_custom.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 oauth2 diff --git a/services/auth/source/oauth2/providers_openid.go b/services/auth/source/oauth2/providers_openid.go index 80ee56d4a46a..2433cd3c7f10 100644 --- a/services/auth/source/oauth2/providers_openid.go +++ b/services/auth/source/oauth2/providers_openid.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 oauth2 diff --git a/services/auth/source/oauth2/providers_simple.go b/services/auth/source/oauth2/providers_simple.go index 39d3d74f6ddc..731c1b59a95e 100644 --- a/services/auth/source/oauth2/providers_simple.go +++ b/services/auth/source/oauth2/providers_simple.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 oauth2 diff --git a/services/auth/source/oauth2/source.go b/services/auth/source/oauth2/source.go index 457686ba1fd4..0abebc04ecfd 100644 --- a/services/auth/source/oauth2/source.go +++ b/services/auth/source/oauth2/source.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 oauth2 diff --git a/services/auth/source/oauth2/source_authenticate.go b/services/auth/source/oauth2/source_authenticate.go index fdc18411a75d..e3e2a9e192f5 100644 --- a/services/auth/source/oauth2/source_authenticate.go +++ b/services/auth/source/oauth2/source_authenticate.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 oauth2 diff --git a/services/auth/source/oauth2/source_callout.go b/services/auth/source/oauth2/source_callout.go index 7447e5d453a5..8d70bee248a1 100644 --- a/services/auth/source/oauth2/source_callout.go +++ b/services/auth/source/oauth2/source_callout.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 oauth2 diff --git a/services/auth/source/oauth2/source_name.go b/services/auth/source/oauth2/source_name.go index 0b794ad65097..eee789eff73b 100644 --- a/services/auth/source/oauth2/source_name.go +++ b/services/auth/source/oauth2/source_name.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 oauth2 diff --git a/services/auth/source/oauth2/source_register.go b/services/auth/source/oauth2/source_register.go index f61de7e1d69c..3527d54b65c5 100644 --- a/services/auth/source/oauth2/source_register.go +++ b/services/auth/source/oauth2/source_register.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 oauth2 diff --git a/services/auth/source/oauth2/store.go b/services/auth/source/oauth2/store.go index f00264f997d2..394bf9946359 100644 --- a/services/auth/source/oauth2/store.go +++ b/services/auth/source/oauth2/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 oauth2 diff --git a/services/auth/source/oauth2/token.go b/services/auth/source/oauth2/token.go index 0c69913ff489..c5a064054e5a 100644 --- a/services/auth/source/oauth2/token.go +++ b/services/auth/source/oauth2/token.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 oauth2 diff --git a/services/auth/source/oauth2/urlmapping.go b/services/auth/source/oauth2/urlmapping.go index 43c8dde9a5dc..d0442d58a8b4 100644 --- a/services/auth/source/oauth2/urlmapping.go +++ b/services/auth/source/oauth2/urlmapping.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 oauth2 diff --git a/services/auth/source/pam/assert_interface_test.go b/services/auth/source/pam/assert_interface_test.go index d8754cdf77e1..8e7648b8d3cb 100644 --- a/services/auth/source/pam/assert_interface_test.go +++ b/services/auth/source/pam/assert_interface_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 pam_test diff --git a/services/auth/source/pam/source.go b/services/auth/source/pam/source.go index 957c89dc85e5..96b182e1852c 100644 --- a/services/auth/source/pam/source.go +++ b/services/auth/source/pam/source.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 pam diff --git a/services/auth/source/pam/source_authenticate.go b/services/auth/source/pam/source_authenticate.go index 16ddc0598e47..48cd905a0a5e 100644 --- a/services/auth/source/pam/source_authenticate.go +++ b/services/auth/source/pam/source_authenticate.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 pam diff --git a/services/auth/source/smtp/assert_interface_test.go b/services/auth/source/smtp/assert_interface_test.go index c7fae6431fa1..6c9cde66e14f 100644 --- a/services/auth/source/smtp/assert_interface_test.go +++ b/services/auth/source/smtp/assert_interface_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 smtp_test diff --git a/services/auth/source/smtp/auth.go b/services/auth/source/smtp/auth.go index e8453fde6905..6446fcd70600 100644 --- a/services/auth/source/smtp/auth.go +++ b/services/auth/source/smtp/auth.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 smtp diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go index 5e69f912da35..2a648e421e4e 100644 --- a/services/auth/source/smtp/source.go +++ b/services/auth/source/smtp/source.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 smtp diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go index dff24d494ee0..00aaa8e084fb 100644 --- a/services/auth/source/smtp/source_authenticate.go +++ b/services/auth/source/smtp/source_authenticate.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 smtp diff --git a/services/auth/source/sspi/assert_interface_test.go b/services/auth/source/sspi/assert_interface_test.go index 33442451867b..03d836dd6f86 100644 --- a/services/auth/source/sspi/assert_interface_test.go +++ b/services/auth/source/sspi/assert_interface_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 sspi_test diff --git a/services/auth/source/sspi/source.go b/services/auth/source/sspi/source.go index e6e63ee1eb8e..bdd6ef451cc8 100644 --- a/services/auth/source/sspi/source.go +++ b/services/auth/source/sspi/source.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 sspi diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go index 757d596c4c21..988afb473034 100644 --- a/services/auth/sspi_windows.go +++ b/services/auth/sspi_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 auth diff --git a/services/auth/sync.go b/services/auth/sync.go index b7f3232a3047..e42e8a51a755 100644 --- a/services/auth/sync.go +++ b/services/auth/sync.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 auth diff --git a/services/automerge/automerge.go b/services/automerge/automerge.go index 3291ed31f0da..f5bf1f4491a3 100644 --- a/services/automerge/automerge.go +++ b/services/automerge/automerge.go @@ -1,6 +1,5 @@ // Copyright 2021 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 automerge diff --git a/services/comments/comments.go b/services/comments/comments.go index 190b8a6725b0..21640d90b4ea 100644 --- a/services/comments/comments.go +++ b/services/comments/comments.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 comments diff --git a/services/context/user.go b/services/context/user.go index 1c92d24d4a3b..9dc84c3ac15e 100644 --- a/services/context/user.go +++ b/services/context/user.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 context diff --git a/services/cron/cron.go b/services/cron/cron.go index 8e19e04416d0..bda8f12f122e 100644 --- a/services/cron/cron.go +++ b/services/cron/cron.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 cron diff --git a/services/cron/setting.go b/services/cron/setting.go index eb13242e9411..952a4d17ab65 100644 --- a/services/cron/setting.go +++ b/services/cron/setting.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 cron diff --git a/services/cron/tasks.go b/services/cron/tasks.go index 6ff5964d1ef6..1c5493c8983d 100644 --- a/services/cron/tasks.go +++ b/services/cron/tasks.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 cron diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go index ca35f5be57d0..acf3896b7142 100644 --- a/services/cron/tasks_basic.go +++ b/services/cron/tasks_basic.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 cron diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go index c730477cbd06..4486be0c2fa7 100644 --- a/services/cron/tasks_extended.go +++ b/services/cron/tasks_extended.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 cron diff --git a/services/externalaccount/link.go b/services/externalaccount/link.go index 95ada225421a..dcdc57ee489d 100644 --- a/services/externalaccount/link.go +++ b/services/externalaccount/link.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 externalaccount diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go index e5cd443770c0..87d2e02b4858 100644 --- a/services/externalaccount/user.go +++ b/services/externalaccount/user.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 externalaccount diff --git a/services/forms/admin.go b/services/forms/admin.go index 537b9f982cfe..a749f863f3dc 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.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 forms diff --git a/services/forms/auth_form.go b/services/forms/auth_form.go index 7e7c75675299..0cede07f951e 100644 --- a/services/forms/auth_form.go +++ b/services/forms/auth_form.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 forms diff --git a/services/forms/org.go b/services/forms/org.go index c7ee91134552..d7535313713e 100644 --- a/services/forms/org.go +++ b/services/forms/org.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 forms diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go index 011926092fd7..bf1183fc4341 100644 --- a/services/forms/repo_branch_form.go +++ b/services/forms/repo_branch_form.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 forms diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 64f47aadd5ca..d4fb051d8daa 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.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 forms diff --git a/services/forms/repo_form_test.go b/services/forms/repo_form_test.go index 198437f7ea32..2c5a8e2c0fc5 100644 --- a/services/forms/repo_form_test.go +++ b/services/forms/repo_form_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 forms diff --git a/services/forms/repo_tag_form.go b/services/forms/repo_tag_form.go index 337e7fe1ea64..1209d2346f46 100644 --- a/services/forms/repo_tag_form.go +++ b/services/forms/repo_tag_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 forms diff --git a/services/forms/user_form.go b/services/forms/user_form.go index da30ae94d6e5..cd2c45261b90 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.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 forms diff --git a/services/forms/user_form_auth_openid.go b/services/forms/user_form_auth_openid.go index 459c938f082a..f95eb98405a5 100644 --- a/services/forms/user_form_auth_openid.go +++ b/services/forms/user_form_auth_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 forms diff --git a/services/forms/user_form_hidden_comments.go b/services/forms/user_form_hidden_comments.go index 35c1a6dd2a70..7eb800a02018 100644 --- a/services/forms/user_form_hidden_comments.go +++ b/services/forms/user_form_hidden_comments.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 forms diff --git a/services/forms/user_form_test.go b/services/forms/user_form_test.go index 9f67143d12c8..463b39d0bf07 100644 --- a/services/forms/user_form_test.go +++ b/services/forms/user_form_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 forms diff --git a/services/gitdiff/csv.go b/services/gitdiff/csv.go index 642c9937ddb8..5781d7e9094a 100644 --- a/services/gitdiff/csv.go +++ b/services/gitdiff/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 gitdiff diff --git a/services/gitdiff/csv_test.go b/services/gitdiff/csv_test.go index 2c15b42d915b..ac53e2d1efae 100644 --- a/services/gitdiff/csv_test.go +++ b/services/gitdiff/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 gitdiff diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go index d24c0ac08269..d3ee93ec945b 100644 --- a/services/gitdiff/gitdiff.go +++ b/services/gitdiff/gitdiff.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 gitdiff diff --git a/services/gitdiff/gitdiff_test.go b/services/gitdiff/gitdiff_test.go index a7fd677fef09..267f0e4cff6a 100644 --- a/services/gitdiff/gitdiff_test.go +++ b/services/gitdiff/gitdiff_test.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 gitdiff diff --git a/services/gitdiff/highlightdiff.go b/services/gitdiff/highlightdiff.go index 727827232d61..f1e2b1d3cb31 100644 --- a/services/gitdiff/highlightdiff.go +++ b/services/gitdiff/highlightdiff.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 gitdiff diff --git a/services/gitdiff/highlightdiff_test.go b/services/gitdiff/highlightdiff_test.go index 205f9a0773a9..545a060e2049 100644 --- a/services/gitdiff/highlightdiff_test.go +++ b/services/gitdiff/highlightdiff_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 gitdiff diff --git a/services/gitdiff/main_test.go b/services/gitdiff/main_test.go index 0d36a600f64c..a5ac274b8fb0 100644 --- a/services/gitdiff/main_test.go +++ b/services/gitdiff/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 gitdiff diff --git a/services/issue/assignee.go b/services/issue/assignee.go index 291fc3163714..2e62f7cf1ce1 100644 --- a/services/issue/assignee.go +++ b/services/issue/assignee.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 issue diff --git a/services/issue/assignee_test.go b/services/issue/assignee_test.go index 5c8b822499cc..946085cb91e4 100644 --- a/services/issue/assignee_test.go +++ b/services/issue/assignee_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 issue diff --git a/services/issue/commit.go b/services/issue/commit.go index c8cfa6cc8a6c..f9d59b6bd0fd 100644 --- a/services/issue/commit.go +++ b/services/issue/commit.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 issue diff --git a/services/issue/commit_test.go b/services/issue/commit_test.go index 8469bf1ac1b6..590e7adce99f 100644 --- a/services/issue/commit_test.go +++ b/services/issue/commit_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 issue diff --git a/services/issue/content.go b/services/issue/content.go index 851d986de301..819ac3f20f6b 100644 --- a/services/issue/content.go +++ b/services/issue/content.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 issue diff --git a/services/issue/issue.go b/services/issue/issue.go index 9ec43f826469..23b48c28616e 100644 --- a/services/issue/issue.go +++ b/services/issue/issue.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 issue diff --git a/services/issue/issue_test.go b/services/issue/issue_test.go index 20f3a3296cc5..44168388e63d 100644 --- a/services/issue/issue_test.go +++ b/services/issue/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 issue diff --git a/services/issue/label.go b/services/issue/label.go index cd29fcebaebf..c18abbfcda3d 100644 --- a/services/issue/label.go +++ b/services/issue/label.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 issue diff --git a/services/issue/label_test.go b/services/issue/label_test.go index 482db95139b0..af220601f145 100644 --- a/services/issue/label_test.go +++ b/services/issue/label_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 issue diff --git a/services/issue/main_test.go b/services/issue/main_test.go index 689ae744f681..0f2427122feb 100644 --- a/services/issue/main_test.go +++ b/services/issue/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 issue diff --git a/services/issue/milestone.go b/services/issue/milestone.go index 2be4a9e70a2e..6019a28a9985 100644 --- a/services/issue/milestone.go +++ b/services/issue/milestone.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 issue diff --git a/services/issue/milestone_test.go b/services/issue/milestone_test.go index 087c25670004..069117d1f1c2 100644 --- a/services/issue/milestone_test.go +++ b/services/issue/milestone_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 issue diff --git a/services/issue/status.go b/services/issue/status.go index 2d4622324ca9..782ce0bd9675 100644 --- a/services/issue/status.go +++ b/services/issue/status.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 issue diff --git a/services/lfs/locks.go b/services/lfs/locks.go index 45ba8faacd23..aab4f1a44ed0 100644 --- a/services/lfs/locks.go +++ b/services/lfs/locks.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 lfs diff --git a/services/lfs/server.go b/services/lfs/server.go index 830112fac6e3..32bd843ebfa1 100644 --- a/services/lfs/server.go +++ b/services/lfs/server.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/services/mailer/mail.go b/services/mailer/mail.go index a9e36e10f89b..674011bede2a 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.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 mailer diff --git a/services/mailer/mail_comment.go b/services/mailer/mail_comment.go index af07821c29fb..1812441d5a23 100644 --- a/services/mailer/mail_comment.go +++ b/services/mailer/mail_comment.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 mailer diff --git a/services/mailer/mail_issue.go b/services/mailer/mail_issue.go index e7ff1d59d6c0..be5279aac5c5 100644 --- a/services/mailer/mail_issue.go +++ b/services/mailer/mail_issue.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 mailer diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go index b15fc05ce92f..96227270c875 100644 --- a/services/mailer/mail_release.go +++ b/services/mailer/mail_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 mailer diff --git a/services/mailer/mail_repo.go b/services/mailer/mail_repo.go index d3f5120929d2..5fa13f504402 100644 --- a/services/mailer/mail_repo.go +++ b/services/mailer/mail_repo.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 mailer diff --git a/services/mailer/mail_team_invite.go b/services/mailer/mail_team_invite.go index c2b2a00e7609..f01d6f47dd13 100644 --- a/services/mailer/mail_team_invite.go +++ b/services/mailer/mail_team_invite.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 mailer diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go index acb1f6996119..6ed4fed9bdad 100644 --- a/services/mailer/mail_test.go +++ b/services/mailer/mail_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 mailer diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go index 2663b6b2bab1..6149644600ea 100644 --- a/services/mailer/mailer.go +++ b/services/mailer/mailer.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 mailer diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go index b94fce8443ae..79c5231218db 100644 --- a/services/mailer/mailer_test.go +++ b/services/mailer/mailer_test.go @@ -1,6 +1,5 @@ // Copyright 2021 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 mailer diff --git a/services/mailer/main_test.go b/services/mailer/main_test.go index 0bd154113f03..16a6a2654563 100644 --- a/services/mailer/main_test.go +++ b/services/mailer/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 mailer diff --git a/services/markup/main_test.go b/services/markup/main_test.go index 8efd08e69d64..ce892435a1ae 100644 --- a/services/markup/main_test.go +++ b/services/markup/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 markup diff --git a/services/markup/processorhelper.go b/services/markup/processorhelper.go index 5042884e5ef9..2897f203a90f 100644 --- a/services/markup/processorhelper.go +++ b/services/markup/processorhelper.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/services/markup/processorhelper_test.go b/services/markup/processorhelper_test.go index f7eab3d958b0..6c9c1c27e72f 100644 --- a/services/markup/processorhelper_test.go +++ b/services/markup/processorhelper_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/services/migrations/codebase.go b/services/migrations/codebase.go index edeb27677345..c02c8e13a2e3 100644 --- a/services/migrations/codebase.go +++ b/services/migrations/codebase.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 migrations diff --git a/services/migrations/codebase_test.go b/services/migrations/codebase_test.go index 03b5946d715c..68721e06410f 100644 --- a/services/migrations/codebase_test.go +++ b/services/migrations/codebase_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 migrations diff --git a/services/migrations/common.go b/services/migrations/common.go index 052975c9e731..34d7c93ddf0b 100644 --- a/services/migrations/common.go +++ b/services/migrations/common.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 migrations diff --git a/services/migrations/dump.go b/services/migrations/dump.go index 8103e2faacd5..cc8518d4a25c 100644 --- a/services/migrations/dump.go +++ b/services/migrations/dump.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 migrations diff --git a/services/migrations/error.go b/services/migrations/error.go index d26fa8112cbf..46d303ac8ee8 100644 --- a/services/migrations/error.go +++ b/services/migrations/error.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 migrations diff --git a/services/migrations/git.go b/services/migrations/git.go index 3198f934caee..22ffd5e76589 100644 --- a/services/migrations/git.go +++ b/services/migrations/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 migrations diff --git a/services/migrations/gitbucket.go b/services/migrations/gitbucket.go index 21d8c672ddfa..65c138ed04a2 100644 --- a/services/migrations/gitbucket.go +++ b/services/migrations/gitbucket.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 migrations diff --git a/services/migrations/gitea_downloader.go b/services/migrations/gitea_downloader.go index 9775af1cdc38..470090b5010a 100644 --- a/services/migrations/gitea_downloader.go +++ b/services/migrations/gitea_downloader.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 migrations diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go index 601b0a7c7933..c37c70947e36 100644 --- a/services/migrations/gitea_downloader_test.go +++ b/services/migrations/gitea_downloader_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 migrations diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go index 8a7533b3d175..ea9b1a714243 100644 --- a/services/migrations/gitea_uploader.go +++ b/services/migrations/gitea_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 migrations diff --git a/services/migrations/gitea_uploader_test.go b/services/migrations/gitea_uploader_test.go index 362492631fa8..6a942b9b5763 100644 --- a/services/migrations/gitea_uploader_test.go +++ b/services/migrations/gitea_uploader_test.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 migrations diff --git a/services/migrations/github.go b/services/migrations/github.go index e5683fb53047..48dd90323d5a 100644 --- a/services/migrations/github.go +++ b/services/migrations/github.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 migrations diff --git a/services/migrations/github_test.go b/services/migrations/github_test.go index 7bbbbb616881..2b89e6dc0fd1 100644 --- a/services/migrations/github_test.go +++ b/services/migrations/github_test.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 migrations diff --git a/services/migrations/gitlab.go b/services/migrations/gitlab.go index b8bb0c77b54a..44e1d7071349 100644 --- a/services/migrations/gitlab.go +++ b/services/migrations/gitlab.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 migrations diff --git a/services/migrations/gitlab_test.go b/services/migrations/gitlab_test.go index 829964b384e5..1d8c5989bb53 100644 --- a/services/migrations/gitlab_test.go +++ b/services/migrations/gitlab_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 migrations diff --git a/services/migrations/gogs.go b/services/migrations/gogs.go index 14bc734c4e07..d01934ac6d52 100644 --- a/services/migrations/gogs.go +++ b/services/migrations/gogs.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 migrations diff --git a/services/migrations/gogs_test.go b/services/migrations/gogs_test.go index 501161b610da..610af183de21 100644 --- a/services/migrations/gogs_test.go +++ b/services/migrations/gogs_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 migrations diff --git a/services/migrations/http_client.go b/services/migrations/http_client.go index 0d683693a1b6..9e3caec191f2 100644 --- a/services/migrations/http_client.go +++ b/services/migrations/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 migrations diff --git a/services/migrations/main_test.go b/services/migrations/main_test.go index ad9bc9c731eb..30875f6e5ba4 100644 --- a/services/migrations/main_test.go +++ b/services/migrations/main_test.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 migrations diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go index dfb21b884bbb..a3b9d1cfa8fa 100644 --- a/services/migrations/migrate.go +++ b/services/migrations/migrate.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 migrations diff --git a/services/migrations/migrate_test.go b/services/migrations/migrate_test.go index 3fc4034777e4..03efa6185b2f 100644 --- a/services/migrations/migrate_test.go +++ b/services/migrations/migrate_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 migrations diff --git a/services/migrations/onedev.go b/services/migrations/onedev.go index 8cc826c3b4f8..d4b1b73d37c2 100644 --- a/services/migrations/onedev.go +++ b/services/migrations/onedev.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 migrations diff --git a/services/migrations/onedev_test.go b/services/migrations/onedev_test.go index 6a17eb334bae..48412fec64ab 100644 --- a/services/migrations/onedev_test.go +++ b/services/migrations/onedev_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 migrations diff --git a/services/migrations/restore.go b/services/migrations/restore.go index 10fe8c4ee8cd..fd337b22c7ac 100644 --- a/services/migrations/restore.go +++ b/services/migrations/restore.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 migrations diff --git a/services/migrations/update.go b/services/migrations/update.go index cdec73cd1bb6..48b61885e8dc 100644 --- a/services/migrations/update.go +++ b/services/migrations/update.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 migrations diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go index 3b4a8e5f8a6d..9e569a70e3eb 100644 --- a/services/mirror/mirror.go +++ b/services/mirror/mirror.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 mirror diff --git a/services/mirror/mirror_pull.go b/services/mirror/mirror_pull.go index 4a77569d869c..98e8d122a5df 100644 --- a/services/mirror/mirror_pull.go +++ b/services/mirror/mirror_pull.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 mirror diff --git a/services/mirror/mirror_push.go b/services/mirror/mirror_push.go index 60611130ba8c..c0c68a3f5416 100644 --- a/services/mirror/mirror_push.go +++ b/services/mirror/mirror_push.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 mirror diff --git a/services/org/org.go b/services/org/org.go index d993f82bbf69..e45fb305debe 100644 --- a/services/org/org.go +++ b/services/org/org.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 org diff --git a/services/org/org_test.go b/services/org/org_test.go index c4e6088a7132..cc22595c6f19 100644 --- a/services/org/org_test.go +++ b/services/org/org_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 org diff --git a/services/org/repo.go b/services/org/repo.go index 88520c819ff9..179249c7a8d0 100644 --- a/services/org/repo.go +++ b/services/org/repo.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 org diff --git a/services/org/repo_test.go b/services/org/repo_test.go index 21158bfa2103..40b0d17077b6 100644 --- a/services/org/repo_test.go +++ b/services/org/repo_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 org diff --git a/services/org/team_invite.go b/services/org/team_invite.go index 1108a46da5b4..3f28044dbf65 100644 --- a/services/org/team_invite.go +++ b/services/org/team_invite.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 org diff --git a/services/packages/auth.go b/services/packages/auth.go index 50212fccfd32..9b84ac79a6c3 100644 --- a/services/packages/auth.go +++ b/services/packages/auth.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/services/packages/container/blob_uploader.go b/services/packages/container/blob_uploader.go index 762f9e52598f..ba92b0507343 100644 --- a/services/packages/container/blob_uploader.go +++ b/services/packages/container/blob_uploader.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/services/packages/container/cleanup.go b/services/packages/container/cleanup.go index e3d414d45c4e..d6d4d152c83d 100644 --- a/services/packages/container/cleanup.go +++ b/services/packages/container/cleanup.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/services/packages/packages.go b/services/packages/packages.go index 7343ffc530d5..f819949c9695 100644 --- a/services/packages/packages.go +++ b/services/packages/packages.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/services/pull/check.go b/services/pull/check.go index faf3459f16f3..af8f2df0b6a5 100644 --- a/services/pull/check.go +++ b/services/pull/check.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 package pull diff --git a/services/pull/check_test.go b/services/pull/check_test.go index b4de02b5e231..590065250f3d 100644 --- a/services/pull/check_test.go +++ b/services/pull/check_test.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 package pull diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index 10692221a410..7e4db311d9a7 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.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 package pull diff --git a/services/pull/edits.go b/services/pull/edits.go index 84f7c80da7b7..c7550dcb0739 100644 --- a/services/pull/edits.go +++ b/services/pull/edits.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/lfs.go b/services/pull/lfs.go index 8cca0a91b79d..4b9826bedd50 100644 --- a/services/pull/lfs.go +++ b/services/pull/lfs.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 package pull diff --git a/services/pull/main_test.go b/services/pull/main_test.go index 5471686e7298..2014b192754f 100644 --- a/services/pull/main_test.go +++ b/services/pull/main_test.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 package pull diff --git a/services/pull/merge.go b/services/pull/merge.go index b29c9bc85993..afed98989b5b 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.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 package pull diff --git a/services/pull/patch.go b/services/pull/patch.go index 1046095ff110..925f310a2c05 100644 --- a/services/pull/patch.go +++ b/services/pull/patch.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 package pull diff --git a/services/pull/patch_unmerged.go b/services/pull/patch_unmerged.go index 3f1bb7d52349..c60c48d92320 100644 --- a/services/pull/patch_unmerged.go +++ b/services/pull/patch_unmerged.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/pull.go b/services/pull/pull.go index e0dcefe1410b..ddb407b05384 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.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 pull diff --git a/services/pull/pull_test.go b/services/pull/pull_test.go index 22eefd1624a3..cbbdccce9c07 100644 --- a/services/pull/pull_test.go +++ b/services/pull/pull_test.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 package pull diff --git a/services/pull/review.go b/services/pull/review.go index 2555e1b3b35e..1f2bc77e2cd1 100644 --- a/services/pull/review.go +++ b/services/pull/review.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 package pull diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go index 9c04aa1c92fe..842719467f36 100644 --- a/services/pull/temp_repo.go +++ b/services/pull/temp_repo.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 package pull diff --git a/services/pull/update.go b/services/pull/update.go index 36e66bb7a9d5..6ff554e612c9 100644 --- a/services/pull/update.go +++ b/services/pull/update.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 pull diff --git a/services/release/release.go b/services/release/release.go index eb989381f0f5..07e329cf43cd 100644 --- a/services/release/release.go +++ b/services/release/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 release diff --git a/services/release/release_test.go b/services/release/release_test.go index 1ade9bed37af..9b8aaa364983 100644 --- a/services/release/release_test.go +++ b/services/release/release_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 release diff --git a/services/repository/adopt.go b/services/repository/adopt.go index 3895c54c7b95..fb7adcfd2948 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.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/services/repository/adopt_test.go b/services/repository/adopt_test.go index b450005f344b..be8897693eb8 100644 --- a/services/repository/adopt_test.go +++ b/services/repository/adopt_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 repository diff --git a/services/repository/archiver/archiver.go b/services/repository/archiver/archiver.go index f1c2693aeb10..94fff6ffa26f 100644 --- a/services/repository/archiver/archiver.go +++ b/services/repository/archiver/archiver.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 archiver diff --git a/services/repository/archiver/archiver_test.go b/services/repository/archiver/archiver_test.go index 24437ce76c2c..3cd6e813512b 100644 --- a/services/repository/archiver/archiver_test.go +++ b/services/repository/archiver/archiver_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 archiver diff --git a/services/repository/avatar.go b/services/repository/avatar.go index e4c8da3ba2d9..a829a1000ae3 100644 --- a/services/repository/avatar.go +++ b/services/repository/avatar.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 repository diff --git a/services/repository/avatar_test.go b/services/repository/avatar_test.go index e5d9ac9d53e5..3875302696d0 100644 --- a/services/repository/avatar_test.go +++ b/services/repository/avatar_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 repository diff --git a/services/repository/branch.go b/services/repository/branch.go index e1f26b89afc2..e5ffbbeb746e 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.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 repository diff --git a/services/repository/cache.go b/services/repository/cache.go index 855fe7f4a042..6fd4fa7250f5 100644 --- a/services/repository/cache.go +++ b/services/repository/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 repository diff --git a/services/repository/check.go b/services/repository/check.go index 5725f540b0cc..6e29dc93d1e2 100644 --- a/services/repository/check.go +++ b/services/repository/check.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/services/repository/files/cherry_pick.go b/services/repository/files/cherry_pick.go index a30d4f6025e8..6bc67e263699 100644 --- a/services/repository/files/cherry_pick.go +++ b/services/repository/files/cherry_pick.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 files diff --git a/services/repository/files/commit.go b/services/repository/files/commit.go index bc5a4c8ed3a8..c49b03d60854 100644 --- a/services/repository/files/commit.go +++ b/services/repository/files/commit.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 files diff --git a/services/repository/files/content.go b/services/repository/files/content.go index 34c8aeec25e4..a311625f3159 100644 --- a/services/repository/files/content.go +++ b/services/repository/files/content.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 files diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go index 24fcd6c4c5d5..a43b71cf31e1 100644 --- a/services/repository/files/content_test.go +++ b/services/repository/files/content_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 files diff --git a/services/repository/files/delete.go b/services/repository/files/delete.go index f098052ad8ab..faa60bb3bae4 100644 --- a/services/repository/files/delete.go +++ b/services/repository/files/delete.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 files diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go index dbe1bef52b7b..373249b11454 100644 --- a/services/repository/files/diff.go +++ b/services/repository/files/diff.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 files diff --git a/services/repository/files/diff_test.go b/services/repository/files/diff_test.go index 310308ca88c3..621816e97d42 100644 --- a/services/repository/files/diff_test.go +++ b/services/repository/files/diff_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 files diff --git a/services/repository/files/file.go b/services/repository/files/file.go index c6c626c9ced7..ddd64a5399d7 100644 --- a/services/repository/files/file.go +++ b/services/repository/files/file.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 files diff --git a/services/repository/files/file_test.go b/services/repository/files/file_test.go index e158c63de24a..e1c7d5d7fb40 100644 --- a/services/repository/files/file_test.go +++ b/services/repository/files/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 files diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go index 2be01f25be53..b5eef8c09139 100644 --- a/services/repository/files/patch.go +++ b/services/repository/files/patch.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 files diff --git a/services/repository/files/temp_repo.go b/services/repository/files/temp_repo.go index b96d9e7b3df5..1f3375cdcc83 100644 --- a/services/repository/files/temp_repo.go +++ b/services/repository/files/temp_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 files diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go index 59e56909770b..1aa6d0df36de 100644 --- a/services/repository/files/tree.go +++ b/services/repository/files/tree.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 files diff --git a/services/repository/files/tree_test.go b/services/repository/files/tree_test.go index e900480d354d..a500dbdb2241 100644 --- a/services/repository/files/tree_test.go +++ b/services/repository/files/tree_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 files diff --git a/services/repository/files/update.go b/services/repository/files/update.go index 1721b00b01e9..f7a41ef24c9c 100644 --- a/services/repository/files/update.go +++ b/services/repository/files/update.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 files diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go index 372878099103..0ada3885b1ea 100644 --- a/services/repository/files/upload.go +++ b/services/repository/files/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 files diff --git a/services/repository/fork.go b/services/repository/fork.go index a9a2b33ed847..cf9b3992cd0c 100644 --- a/services/repository/fork.go +++ b/services/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/services/repository/fork_test.go b/services/repository/fork_test.go index d4ba507351f3..c809ed4529ce 100644 --- a/services/repository/fork_test.go +++ b/services/repository/fork_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 repository diff --git a/services/repository/hooks.go b/services/repository/hooks.go index d29384e01248..a8b6f7a62228 100644 --- a/services/repository/hooks.go +++ b/services/repository/hooks.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 repository diff --git a/services/repository/main_test.go b/services/repository/main_test.go index 42134fa7adab..007790f2a962 100644 --- a/services/repository/main_test.go +++ b/services/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/services/repository/push.go b/services/repository/push.go index e2db18e1f759..bce01cb76a50 100644 --- a/services/repository/push.go +++ b/services/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/services/repository/repository.go b/services/repository/repository.go index c369b98aae09..859c32cf8fd9 100644 --- a/services/repository/repository.go +++ b/services/repository/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 repository diff --git a/services/repository/repository_test.go b/services/repository/repository_test.go index e0ffcac3cc74..5f5283bddb65 100644 --- a/services/repository/repository_test.go +++ b/services/repository/repository_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 repository diff --git a/services/repository/review.go b/services/repository/review.go index 9e8012978eaa..d30d61ee0668 100644 --- a/services/repository/review.go +++ b/services/repository/review.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/services/repository/review_test.go b/services/repository/review_test.go index badacf39a6f1..2bf4cdbf5cdf 100644 --- a/services/repository/review_test.go +++ b/services/repository/review_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 repository diff --git a/services/repository/template.go b/services/repository/template.go index 625bc305de7a..13e074986939 100644 --- a/services/repository/template.go +++ b/services/repository/template.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/services/repository/transfer.go b/services/repository/transfer.go index 2778f2e74423..af28f5a4a54e 100644 --- a/services/repository/transfer.go +++ b/services/repository/transfer.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/services/repository/transfer_test.go b/services/repository/transfer_test.go index bf2a0ce0a21c..2bbc5abbd257 100644 --- a/services/repository/transfer_test.go +++ b/services/repository/transfer_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/services/task/migrate.go b/services/task/migrate.go index 307c60a09a33..03d083e59667 100644 --- a/services/task/migrate.go +++ b/services/task/migrate.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 task diff --git a/services/task/task.go b/services/task/task.go index 138dc88a0457..41bc07f2f6eb 100644 --- a/services/task/task.go +++ b/services/task/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 task diff --git a/services/user/user.go b/services/user/user.go index 9976bc7bd346..65db732bf917 100644 --- a/services/user/user.go +++ b/services/user/user.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 user diff --git a/services/user/user_test.go b/services/user/user_test.go index c07244e7e1e7..5e052a9df26f 100644 --- a/services/user/user_test.go +++ b/services/user/user_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 user diff --git a/services/webhook/deliver.go b/services/webhook/deliver.go index 07fdf18c8347..eed711c58006 100644 --- a/services/webhook/deliver.go +++ b/services/webhook/deliver.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/services/webhook/deliver_test.go b/services/webhook/deliver_test.go index 498cf7d159f0..e7a042f4d2de 100644 --- a/services/webhook/deliver_test.go +++ b/services/webhook/deliver_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 webhook diff --git a/services/webhook/dingtalk.go b/services/webhook/dingtalk.go index e047e994c2f4..7cb1fb75fc30 100644 --- a/services/webhook/dingtalk.go +++ b/services/webhook/dingtalk.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 webhook diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go index fc15380f4dae..89b5f9d219dc 100644 --- a/services/webhook/dingtalk_test.go +++ b/services/webhook/dingtalk_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 webhook diff --git a/services/webhook/discord.go b/services/webhook/discord.go index 22d75db89305..c9fdc9532042 100644 --- a/services/webhook/discord.go +++ b/services/webhook/discord.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 webhook diff --git a/services/webhook/discord_test.go b/services/webhook/discord_test.go index 8e4e60a7ff05..df3cdc15bdda 100644 --- a/services/webhook/discord_test.go +++ b/services/webhook/discord_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 webhook diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go index 782684d0ffb0..58b6fff3318e 100644 --- a/services/webhook/feishu.go +++ b/services/webhook/feishu.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 webhook diff --git a/services/webhook/feishu_test.go b/services/webhook/feishu_test.go index 85cfb759fe16..df44fd1f724a 100644 --- a/services/webhook/feishu_test.go +++ b/services/webhook/feishu_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 webhook diff --git a/services/webhook/general.go b/services/webhook/general.go index f6ef67392352..bec752cffe58 100644 --- a/services/webhook/general.go +++ b/services/webhook/general.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/services/webhook/general_test.go b/services/webhook/general_test.go index da3123d3aba2..ba58ca4f90d6 100644 --- a/services/webhook/general_test.go +++ b/services/webhook/general_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 webhook diff --git a/services/webhook/main_test.go b/services/webhook/main_test.go index 5ddb6cf1f338..6cf9410735c8 100644 --- a/services/webhook/main_test.go +++ b/services/webhook/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 webhook diff --git a/services/webhook/matrix.go b/services/webhook/matrix.go index 7ff8b1e63838..bd3efd46b273 100644 --- a/services/webhook/matrix.go +++ b/services/webhook/matrix.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 webhook diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go index bbcdef356778..754234eccf96 100644 --- a/services/webhook/matrix_test.go +++ b/services/webhook/matrix_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 webhook diff --git a/services/webhook/msteams.go b/services/webhook/msteams.go index bf9e95edc57d..ef8366f8d5c7 100644 --- a/services/webhook/msteams.go +++ b/services/webhook/msteams.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/services/webhook/msteams_test.go b/services/webhook/msteams_test.go index 8292beed7f81..8daf99f86700 100644 --- a/services/webhook/msteams_test.go +++ b/services/webhook/msteams_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 webhook diff --git a/services/webhook/packagist.go b/services/webhook/packagist.go index 5badc7462ac2..815e1a93e9f1 100644 --- a/services/webhook/packagist.go +++ b/services/webhook/packagist.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 webhook diff --git a/services/webhook/packagist_test.go b/services/webhook/packagist_test.go index 4a24b76523c4..4941ae3f01ca 100644 --- a/services/webhook/packagist_test.go +++ b/services/webhook/packagist_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 webhook diff --git a/services/webhook/payloader.go b/services/webhook/payloader.go index a9d01c989150..7b04f1dd36a9 100644 --- a/services/webhook/payloader.go +++ b/services/webhook/payloader.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 webhook diff --git a/services/webhook/slack.go b/services/webhook/slack.go index f5c69d74b678..1814361a1cd3 100644 --- a/services/webhook/slack.go +++ b/services/webhook/slack.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 webhook diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go index 3af38b5158c0..db97b351c575 100644 --- a/services/webhook/slack_test.go +++ b/services/webhook/slack_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 webhook diff --git a/services/webhook/telegram.go b/services/webhook/telegram.go index 7ca5f61062c6..8bc68490e504 100644 --- a/services/webhook/telegram.go +++ b/services/webhook/telegram.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/services/webhook/telegram_test.go b/services/webhook/telegram_test.go index 5ca78d050815..b092f7e73206 100644 --- a/services/webhook/telegram_test.go +++ b/services/webhook/telegram_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 webhook diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go index 5c9139b41f1c..21173e7cd825 100644 --- a/services/webhook/webhook.go +++ b/services/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/services/webhook/webhook_test.go b/services/webhook/webhook_test.go index 8d44aa504ae2..a1f197d80935 100644 --- a/services/webhook/webhook_test.go +++ b/services/webhook/webhook_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 webhook diff --git a/services/webhook/wechatwork.go b/services/webhook/wechatwork.go index acaa12253bc8..a77d871dd7f6 100644 --- a/services/webhook/wechatwork.go +++ b/services/webhook/wechatwork.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 webhook diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go index f6986cff8603..e483416fda76 100644 --- a/services/wiki/wiki.go +++ b/services/wiki/wiki.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 wiki diff --git a/services/wiki/wiki_test.go b/services/wiki/wiki_test.go index 774ef6c28341..268d8848c504 100644 --- a/services/wiki/wiki_test.go +++ b/services/wiki/wiki_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 wiki diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 6028ff74fc31..697a828e0198 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_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 // This is primarily coped from /tests/integration/integration_test.go // TODO: Move common functions to shared file diff --git a/tests/e2e/utils_e2e_test.go b/tests/e2e/utils_e2e_test.go index f8f3e94cda15..e6e35c47466e 100644 --- a/tests/e2e/utils_e2e_test.go +++ b/tests/e2e/utils_e2e_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 e2e diff --git a/tests/integration/admin_user_test.go b/tests/integration/admin_user_test.go index ffe3f670fe8d..dd6b9ccbbeb8 100644 --- a/tests/integration/admin_user_test.go +++ b/tests/integration/admin_user_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 integration diff --git a/tests/integration/api_activitypub_person_test.go b/tests/integration/api_activitypub_person_test.go index e7ef79d156d6..dadc417aa440 100644 --- a/tests/integration/api_activitypub_person_test.go +++ b/tests/integration/api_activitypub_person_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 integration diff --git a/tests/integration/api_admin_org_test.go b/tests/integration/api_admin_org_test.go index a8770db4ca40..971016333047 100644 --- a/tests/integration/api_admin_org_test.go +++ b/tests/integration/api_admin_org_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 integration diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go index d6bc6016ff7f..2a487fb83ad0 100644 --- a/tests/integration/api_admin_test.go +++ b/tests/integration/api_admin_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 integration diff --git a/tests/integration/api_branch_test.go b/tests/integration/api_branch_test.go index bdfdd3c7520b..1fa757d9d867 100644 --- a/tests/integration/api_branch_test.go +++ b/tests/integration/api_branch_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 integration diff --git a/tests/integration/api_comment_test.go b/tests/integration/api_comment_test.go index 9cac32b9b9df..ef21d7f90186 100644 --- a/tests/integration/api_comment_test.go +++ b/tests/integration/api_comment_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 integration diff --git a/tests/integration/api_feed_user_test.go b/tests/integration/api_feed_user_test.go index c137dd120910..c44f9a195111 100644 --- a/tests/integration/api_feed_user_test.go +++ b/tests/integration/api_feed_user_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 integration diff --git a/tests/integration/api_fork_test.go b/tests/integration/api_fork_test.go index 131dcf70bb96..7c231415a318 100644 --- a/tests/integration/api_fork_test.go +++ b/tests/integration/api_fork_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_gpg_keys_test.go b/tests/integration/api_gpg_keys_test.go index 0ad876c9b97a..9e1641d3b914 100644 --- a/tests/integration/api_gpg_keys_test.go +++ b/tests/integration/api_gpg_keys_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_helper_for_declarative_test.go b/tests/integration/api_helper_for_declarative_test.go index 5a798f79f0fc..dbfe502ec1d2 100644 --- a/tests/integration/api_helper_for_declarative_test.go +++ b/tests/integration/api_helper_for_declarative_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 integration diff --git a/tests/integration/api_httpsig_test.go b/tests/integration/api_httpsig_test.go index 80b3c586b432..d5db5952c417 100644 --- a/tests/integration/api_httpsig_test.go +++ b/tests/integration/api_httpsig_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 integration diff --git a/tests/integration/api_issue_label_test.go b/tests/integration/api_issue_label_test.go index 586c50a55f17..8a324a6684e1 100644 --- a/tests/integration/api_issue_label_test.go +++ b/tests/integration/api_issue_label_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 integration diff --git a/tests/integration/api_issue_milestone_test.go b/tests/integration/api_issue_milestone_test.go index e22a091bb8d1..7adaa0a1ee63 100644 --- a/tests/integration/api_issue_milestone_test.go +++ b/tests/integration/api_issue_milestone_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 integration diff --git a/tests/integration/api_issue_reaction_test.go b/tests/integration/api_issue_reaction_test.go index 9afc7475e276..85a39fffea3a 100644 --- a/tests/integration/api_issue_reaction_test.go +++ b/tests/integration/api_issue_reaction_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 integration diff --git a/tests/integration/api_issue_stopwatch_test.go b/tests/integration/api_issue_stopwatch_test.go index c2ad9c45e820..4539d0ff62ab 100644 --- a/tests/integration/api_issue_stopwatch_test.go +++ b/tests/integration/api_issue_stopwatch_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 integration diff --git a/tests/integration/api_issue_subscription_test.go b/tests/integration/api_issue_subscription_test.go index f4588fbbc42c..68b29f364173 100644 --- a/tests/integration/api_issue_subscription_test.go +++ b/tests/integration/api_issue_subscription_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 integration diff --git a/tests/integration/api_issue_test.go b/tests/integration/api_issue_test.go index 3e651c620b04..095ebb177306 100644 --- a/tests/integration/api_issue_test.go +++ b/tests/integration/api_issue_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 integration diff --git a/tests/integration/api_issue_tracked_time_test.go b/tests/integration/api_issue_tracked_time_test.go index 6e2c77030cb7..aacf1e0fd026 100644 --- a/tests/integration/api_issue_tracked_time_test.go +++ b/tests/integration/api_issue_tracked_time_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 integration diff --git a/tests/integration/api_keys_test.go b/tests/integration/api_keys_test.go index 1cb0b20ffe16..e70fa4a4eabe 100644 --- a/tests/integration/api_keys_test.go +++ b/tests/integration/api_keys_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_nodeinfo_test.go b/tests/integration/api_nodeinfo_test.go index 2446acec9427..a7313f3b2cb5 100644 --- a/tests/integration/api_nodeinfo_test.go +++ b/tests/integration/api_nodeinfo_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 integration diff --git a/tests/integration/api_notification_test.go b/tests/integration/api_notification_test.go index f14380222873..2ee4778ab5ee 100644 --- a/tests/integration/api_notification_test.go +++ b/tests/integration/api_notification_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 integration diff --git a/tests/integration/api_oauth2_apps_test.go b/tests/integration/api_oauth2_apps_test.go index 6352449d6acb..59be697a1477 100644 --- a/tests/integration/api_oauth2_apps_test.go +++ b/tests/integration/api_oauth2_apps_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go index 16e53d6b8158..5cd138eee2fb 100644 --- a/tests/integration/api_org_test.go +++ b/tests/integration/api_org_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 integration diff --git a/tests/integration/api_packages_composer_test.go b/tests/integration/api_packages_composer_test.go index 90285f78d3ab..87647cc47535 100644 --- a/tests/integration/api_packages_composer_test.go +++ b/tests/integration/api_packages_composer_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 integration diff --git a/tests/integration/api_packages_conan_test.go b/tests/integration/api_packages_conan_test.go index 40c8b7088383..5ced388b4858 100644 --- a/tests/integration/api_packages_conan_test.go +++ b/tests/integration/api_packages_conan_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 integration diff --git a/tests/integration/api_packages_container_test.go b/tests/integration/api_packages_container_test.go index 60cbecd0675b..851021da1b7c 100644 --- a/tests/integration/api_packages_container_test.go +++ b/tests/integration/api_packages_container_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 integration diff --git a/tests/integration/api_packages_generic_test.go b/tests/integration/api_packages_generic_test.go index 4c5c0c615c57..875b9ed96ee8 100644 --- a/tests/integration/api_packages_generic_test.go +++ b/tests/integration/api_packages_generic_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 integration diff --git a/tests/integration/api_packages_helm_test.go b/tests/integration/api_packages_helm_test.go index 3c30a6848e56..4a7d56343183 100644 --- a/tests/integration/api_packages_helm_test.go +++ b/tests/integration/api_packages_helm_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 integration diff --git a/tests/integration/api_packages_maven_test.go b/tests/integration/api_packages_maven_test.go index e71e1ff03baf..5c0dbfc99cce 100644 --- a/tests/integration/api_packages_maven_test.go +++ b/tests/integration/api_packages_maven_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 integration diff --git a/tests/integration/api_packages_npm_test.go b/tests/integration/api_packages_npm_test.go index 20412fe727cf..39d1c91e87d2 100644 --- a/tests/integration/api_packages_npm_test.go +++ b/tests/integration/api_packages_npm_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 integration diff --git a/tests/integration/api_packages_nuget_test.go b/tests/integration/api_packages_nuget_test.go index bf4217ef2621..72329b669120 100644 --- a/tests/integration/api_packages_nuget_test.go +++ b/tests/integration/api_packages_nuget_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 integration diff --git a/tests/integration/api_packages_pub_test.go b/tests/integration/api_packages_pub_test.go index 9e4ce63fa109..325401fe7586 100644 --- a/tests/integration/api_packages_pub_test.go +++ b/tests/integration/api_packages_pub_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 integration diff --git a/tests/integration/api_packages_pypi_test.go b/tests/integration/api_packages_pypi_test.go index 83719dcca0f4..71197f92a8d8 100644 --- a/tests/integration/api_packages_pypi_test.go +++ b/tests/integration/api_packages_pypi_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 integration diff --git a/tests/integration/api_packages_rubygems_test.go b/tests/integration/api_packages_rubygems_test.go index 6cf5af710b3b..c85ff9aaf59d 100644 --- a/tests/integration/api_packages_rubygems_test.go +++ b/tests/integration/api_packages_rubygems_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 integration diff --git a/tests/integration/api_packages_test.go b/tests/integration/api_packages_test.go index 8efb70848bf6..8346e3bcccaa 100644 --- a/tests/integration/api_packages_test.go +++ b/tests/integration/api_packages_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 integration diff --git a/tests/integration/api_packages_vagrant_test.go b/tests/integration/api_packages_vagrant_test.go index 1d2952e1a201..d3e4449f2954 100644 --- a/tests/integration/api_packages_vagrant_test.go +++ b/tests/integration/api_packages_vagrant_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 integration diff --git a/tests/integration/api_private_serv_test.go b/tests/integration/api_private_serv_test.go index 6fd6d616db8a..d26935f44627 100644 --- a/tests/integration/api_private_serv_test.go +++ b/tests/integration/api_private_serv_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 integration diff --git a/tests/integration/api_pull_commits_test.go b/tests/integration/api_pull_commits_test.go index 6753ceaa9731..3068ca2dd68f 100644 --- a/tests/integration/api_pull_commits_test.go +++ b/tests/integration/api_pull_commits_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 integration diff --git a/tests/integration/api_pull_review_test.go b/tests/integration/api_pull_review_test.go index 6ebad106fb31..ac7982773d0c 100644 --- a/tests/integration/api_pull_review_test.go +++ b/tests/integration/api_pull_review_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 integration diff --git a/tests/integration/api_pull_test.go b/tests/integration/api_pull_test.go index 81842b05fbb2..5e987c441ef2 100644 --- a/tests/integration/api_pull_test.go +++ b/tests/integration/api_pull_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 integration diff --git a/tests/integration/api_releases_test.go b/tests/integration/api_releases_test.go index 0c7f5e2d521e..90691d81abee 100644 --- a/tests/integration/api_releases_test.go +++ b/tests/integration/api_releases_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 integration diff --git a/tests/integration/api_repo_archive_test.go b/tests/integration/api_repo_archive_test.go index 3707cb7c1c8b..a3c03ba2fcbc 100644 --- a/tests/integration/api_repo_archive_test.go +++ b/tests/integration/api_repo_archive_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 integration diff --git a/tests/integration/api_repo_collaborator_test.go b/tests/integration/api_repo_collaborator_test.go index 3527e16572d9..cb834096cb4d 100644 --- a/tests/integration/api_repo_collaborator_test.go +++ b/tests/integration/api_repo_collaborator_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 integration diff --git a/tests/integration/api_repo_edit_test.go b/tests/integration/api_repo_edit_test.go index 4dfae97e4379..dcaecbd035cd 100644 --- a/tests/integration/api_repo_edit_test.go +++ b/tests/integration/api_repo_edit_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 integration diff --git a/tests/integration/api_repo_file_create_test.go b/tests/integration/api_repo_file_create_test.go index f03efaa0eadf..17e26d966ba3 100644 --- a/tests/integration/api_repo_file_create_test.go +++ b/tests/integration/api_repo_file_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 integration diff --git a/tests/integration/api_repo_file_delete_test.go b/tests/integration/api_repo_file_delete_test.go index 2c8b1e381f7c..1956c2a3a223 100644 --- a/tests/integration/api_repo_file_delete_test.go +++ b/tests/integration/api_repo_file_delete_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 integration diff --git a/tests/integration/api_repo_file_get_test.go b/tests/integration/api_repo_file_get_test.go index cca72c2b3ec8..4fca55c93df8 100644 --- a/tests/integration/api_repo_file_get_test.go +++ b/tests/integration/api_repo_file_get_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 integration diff --git a/tests/integration/api_repo_file_helpers.go b/tests/integration/api_repo_file_helpers.go index 298bae95c0d0..d773bcd6293c 100644 --- a/tests/integration/api_repo_file_helpers.go +++ b/tests/integration/api_repo_file_helpers.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 integration diff --git a/tests/integration/api_repo_file_update_test.go b/tests/integration/api_repo_file_update_test.go index a3be67ad844f..eba1d78fe7f5 100644 --- a/tests/integration/api_repo_file_update_test.go +++ b/tests/integration/api_repo_file_update_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 integration diff --git a/tests/integration/api_repo_get_contents_list_test.go b/tests/integration/api_repo_get_contents_list_test.go index 4f2f5cb528c9..e0db8329dec3 100644 --- a/tests/integration/api_repo_get_contents_list_test.go +++ b/tests/integration/api_repo_get_contents_list_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 integration diff --git a/tests/integration/api_repo_get_contents_test.go b/tests/integration/api_repo_get_contents_test.go index dddc316e1a96..ccbcfba4865e 100644 --- a/tests/integration/api_repo_get_contents_test.go +++ b/tests/integration/api_repo_get_contents_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 integration diff --git a/tests/integration/api_repo_git_blobs_test.go b/tests/integration/api_repo_git_blobs_test.go index cb5116c743b5..1dd59776c16d 100644 --- a/tests/integration/api_repo_git_blobs_test.go +++ b/tests/integration/api_repo_git_blobs_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 integration diff --git a/tests/integration/api_repo_git_commits_test.go b/tests/integration/api_repo_git_commits_test.go index 99f83f943c31..90d17795c18e 100644 --- a/tests/integration/api_repo_git_commits_test.go +++ b/tests/integration/api_repo_git_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 integration diff --git a/tests/integration/api_repo_git_hook_test.go b/tests/integration/api_repo_git_hook_test.go index a6c4f91d4a5b..a3bbe9bbad14 100644 --- a/tests/integration/api_repo_git_hook_test.go +++ b/tests/integration/api_repo_git_hook_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 integration diff --git a/tests/integration/api_repo_git_notes_test.go b/tests/integration/api_repo_git_notes_test.go index 713c7599c333..e57055340e24 100644 --- a/tests/integration/api_repo_git_notes_test.go +++ b/tests/integration/api_repo_git_notes_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 integration diff --git a/tests/integration/api_repo_git_ref_test.go b/tests/integration/api_repo_git_ref_test.go index e8fc47f8dc30..ee4ae6e1268b 100644 --- a/tests/integration/api_repo_git_ref_test.go +++ b/tests/integration/api_repo_git_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 integration diff --git a/tests/integration/api_repo_git_tags_test.go b/tests/integration/api_repo_git_tags_test.go index 3357f9568dbd..941ede45f909 100644 --- a/tests/integration/api_repo_git_tags_test.go +++ b/tests/integration/api_repo_git_tags_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 integration diff --git a/tests/integration/api_repo_git_trees_test.go b/tests/integration/api_repo_git_trees_test.go index 385fec12ba15..b99326e1ac44 100644 --- a/tests/integration/api_repo_git_trees_test.go +++ b/tests/integration/api_repo_git_trees_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 integration diff --git a/tests/integration/api_repo_hook_test.go b/tests/integration/api_repo_hook_test.go index e503834e188c..cf080575da6f 100644 --- a/tests/integration/api_repo_hook_test.go +++ b/tests/integration/api_repo_hook_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 integration diff --git a/tests/integration/api_repo_languages_test.go b/tests/integration/api_repo_languages_test.go index 98373fb6b16a..17e626fa7fdf 100644 --- a/tests/integration/api_repo_languages_test.go +++ b/tests/integration/api_repo_languages_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 integration diff --git a/tests/integration/api_repo_lfs_locks_test.go b/tests/integration/api_repo_lfs_locks_test.go index 2186933bd9bb..5aa1396941dd 100644 --- a/tests/integration/api_repo_lfs_locks_test.go +++ b/tests/integration/api_repo_lfs_locks_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 integration diff --git a/tests/integration/api_repo_lfs_migrate_test.go b/tests/integration/api_repo_lfs_migrate_test.go index d2edf67e8be5..50d0c5966bad 100644 --- a/tests/integration/api_repo_lfs_migrate_test.go +++ b/tests/integration/api_repo_lfs_migrate_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 integration diff --git a/tests/integration/api_repo_lfs_test.go b/tests/integration/api_repo_lfs_test.go index 440dd04a8106..d4334ff8b99c 100644 --- a/tests/integration/api_repo_lfs_test.go +++ b/tests/integration/api_repo_lfs_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 integration diff --git a/tests/integration/api_repo_raw_test.go b/tests/integration/api_repo_raw_test.go index 9793e12b4292..f050e354ac27 100644 --- a/tests/integration/api_repo_raw_test.go +++ b/tests/integration/api_repo_raw_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 integration diff --git a/tests/integration/api_repo_tags_test.go b/tests/integration/api_repo_tags_test.go index 5d3a209a767a..5149542915ea 100644 --- a/tests/integration/api_repo_tags_test.go +++ b/tests/integration/api_repo_tags_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 integration diff --git a/tests/integration/api_repo_teams_test.go b/tests/integration/api_repo_teams_test.go index 1e476a89e232..58ba841948c8 100644 --- a/tests/integration/api_repo_teams_test.go +++ b/tests/integration/api_repo_teams_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 integration diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go index bfe0c0aa9c58..e32bb47bc708 100644 --- a/tests/integration/api_repo_test.go +++ b/tests/integration/api_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 integration diff --git a/tests/integration/api_repo_topic_test.go b/tests/integration/api_repo_topic_test.go index 4e1e29389068..81eb1a9427df 100644 --- a/tests/integration/api_repo_topic_test.go +++ b/tests/integration/api_repo_topic_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 integration diff --git a/tests/integration/api_settings_test.go b/tests/integration/api_settings_test.go index b8da17b963a0..9881578fba51 100644 --- a/tests/integration/api_settings_test.go +++ b/tests/integration/api_settings_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 integration diff --git a/tests/integration/api_team_test.go b/tests/integration/api_team_test.go index a667949c096f..c6be5c19472c 100644 --- a/tests/integration/api_team_test.go +++ b/tests/integration/api_team_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 integration diff --git a/tests/integration/api_team_user_test.go b/tests/integration/api_team_user_test.go index b999b97a2b6f..d09749d65ca5 100644 --- a/tests/integration/api_team_user_test.go +++ b/tests/integration/api_team_user_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 integration diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go index 023bf301797b..498bd41b0f6a 100644 --- a/tests/integration/api_token_test.go +++ b/tests/integration/api_token_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 integration diff --git a/tests/integration/api_user_email_test.go b/tests/integration/api_user_email_test.go index 7bd265187ca0..5f2592252a38 100644 --- a/tests/integration/api_user_email_test.go +++ b/tests/integration/api_user_email_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 integration diff --git a/tests/integration/api_user_follow_test.go b/tests/integration/api_user_follow_test.go index e21556aa5b2d..65749521cc63 100644 --- a/tests/integration/api_user_follow_test.go +++ b/tests/integration/api_user_follow_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 integration diff --git a/tests/integration/api_user_heatmap_test.go b/tests/integration/api_user_heatmap_test.go index da6af0118ddc..432306914cd2 100644 --- a/tests/integration/api_user_heatmap_test.go +++ b/tests/integration/api_user_heatmap_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_info_test.go b/tests/integration/api_user_info_test.go index 27fec1d58788..65262792b7fa 100644 --- a/tests/integration/api_user_info_test.go +++ b/tests/integration/api_user_info_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 integration diff --git a/tests/integration/api_user_org_perm_test.go b/tests/integration/api_user_org_perm_test.go index fef653545c5f..9483283e3288 100644 --- a/tests/integration/api_user_org_perm_test.go +++ b/tests/integration/api_user_org_perm_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 integration diff --git a/tests/integration/api_user_orgs_test.go b/tests/integration/api_user_orgs_test.go index c28bf391eb3a..f29014e934c9 100644 --- a/tests/integration/api_user_orgs_test.go +++ b/tests/integration/api_user_orgs_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_search_test.go b/tests/integration/api_user_search_test.go index 9e9276077b40..58b24d0e1efc 100644 --- a/tests/integration/api_user_search_test.go +++ b/tests/integration/api_user_search_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_star_test.go b/tests/integration/api_user_star_test.go index 76c3dc2d1775..63363f22de16 100644 --- a/tests/integration/api_user_star_test.go +++ b/tests/integration/api_user_star_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 integration diff --git a/tests/integration/api_user_watch_test.go b/tests/integration/api_user_watch_test.go index e45050a2783e..295e639fd18c 100644 --- a/tests/integration/api_user_watch_test.go +++ b/tests/integration/api_user_watch_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 integration diff --git a/tests/integration/api_wiki_test.go b/tests/integration/api_wiki_test.go index c6f4841d082e..d56b04e91318 100644 --- a/tests/integration/api_wiki_test.go +++ b/tests/integration/api_wiki_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 integration diff --git a/tests/integration/attachment_test.go b/tests/integration/attachment_test.go index 2d2c979f7b0a..a92814ecee6c 100644 --- a/tests/integration/attachment_test.go +++ b/tests/integration/attachment_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 integration diff --git a/tests/integration/auth_ldap_test.go b/tests/integration/auth_ldap_test.go index f3c3e6d7b3e3..88571ecd614e 100644 --- a/tests/integration/auth_ldap_test.go +++ b/tests/integration/auth_ldap_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 integration diff --git a/tests/integration/benchmarks_test.go b/tests/integration/benchmarks_test.go index bf66d221fb07..2f91f8273ea5 100644 --- a/tests/integration/benchmarks_test.go +++ b/tests/integration/benchmarks_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 integration diff --git a/tests/integration/branches_test.go b/tests/integration/branches_test.go index bd0bd63c50a1..efb3798bd777 100644 --- a/tests/integration/branches_test.go +++ b/tests/integration/branches_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 integration diff --git a/tests/integration/change_default_branch_test.go b/tests/integration/change_default_branch_test.go index 8edc0e63c438..703834b71296 100644 --- a/tests/integration/change_default_branch_test.go +++ b/tests/integration/change_default_branch_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 integration diff --git a/tests/integration/cmd_keys_test.go b/tests/integration/cmd_keys_test.go index 0c72956c2936..ccde0489145f 100644 --- a/tests/integration/cmd_keys_test.go +++ b/tests/integration/cmd_keys_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 integration diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index 134ae520a876..dc2bff89fd45 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_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 integration diff --git a/tests/integration/cors_test.go b/tests/integration/cors_test.go index c702c62e48df..cc2d85b41eba 100644 --- a/tests/integration/cors_test.go +++ b/tests/integration/cors_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 integration diff --git a/tests/integration/create_no_session_test.go b/tests/integration/create_no_session_test.go index c617b1828a1d..9a96ed61faec 100644 --- a/tests/integration/create_no_session_test.go +++ b/tests/integration/create_no_session_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 integration diff --git a/tests/integration/csrf_test.go b/tests/integration/csrf_test.go index 18a157412b23..a789859889b8 100644 --- a/tests/integration/csrf_test.go +++ b/tests/integration/csrf_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 integration diff --git a/tests/integration/delete_user_test.go b/tests/integration/delete_user_test.go index 1d9d257f123e..806b87dc4cef 100644 --- a/tests/integration/delete_user_test.go +++ b/tests/integration/delete_user_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 integration diff --git a/tests/integration/download_test.go b/tests/integration/download_test.go index 9d3b17d10363..9e03ec28825a 100644 --- a/tests/integration/download_test.go +++ b/tests/integration/download_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 integration diff --git a/tests/integration/dump_restore_test.go b/tests/integration/dump_restore_test.go index 80c71810e35e..e34738aaf1eb 100644 --- a/tests/integration/dump_restore_test.go +++ b/tests/integration/dump_restore_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 integration diff --git a/tests/integration/editor_test.go b/tests/integration/editor_test.go index 19e80dc7bfd9..4355dd0a4d7b 100644 --- a/tests/integration/editor_test.go +++ b/tests/integration/editor_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 integration diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go index 8810363dc862..4bc1d811bf3b 100644 --- a/tests/integration/empty_repo_test.go +++ b/tests/integration/empty_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 integration diff --git a/tests/integration/eventsource_test.go b/tests/integration/eventsource_test.go index 2f698659cb96..e810a9fa246b 100644 --- a/tests/integration/eventsource_test.go +++ b/tests/integration/eventsource_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 integration diff --git a/tests/integration/explore_repos_test.go b/tests/integration/explore_repos_test.go index dca32527539e..26fd1dde6443 100644 --- a/tests/integration/explore_repos_test.go +++ b/tests/integration/explore_repos_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 integration diff --git a/tests/integration/git_clone_wiki_test.go b/tests/integration/git_clone_wiki_test.go index e8764e6bd9f5..d7949dfe25e4 100644 --- a/tests/integration/git_clone_wiki_test.go +++ b/tests/integration/git_clone_wiki_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 integration diff --git a/tests/integration/git_helper_for_declarative_test.go b/tests/integration/git_helper_for_declarative_test.go index 45b4f4447510..9e3ff9c4484d 100644 --- a/tests/integration/git_helper_for_declarative_test.go +++ b/tests/integration/git_helper_for_declarative_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 integration diff --git a/tests/integration/git_smart_http_test.go b/tests/integration/git_smart_http_test.go index 02b0e938704f..15336b9b81f3 100644 --- a/tests/integration/git_smart_http_test.go +++ b/tests/integration/git_smart_http_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 integration diff --git a/tests/integration/git_test.go b/tests/integration/git_test.go index 6f656ef2ce6d..6508df1ef0d9 100644 --- a/tests/integration/git_test.go +++ b/tests/integration/git_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 integration diff --git a/tests/integration/goget_test.go b/tests/integration/goget_test.go index c969f4aff10c..fab3911464ac 100644 --- a/tests/integration/goget_test.go +++ b/tests/integration/goget_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 integration diff --git a/tests/integration/gpg_git_test.go b/tests/integration/gpg_git_test.go index 4dcf6276c27d..669212ff14a1 100644 --- a/tests/integration/gpg_git_test.go +++ b/tests/integration/gpg_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 integration diff --git a/tests/integration/html_helper.go b/tests/integration/html_helper.go index 35d61f7b3e28..933bb51cf8f2 100644 --- a/tests/integration/html_helper.go +++ b/tests/integration/html_helper.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 integration diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go index 416cc126bda7..9bf4c38ee08f 100644 --- a/tests/integration/integration_test.go +++ b/tests/integration/integration_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 integration diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 1f0f894ca42c..c913a2000c89 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_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 integration diff --git a/tests/integration/lfs_getobject_test.go b/tests/integration/lfs_getobject_test.go index f2b0ac80c3ed..1a486b605144 100644 --- a/tests/integration/lfs_getobject_test.go +++ b/tests/integration/lfs_getobject_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 integration diff --git a/tests/integration/lfs_local_endpoint_test.go b/tests/integration/lfs_local_endpoint_test.go index 4042dc95b351..d42888bbe178 100644 --- a/tests/integration/lfs_local_endpoint_test.go +++ b/tests/integration/lfs_local_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 integration diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go index 4eb29f0cee7a..9136f8f9153a 100644 --- a/tests/integration/links_test.go +++ b/tests/integration/links_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 integration diff --git a/tests/integration/migrate_test.go b/tests/integration/migrate_test.go index 99d5d6c8dd23..9eca69cfcf20 100644 --- a/tests/integration/migrate_test.go +++ b/tests/integration/migrate_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 integration diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go index 0159fb4f3c79..170a6dd444c3 100644 --- a/tests/integration/migration-test/migration_test.go +++ b/tests/integration/migration-test/migration_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 migrations diff --git a/tests/integration/mirror_pull_test.go b/tests/integration/mirror_pull_test.go index 707cf46fa0fa..753b7e76639f 100644 --- a/tests/integration/mirror_pull_test.go +++ b/tests/integration/mirror_pull_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 integration diff --git a/tests/integration/mirror_push_test.go b/tests/integration/mirror_push_test.go index f2adf5f5a330..b2ec6c09325a 100644 --- a/tests/integration/mirror_push_test.go +++ b/tests/integration/mirror_push_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 integration diff --git a/tests/integration/nonascii_branches_test.go b/tests/integration/nonascii_branches_test.go index 638b9a61643e..d9e5b0fce3c4 100644 --- a/tests/integration/nonascii_branches_test.go +++ b/tests/integration/nonascii_branches_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 integration diff --git a/tests/integration/oauth_test.go b/tests/integration/oauth_test.go index 7863313b149a..9649b256a900 100644 --- a/tests/integration/oauth_test.go +++ b/tests/integration/oauth_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 integration diff --git a/tests/integration/org_count_test.go b/tests/integration/org_count_test.go index 96f39924f133..a6fe7f188eb1 100644 --- a/tests/integration/org_count_test.go +++ b/tests/integration/org_count_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 integration diff --git a/tests/integration/org_team_invite_test.go b/tests/integration/org_team_invite_test.go index 470478589aa6..4d848dfc6034 100644 --- a/tests/integration/org_team_invite_test.go +++ b/tests/integration/org_team_invite_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 integration diff --git a/tests/integration/org_test.go b/tests/integration/org_test.go index d04fcf7f57aa..09a5f42082cc 100644 --- a/tests/integration/org_test.go +++ b/tests/integration/org_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 integration diff --git a/tests/integration/privateactivity_test.go b/tests/integration/privateactivity_test.go index 3f352e49c618..06019406d791 100644 --- a/tests/integration/privateactivity_test.go +++ b/tests/integration/privateactivity_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 integration diff --git a/tests/integration/pull_compare_test.go b/tests/integration/pull_compare_test.go index 60e69e97eb3f..fa385ddae46e 100644 --- a/tests/integration/pull_compare_test.go +++ b/tests/integration/pull_compare_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 integration diff --git a/tests/integration/pull_create_test.go b/tests/integration/pull_create_test.go index b5cb7877bc9d..35f7cb8ab765 100644 --- a/tests/integration/pull_create_test.go +++ b/tests/integration/pull_create_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 integration diff --git a/tests/integration/pull_merge_test.go b/tests/integration/pull_merge_test.go index bec85e8a8d0f..e72d00ffb360 100644 --- a/tests/integration/pull_merge_test.go +++ b/tests/integration/pull_merge_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 integration diff --git a/tests/integration/pull_review_test.go b/tests/integration/pull_review_test.go index d713c0f8589b..68d80a102157 100644 --- a/tests/integration/pull_review_test.go +++ b/tests/integration/pull_review_test.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 + package integration import ( diff --git a/tests/integration/pull_status_test.go b/tests/integration/pull_status_test.go index 381cc73cd19b..bca8ec848b81 100644 --- a/tests/integration/pull_status_test.go +++ b/tests/integration/pull_status_test.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 + package integration import ( diff --git a/tests/integration/pull_update_test.go b/tests/integration/pull_update_test.go index 1bfe5c7050dd..1e20a63e6628 100644 --- a/tests/integration/pull_update_test.go +++ b/tests/integration/pull_update_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 integration diff --git a/tests/integration/release_test.go b/tests/integration/release_test.go index 2a52a5cde21c..b4f7560fa33b 100644 --- a/tests/integration/release_test.go +++ b/tests/integration/release_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 integration diff --git a/tests/integration/rename_branch_test.go b/tests/integration/rename_branch_test.go index 9ea69702afab..d8434c28bb13 100644 --- a/tests/integration/rename_branch_test.go +++ b/tests/integration/rename_branch_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 integration diff --git a/tests/integration/repo_activity_test.go b/tests/integration/repo_activity_test.go index ea8845ac3941..c8d0c46d6455 100644 --- a/tests/integration/repo_activity_test.go +++ b/tests/integration/repo_activity_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 integration diff --git a/tests/integration/repo_branch_test.go b/tests/integration/repo_branch_test.go index 96ffa5a46e6c..c56aa43c514b 100644 --- a/tests/integration/repo_branch_test.go +++ b/tests/integration/repo_branch_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 integration diff --git a/tests/integration/repo_commits_search_test.go b/tests/integration/repo_commits_search_test.go index 83f30758a419..1c27b6db9d60 100644 --- a/tests/integration/repo_commits_search_test.go +++ b/tests/integration/repo_commits_search_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 integration diff --git a/tests/integration/repo_commits_test.go b/tests/integration/repo_commits_test.go index c9e77535962b..438e1c2cc4bb 100644 --- a/tests/integration/repo_commits_test.go +++ b/tests/integration/repo_commits_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 integration diff --git a/tests/integration/repo_fork_test.go b/tests/integration/repo_fork_test.go index 4ab3577b5493..26c81f5beec8 100644 --- a/tests/integration/repo_fork_test.go +++ b/tests/integration/repo_fork_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 integration diff --git a/tests/integration/repo_generate_test.go b/tests/integration/repo_generate_test.go index 61a632721e8e..4654fd70faa3 100644 --- a/tests/integration/repo_generate_test.go +++ b/tests/integration/repo_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 integration diff --git a/tests/integration/repo_migrate_test.go b/tests/integration/repo_migrate_test.go index c69a2642cbe3..91e2961d6d45 100644 --- a/tests/integration/repo_migrate_test.go +++ b/tests/integration/repo_migrate_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 integration diff --git a/tests/integration/repo_search_test.go b/tests/integration/repo_search_test.go index b20943c22ac6..34328100fd99 100644 --- a/tests/integration/repo_search_test.go +++ b/tests/integration/repo_search_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 integration diff --git a/tests/integration/repo_tag_test.go b/tests/integration/repo_tag_test.go index e20c72591556..5ea9392a99d7 100644 --- a/tests/integration/repo_tag_test.go +++ b/tests/integration/repo_tag_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 integration diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 8e494a9af411..3692b11ecabe 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/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 integration diff --git a/tests/integration/repo_topic_test.go b/tests/integration/repo_topic_test.go index 5ff0c8273a4c..58fee8418f1e 100644 --- a/tests/integration/repo_topic_test.go +++ b/tests/integration/repo_topic_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 integration diff --git a/tests/integration/repo_watch_test.go b/tests/integration/repo_watch_test.go index 152600bf2995..c47080298ed4 100644 --- a/tests/integration/repo_watch_test.go +++ b/tests/integration/repo_watch_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 integration diff --git a/tests/integration/repofiles_delete_test.go b/tests/integration/repofiles_delete_test.go index f594efdeeb58..6698b280bdb5 100644 --- a/tests/integration/repofiles_delete_test.go +++ b/tests/integration/repofiles_delete_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 integration diff --git a/tests/integration/repofiles_update_test.go b/tests/integration/repofiles_update_test.go index c62c49eeebb3..47b61c1eeb9f 100644 --- a/tests/integration/repofiles_update_test.go +++ b/tests/integration/repofiles_update_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 integration diff --git a/tests/integration/setting_test.go b/tests/integration/setting_test.go index 6273545c2362..71b28a625878 100644 --- a/tests/integration/setting_test.go +++ b/tests/integration/setting_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 integration diff --git a/tests/integration/signin_test.go b/tests/integration/signin_test.go index 7dc078e27441..9ae45d32424f 100644 --- a/tests/integration/signin_test.go +++ b/tests/integration/signin_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 integration diff --git a/tests/integration/signout_test.go b/tests/integration/signout_test.go index 1f1346a5c3c2..0416930c6724 100644 --- a/tests/integration/signout_test.go +++ b/tests/integration/signout_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 integration diff --git a/tests/integration/signup_test.go b/tests/integration/signup_test.go index 1c598fd0d125..f983f98ad8bc 100644 --- a/tests/integration/signup_test.go +++ b/tests/integration/signup_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 integration diff --git a/tests/integration/ssh_key_test.go b/tests/integration/ssh_key_test.go index fd98af512516..89a27743032c 100644 --- a/tests/integration/ssh_key_test.go +++ b/tests/integration/ssh_key_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 integration diff --git a/tests/integration/timetracking_test.go b/tests/integration/timetracking_test.go index 54b81ff3bc0c..52081615a01c 100644 --- a/tests/integration/timetracking_test.go +++ b/tests/integration/timetracking_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 integration diff --git a/tests/integration/user_avatar_test.go b/tests/integration/user_avatar_test.go index 35be840c29c8..08ecb8b74964 100644 --- a/tests/integration/user_avatar_test.go +++ b/tests/integration/user_avatar_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 integration diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 017700ad4023..eeaa6d6e00ae 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_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 integration diff --git a/tests/integration/version_test.go b/tests/integration/version_test.go index 83be62d3f468..a6ae649b400c 100644 --- a/tests/integration/version_test.go +++ b/tests/integration/version_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 integration diff --git a/tests/integration/view_test.go b/tests/integration/view_test.go index f55afb038c98..f4344468013f 100644 --- a/tests/integration/view_test.go +++ b/tests/integration/view_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 integration diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go index bb3447c809af..226c25615fab 100644 --- a/tests/integration/webfinger_test.go +++ b/tests/integration/webfinger_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 integration diff --git a/tests/integration/xss_test.go b/tests/integration/xss_test.go index 53b23072ad64..e575ed3990cc 100644 --- a/tests/integration/xss_test.go +++ b/tests/integration/xss_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 integration diff --git a/tests/test_utils.go b/tests/test_utils.go index 06625300025c..b4bd4a011e7c 100644 --- a/tests/test_utils.go +++ b/tests/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 tests diff --git a/tests/testlogger.go b/tests/testlogger.go index b65573a771c4..a7cc27a926da 100644 --- a/tests/testlogger.go +++ b/tests/testlogger.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 tests diff --git a/tools/fuzz.go b/tools/fuzz.go index 8098868d5e24..449ba6706721 100644 --- a/tools/fuzz.go +++ b/tools/fuzz.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 gofuzz