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 dbe418c35..69363c415 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 d379745c6..d2e724a7f 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 b6c4171ed..9cc47442b 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 1076e3a0d..c9fc2a27b 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 3db90cad7..c66181d35 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 ab81dd893..ecd5d5047 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 4ad6649b2..35c23aaf9 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 87c773ed8..ec8fc82a7 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 dfe70efda..c6f74ed85 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 80b5d4853..a47d9ca10 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 9040def82..91276f221 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 2180b24be..65f53aaf4 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 162c4171b..816659023 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 f20a93632..493519e13 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 6d4d99a25..b9ed9f162 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 073c57497..901d0abd1 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 d05a0a98d..ceb6e3fba 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 6569fb6e3..672a8cdc9 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 5f41ab69a..2e78877af 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 b71ee6dfe..118781895 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 26228256f..874df06f9 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 35c77a815..f72ee1639 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 83fcd9391..228b79f7f 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 92c7e82a9..fe1f072a6 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 684aca64e..74dc1cc68 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 35fcb302f..af6613f15 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 9cce0ef03..9aacdf7bb 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 8fbfd1093..cdfe50907 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 761edf654..d49675ce8 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 49a13adeb..2546fca21 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 b6af5b96e..0b8ebe7c8 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 7051591ad..aae366c0c 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 2256cc61a..23932f821 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 06561f348..346c918b1 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 1b9f7e420..49a033561 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 d8e550b32..90e4a0276 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 ba88cc59c..996537be3 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 aac11517a..70d35cd40 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 ccda03fa9..b502c15ce 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 66ff5c54e..210e0aae0 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 686a3ddff..b31a4a8c6 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 0e550f05e..070e9857d 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 bbb607326..80c117dc9 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 86aa8689e..0979434f7 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 b79eb0d08..29312bd48 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 0a87f4760..a8740f53c 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 10b3a7671..9aa4b8762 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 d87189100..36b63b266 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 4c8aa7e81..9018276c3 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 ea785a3ee..138f4d8fe 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 6e76be6c6..3370103a5 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 a8a240f79..34715ab6d 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 4fa0f1039..9e661b999 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 3ddeb0498..1d486082f 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 30f5ecc94..ecd9041e6 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 e7be19073..eb4027b3a 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 d5b06f83f..1cdd748e3 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 1ea510c45..5ceeee9aa 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 210c4b835..5b5ef4fab 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 2cee45d98..6a0f9c614 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 4e9d04f57..cb5eb7c85 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 9f53e335f..82a408ece 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 811f563c8..4d6ae8103 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 ce3b0248c..e138182d6 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 4b08d0dfe..092839611 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 65bae0f39..af73637c4 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 601e5c32e..cc8439211 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 788d58dba..ca0334cc0 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 2462310ed..b3eecb2c9 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 7a769fd84..f00c3f3e9 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 adffedd0b..afd79ae6d 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 6931df9e8..d6c16eb46 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 5d52e963b..3205d8816 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 2ff106628..8e5a003d1 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 7a4df6b9a..80d0e9baa 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 b5e4712bd..b60e6a903 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 f8be5398a..bade2fecf 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 67e96ee19..31216cca8 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 9902b80b7..763174f08 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 b27ff1340..8a1e66495 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 736d4c340..179d31536 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 1575b6cba..d5b2ceafd 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 29344376c..8ba900bf8 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 dec264cea..7ccb782fa 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 ace5445fc..29be2ea34 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 0e98d8f64..650763271 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 1a59a8b5c..76c7c119f 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 5a7878c74..d19732cf8 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 8c81469eb..fb95e94c9 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 f00e7834e..e7518a50d 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 039a68104..b17e68c87 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 41949eb6f..07ee6ca58 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 c2ba9614a..fa1ac08a1 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 85cba5c4e..5860cb4a0 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 58a976ad5..46be74e91 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 cf777b9d3..5fce0a601 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 363a8c867..d4c113963 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 cbd2feed2..fc8c78d83 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 5d03a6e9c..b0ea8b53e 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 54f6d945c..b9ee360b1 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 4c497fdfd..fec2ea3c3 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 b774dce4d..ce4850291 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 a05d1a789..51be33a8b 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 1127987e5..b0557bc5a 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 747539f30..bcda47d97 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 fdb8eee44..a1117fc7a 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 704a48ed1..f5273cb6f 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 0daacee70..6d801d022 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 4bbd12bde..ec63447f6 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 f4c4bc8f6..8223f2358 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 50b983fa8..abf880ee8 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 0857341e4..8a28db816 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 a1db773cd..07ed1052a 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 cc657a0fb..2d2ad04c5 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 328f6f0f0..87246ed14 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 754c5a4e6..038a4f668 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 df6f5ae7e..411fbbe53 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 7b81b1549..c82967301 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 87e07d7a5..a86e84c05 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 c5a8cc245..3d765ea22 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 41e6ac470..5ef9cde60 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 4640a77b2..1d32b1136 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 352eed006..164c33e28 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 19480fa1e..25ecd4b05 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 4286bdd7e..7f18569d4 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 9483814a1..0aaa870b4 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 e42b8605f..2b55bc212 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 f12da0177..6a647474d 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 f5cfa65b8..cc06b184d 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 1218d871d..7d52f1bcc 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 a02280d8a..bd3982436 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 3ea0b4ff5..7af30b201 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 69d6657d4..488a17609 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 1fa79f494..b480cc683 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 d9dff4cb4..35a0c1f0e 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 c38a405e0..954a20ffe 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 608b5fd14..1376ffcad 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 39a27abd3..a366a92fa 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 2c8728e71..6764a9e62 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 c1a68c96e..4a537752a 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 7dd84ed68..0daace6c9 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 cb9d7e712..1efc0ea68 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 7aaf9f7f5..4f44487f5 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 4c6601a0a..a965cf734 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 d6d88db89..6d96c398d 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 dc7058d64..e5583ff00 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 077e0eeb6..239e328d4 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 89f9e1c99..93e05f33f 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 9d1778f73..7c2ce407e 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 f04a2b2b3..5db565590 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 993a1ba8b..9105dd4d3 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 6110ba77f..432e848e9 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 d88f9d4f5..8ce8eecc4 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 5cb63795d..381881ff6 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 835a66761..ddd0e2d04 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 5cf7d4c3d..0b50763fd 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 39ad14c65..cc4c13f9e 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 d1d985b74..8a8fdca33 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 a5e33f1cf..7745bc513 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 e1da0f32b..6d2597545 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 ba8b242d9..b3174c7c8 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 358400156..cc4eebfe7 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 2a79640b0..b1b556812 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 bc7729673..48cd905e4 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 5466b7622..dcf99c96a 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 ee227b797..5145e19e8 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 0f078dd70..164f826b4 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 290d87214..c1c789150 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 0f35a078e..7cbf4602b 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 dafc0df2f..a9bcd20f6 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 a48c837e8..e718355f8 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 af58b4b21..bd11790b9 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 350e537a9..79b419e9d 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 32659006e..e6376af62 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 4b21ef20f..937068292 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 aa08ac36b..c9a69a6df 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 b8c083f8d..9b5fefb1d 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 c0552aaab..908010859 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 6ce89f0d4..5b5906517 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 542e45c13..fe3804aee 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 48a0c4ea7..1b60eefb4 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 372ca9e65..2abd260be 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 4438a9ed5..8a1a4426a 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 8e9ebb7d9..cab9a6306 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 21554f6ef..170a30631 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 49d9d3ae7..9358e4cef 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 e9114adee..e4e16a054 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 0ab3682f6..c76554cf5 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 07aeedcd6..df261c992 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 af7750866..3e06309a8 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 5cc0d5282..1ffbd35dd 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 06ff1b16e..28132c377 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 2bfd2536b..d2ee9a6aa 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 813a753e0..81afa1331 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 f1f1d7cb0..5b15c3216 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 f8e84cf75..3478ffe44 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 36ab1bd9c..dc9adb60b 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 688dd06d4..95adcee98 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 1fbf0c4f2..da935f651 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 6b6d91777..73fddd103 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 6a102e0df..bc768f3f0 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 227daffc4..9b893e299 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 998ca004d..60bfe6a57 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 cc35ce5f3..f4e61215e 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 19864658d..ac656b2d4 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 b0edae93b..67ac9411f 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 1ecfdce73..ec56161af 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 0fc86378d..311690c03 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 d74f888e9..5540dfd62 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 51dfb5167..ca9ec3aa3 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 5849b8256..b248eb4c0 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 71e8e3207..44d44a26c 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 28bc5f604..cf228242b 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 ca3765be7..391810c7c 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 14d954b4b..a734d9fbf 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 8d93460f7..1708a57a7 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 1d69c47b9..e1c392459 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 297db37a0..3d1c82f09 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 9453ecdd5..5a87d9911 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 b114ddf50..0cecba7be 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 6eb6b1ebb..371b1a3fd 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 c101c6e4c..a2bfdb59a 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 69daa94f9..725b8fa30 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 37aeeaeb6..3de9eaaf7 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 7dd1cc5d6..80796e6db 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 3a2206b6c..7c7c01ad4 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 eee66c0a0..ad1a8c66a 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 0b8b91268..f5a0bc575 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 b12da3c67..c96e79f8a 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 7afd32537..5db8b0a43 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 1518b8dd2..d9c51145c 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 40ede7174..7bb8ab700 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 f0054b752..e093b4f9d 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 99e6ddf68..d5ba48956 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 9efda9364..9490c1778 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 ec49a2fb9..7f7c414de 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 1428edd3c..4146d8338 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 8976db675..8b4498be8 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 859f7520e..7a091b9b9 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 630eb94f1..7c5dc5fbe 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 698c1c942..2cf4954a1 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 12f0876d6..b9d8225af 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 e6c9e629f..7ea80a659 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 60be2b12b..149ae0f6a 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 5bdf180ef..b9b7e7fbd 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 cf661caa3..ef3c14d59 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 bfaa824fa..972f771fd 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 8044dd403..22f55f48d 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 0a1424850..a6791b16e 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 d42dea96a..a784832e1 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 bdb18ffa6..1eb726334 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 8098a7621..fb6b3b474 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 e62ab909a..a30a8859f 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 f5fe332d9..5b81bb58b 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 cb0f927a2..adb28cae5 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 0c94fd4f9..35769342e 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 6518c0317..76519b945 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 c8c9c39c6..3b7ecb8f9 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 9a139764c..766d3a420 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 e66871f5e..f1b9b974c 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 4a343159e..bd2484e49 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 c088af906..ea3e750d7 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 c3086cd8e..e72a9e53a 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 4e061316d..5568a18fe 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 d589734e3..366f19788 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 27ece9891..9bb6ed7f8 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 c23bf9176..f6b142eb4 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 fc948bb1f..17163ee2c 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 7ec3dae37..e2bb3208c 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 f621d0d16..1b075be7a 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 32282089a..c584ef851 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 b227e557a..75ef8e1cd 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 48039f8dc..4cc98f9ef 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 195b419bc..48f8b6216 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 4b8ed2e03..382cb6214 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 3f53ff6a1..310ac85f4 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 c3f60d1db..afd86bac4 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 265b6f2f3..71e45cab0 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 8109a8a26..817a0c13a 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 b04115845..32e3899a3 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 9c0f0967c..96cb97c32 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 a669fc31f..1853729ae 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 461ac653d..2d2c3d1a5 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 e3ac2654f..2d5d158a0 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 8bf960feb..dd50e353e 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 b573a54bb..17669a012 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 8486b1131..ae7fe10bf 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 a7165cbf7..9e390a971 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 06ff13b52..742397bf3 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 b73a56607..ed7f4185a 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 da2e9ae76..ef9d57a79 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 0e09ee530..ed792de79 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 53ed7e4e8..6adcf890a 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 70ee36354..e39f4af9e 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 6a2eda77b..35e0c9f2f 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 de0576b8d..79676f3fa 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 78903cb59..26ec135a0 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 8151866fa..e7577c8da 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 9cca445d3..d6c577083 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 b2530d100..64c794a2d 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 f93ae4c33..91208f066 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 40f8b05b8..1a11ef096 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 e2f06bbfb..be3100e02 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 b59b35660..974e77fb8 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 20c430594..d43fb0310 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 0f1708de8..e6871cacf 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 de9eb4b4b..227de4984 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 5187f5e72..a00d29cd2 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 7b1b158f9..2ed56104c 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 e6fa53d4b..e619b805a 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 e14851596..43e5b636c 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 bde582577..388cb971e 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 abba9e8ec..bbb40251f 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 a5cd1c591..4d5e77070 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 d22f4e6b8..c8aa2378c 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 bbceb933b..31158509b 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 17744d53a..ceb079f36 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 d635820f8..3215d7491 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 3aafb1848..558c0d9ad 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 530ddf0e0..c83deb255 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 cb0934042..aec48845b 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 34dbcc1aa..f37b773ef 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 8848a8982..2ff5f4c7f 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 bff88cbef..536346a97 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 7dc468108..b4da88ee0 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 28ce171b5..314431050 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 ea7c3ed32..10d9f3509 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 caa24b26b..d489328c0 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 fe98e07a4..2d2248fcb 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 0af13a1b9..308f3a502 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 8ba7fcaf1..3d08ec2f5 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 809a1cfa5..79e46132f 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 92c9ad84b..9feb5343b 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 6443d58fb..fe568b64e 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 dd810feef..9902b7e4a 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 880bcb8af..166772ad7 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 c021a24ab..57586c5c3 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 275512c4d..b7428150b 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 aa2cbba88..0c5775c2b 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 3694d68d3..aeca5448e 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 df2666735..bad801009 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 ef60eb726..451268938 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 7d5dccc9b..f92dfed88 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 d7943fb0a..8bc022141 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 6a867f505..9cebca185 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 2e1b0631e..ec9726d88 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 b06f879ef..ff050386b 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 82cb8b3ce..b0dffe603 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 31cce268e..afe504e9c 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 8aa7fbc07..13fc238d4 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 0cd32c382..6cf7faaad 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 416e4fad9..a2a2c042c 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 97c8f621c..b373a40bc 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 b56c80522..1c9383fe8 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 792829563..62376192a 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 3b1fabf1c..446084c81 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 23b417119..54e8f0846 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 376552cb2..7ccf8c8ef 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 36cf948e6..b1627b5e6 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 6bb982b28..ef7b834ad 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 364374f71..99638916b 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 0fba6e259..2f821e3a4 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 7a5d17a75..d514e401b 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 aed3ea23c..1da17631e 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 aa9b24b57..f6d71845d 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 4504a2e9f..17f6c5961 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 e0596ec28..cd6e1fe2e 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 3ac4fa926..e6b50ecff 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 c8d58a0eb..d324c6d0d 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 4ad1ae95d..7668ca748 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 80f4d00e3..7a024f1c6 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 e47e689af..06e828e8f 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 39a900045..ab0bff596 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 9d3ed64a6..0dfbda051 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 e4a5a5384..dfd5e244b 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 357574a70..7ffed2d8a 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 cea04a095..5c4837d98 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 fcb71a96e..36ad74531 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 635068f1d..64d1f9d47 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 9f6284af0..6d0fd185a 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 fc1071380..1b7f253d5 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 915ef15f9..735688a73 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 6ee362502..a2a8a45d8 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 7344e114a..55d3f78e0 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 dc707b971..bd828a1e9 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 eb0abb74d..837a9db43 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 3b709a3e8..58c4299d1 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 dfa7f7b75..c482e296b 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 8428fca72..d8468f0cb 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 da48d4731..3269197d6 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 2e97b3a5e..816cbeb94 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 5dee241dc..0d655e333 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 f33fb3351..4fde0fc7c 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 16ab5af09..d7e04eafa 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 1c465bf76..1a2b1e165 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 2510f0e6b..ca4f60a2f 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 84358ce0d..11ecaff34 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 428f370a0..8fbf79a7a 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 d7c2f529d..21fba227a 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 84b9f5ac2..9ec01bc04 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 c558259e4..04d92c415 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 cbf46dd28..d240e9cbe 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 b54c61c42..eafbab0fb 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 9e08d8136..d02bf91dd 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 509020565..7ae88058d 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 9f0fa3bad..0d27cc041 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 5c4cecdca..f8f5dd041 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 f6d704ca6..bb9be54b9 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 297ffd594..63b26b5d0 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 fa876ee56..55fde8b83 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 5087e3009..2b3c5be29 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 f28220c2a..92a011a45 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 90114667e..8255704d5 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 a92e4bb6e..da6235988 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 a3dac8383..f58b7de6e 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 67ba3382d..9667c5624 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 abfa73abb..6d9dd9ec6 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 926ed07e9..bfbceb7e2 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 617ec1279..081221d1d 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 c21c1e7a7..e20d03e2c 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 c7459b365..b3d3d795f 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 1b53e17d2..7221a6c8e 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 db41c85a3..05f50cfe4 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 8187addb8..8a8728168 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 39c89a7c7..3aef280ff 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 13b605570..3b1b97c6d 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 9ca367f55..0d5b8579e 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 640914592..7816b0262 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 ecc25ee32..00f313ca7 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 18a2d5d5f..8b8c6d625 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 c8886eaa3..b378666a2 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 863173627..629986f74 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 684d0e63a..2c04cb442 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 77034b65d..94c5ab529 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 a8358e307..da66b1613 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 067ab4122..6f02ab45f 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 7904b04e9..9720071a9 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 bc18c5181..737853767 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 a56c76aed..94e290644 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 3276fa3ff..e598abe22 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 768bcca66..01eb9b57a 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 22119ee5e..dc6145b41 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 14105b89d..ad083ed1e 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 d25fc05f3..3ff5ba252 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 b83bd6183..c4743dbdb 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 46f889746..17ff75c08 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 e39acd766..9fba05382 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 ff815e729..631da49f2 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 68c312ac9..1b149b19f 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 2e6c25ae4..87d930461 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 c8673debe..b2f19196c 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 0fc28ff05..715d0e386 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 f52376674..ce25139b5 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 5ff840cb8..948b0b106 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 b6d372f04..70394edb2 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 b9acaa111..7e523a165 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 3fe4ee665..306b9ee9d 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 496717c57..f70f3effc 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 a02ebdb8c..7efecc26a 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 ad2f7cf74..fc408d525 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 6c43c961c..6b3b7bea9 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 b2416a3e0..0d76aacd5 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 f8e8a787e..194670504 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 d20b72d19..6f0eae55e 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 af8d6439a..9d8903c05 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 a5b19d4f0..3d2ea3aee 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 fa4a021a4..622e47ccf 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 41de499de..a17483f9a 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 d48ac9305..10255735b 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 5a772a8ce..d0d612d25 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 1a71acb0b..7e3ae388f 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 1cdfb5978..2ee4da0d6 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 9c9dc09bb..66702e2a1 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 92d9e9738..2a37ff31d 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 39ef2da6a..8df569a3c 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 1daf806c4..5defc67fd 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 8c4838ebd..2bdafb61b 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 9bcef69de..ed5c9990d 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 62068d53b..b5f978c4d 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 fe6aba905..299bdc43e 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 defe49861..888254c9d 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 7fa2b0926..15399ca38 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 d192b9cdb..ec5fa5984 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 beefde232..78ebf8e82 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 baec2cebc..74e7a06d0 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 0f14d2854..f608387bf 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 976a6ddc7..adcca923d 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 2784e49d3..aafd3c431 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 68cd7a875..3a8d119bd 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 28546f603..5a7f45093 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 8926fc6d7..249ce0233 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 39e93d716..cca1482b1 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 414d7631b..a48e89860 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 08565d2f3..c277d59c4 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 e39b6f46d..ec60a8610 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 71fb9d275..1beeb64cd 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 2de77de00..9ee926b05 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 a2acc5443..5ef4ed379 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 270f05e1b..cb1803a23 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 a8d709036..09a98bd0e 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 cc7e2a791..63926d5f1 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 44635fbb3..23bcc73e2 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 88440633c..ecfc179a5 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 026f68f64..dddce202d 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 46cdd5293..e920177f8 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 2faa5acf3..91e864ad2 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 df0947ec6..994e58ac3 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 87de898e0..81f4b464e 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 d98b0a0ce..2e7d5bb60 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 7bb71f08c..8e056ff2e 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 f418f77e4..1c8f7d55b 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 9c26b011b..2e2efd00f 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 9dab3b095..c5b0c2c54 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 7dd2821aa..b0c253100 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 cc270affa..c88ffd5aa 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 bd64e1c5b..221c27d0e 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 619826ff2..a87e84646 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 6bbed42ea..5eeeedc4e 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 a1210d2f0..51152142a 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 6dd13c039..fc56799b4 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 b264a569f..ce2eb1446 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 7ff0ef112..37b6ad86d 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 e5f303d26..d29e393ab 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 a7232a465..abe767f4a 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 b354ce6a4..61f29120a 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 39eddd58d..9dfc25333 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 b3bfebe0c..812f0e34b 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 4b4c74525..15779983f 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 6654763e5..150223603 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 1a10c4763..05c0f8621 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 b9d130e2a..f49997a78 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 2231677d4..dad02b171 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 323fdbd2c..911a49949 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 e6d882eb5..7cc29debb 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 0bd003da6..735613504 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 47368bb28..0d632b67c 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 4f48d746b..f9c4ab6a9 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 89260b865..39df29a86 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 ce0f9a511..65a9d74b7 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 617b472f0..3effd88f1 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 fd2263c75..8cb5d09eb 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 9e7977b5d..24f50fa47 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 1a83c49e9..57cf2fae5 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 112964dbe..40eb5c0d3 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 a72c8b47e..1fa99953a 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 78eb62d42..107854e01 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 6015a7371..59842e402 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 0bba0e502..8c4ef88eb 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 7c11b2a89..ff3466cb3 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 c33cf5c11..81cd1ac24 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 ec672abad..4d780f3f0 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 84f16b9af..4c8e57bf7 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 b2414f467..1dcfc9b64 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 55f782f8f..49a1b148f 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 9713cda48..900f1dd81 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 ca9a4c39c..4291d737a 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 e8a543fea..66c5018ee 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 a0a672d3a..21d410cfc 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 5fc95dab7..95c6d03ab 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 09b84afa6..3c75f588f 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 7ed28a9c1..5eb38ad06 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 093994856..6b90539fd 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 89d912e46..c3ab4187b 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 52fbcf547..cdce60831 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 e0ab15dfd..d1ec5980c 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 1112da43f..20d76162c 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 fe0c35096..c5497befe 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 5a8e13c81..c627597fa 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 b3e9699a0..e4d85c4a1 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 474997acd..77e3d4e8e 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 cefb3817b..390dfb43a 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 602b2e523..bb560ac6a 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 8afd9f44f..3ddca92fb 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 5d14cef55..2025edc58 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 d9f895739..ea14a9b2c 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 f5e5667c0..498ed9c8d 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 b1bfd50b2..41fca01d5 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 9f5e33646..e79369e58 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 6f0e066f5..73df51390 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 5a2704545..ad50078d3 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 8ae9168ea..aa987de44 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 166e38bd2..550e536cb 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 89a86a7f3..3d4ef8599 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 1e14d3de6..b73013ea1 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 def252896..2526cd121 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 281a1bb13..d5d2f323a 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 a80e062f0..4c4272880 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 812d67399..7ed2a8290 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 44e878fd4..97d08aa8a 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 091e1a5c1..6df26716b 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 326fe8036..f29634e05 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 feb0dd31b..75539c0d0 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 832b12213..fea75b481 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 4bee8cd27..94277b7c1 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 9567affd0..8864f54d1 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 2a2b51e42..aa206409d 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 89bb98162..511332eb5 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 39f3f1116..63374384f 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 0d94494f1..d88fcd1a8 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 ae2acc3a5..f56740682 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 52d25c9c7..2dca2d0d3 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 061adc108..14710de61 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 bb9d3bf8c..669f1b15d 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 83e23545d..c740a4e13 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 341698ab3..20db5691e 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 d7bca3b94..e469d2cab 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 4bc359689..1e331fac0 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 3c1f6f5ff..23607c43a 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 fb8c22dfd..1d6fb0018 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 1a43d0dd4..10ef3d83f 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 de7124850..0f865c52a 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 ebfea8e70..dc10d451b 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 c9aa5233e..97e8ee472 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 5aca10f75..392a95a4e 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 bf83a10ed..de69eaa2c 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 cb3642860..5468318ca 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 18d62838d..f5919d82d 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 091573787..e3bfe496d 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 c50f89122..46f93ce13 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 2b51d5972..ec8f1cce6 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 82c76bad2..90e609fc8 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 1f4d693a2..155cb3cb7 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 dee4fc226..fe3b6598d 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 a8dd66df0..63539cb3a 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 fe6d1f1e5..c2297d897 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 ba216ce3e..4da375c32 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 34e7178be..267671d8f 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 4a8dcfdf3..226ef5df7 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 075de6d25..f6e32401e 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 fb5b63def..8b94c6920 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 cecd3960d..23fddb014 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 c1d4bd166..467721815 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 18cce3428..ee0505f29 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 061da8ca5..49390f7c0 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 85ba7db23..ad583a747 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 93142034e..09bb2c8b3 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 2f459148a..cd8d26818 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 c416eea13..3585313f6 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 8ba3ae4fd..4ba40d20a 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 13be2004c..cff9724f0 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 d9c50be6f..d3a3dc8c8 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 901a0aa24..6882874d2 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 710f0de9f..2c6df8b9c 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 8fe9c404c..ef59ead90 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 56af2c640..a0216d14a 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 8a3707aa0..7f44735f9 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 5397f24cb..698b6c707 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 5640011f4..7f0892f6f 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 44ba0a36b..184a2bc9d 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 9f0b86537..026c73a28 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 a3fc7e0c4..14dcf14d8 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 dc2957656..ca19d3827 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 95c371884..b1d0df647 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 58a738e28..fe788946e 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 90259fd74..8343e3484 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 14fec3f9c..b6c42a802 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 13a7be778..35a705fea 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 7b3a5101f..af8c0592f 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 075b59ad0..492438be3 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 6b00a4fdc..8e92c30e5 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 7575b1165..b1b55c88a 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 63f7254de..5b50bc82a 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 25188d07e..4803be581 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 a652e938f..cdf076505 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 554288328..99eb2b540 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 daeb4b591..74c76b40a 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 503e774e7..9674eca27 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 baeb11490..a1d28f40e 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 0234c77c0..d616d9574 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 af448b011..9edc201fe 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 397434e12..54e424bb8 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 d11c58e00..8a68a4574 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 d766a8cac..ac53d661b 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 afd38ca25..776d7ce3e 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 002e2525e..d6e91f25a 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 494a16130..668ed6799 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 8585d824f..8aa06545d 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 c6dec2898..2bc75e7cf 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 5d3aace52..1fb631002 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 6a00473bb..589349a72 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 8ca170cd1..2a3914819 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 ba81bfc6d..5fea5c0ae 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 e72016493..e0e5e73fa 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 dc4a5becb..16ea6bbd8 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 15f282c6e..3a02484bc 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 16501efb4..28f35d17a 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 a2620cba6..d818d86a3 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 c5c00f544..db2944fc5 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 b59db8f49..b5b17f23b 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 5ab38cd85..c984ad6e2 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 3fa5c8da3..a203d5ce6 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 ee61f6117..3afaa334d 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 653f0a6f0..e05f2510c 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 3482f81e9..d0ddef64e 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 e5f1660b8..2337e69c6 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 f5944dd29..856b8cef5 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 19edcf4c6..31d9f3d73 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 bb010b588..f1afc5d0a 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 3770004d6..92d3d107a 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 3644d00f3..84b6ea407 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 2b2992c32..194dd12f7 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 d999ccc02..a399118cf 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 aff67a3b2..cda755886 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 c512c7348..30eee1366 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 480c5e44d..fa601e653 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 5cbb5ffc9..185317e7a 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 b41cfab7e..637685183 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 611bef867..da820ed88 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 a439dabae..628faf509 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 9a2d481b6..718db700a 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 d6342c928..baedfe598 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 c153e5d3b..0e0fc1cd0 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 2cfbe4b2f..18d427acd 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 543296278..f6bf9b0b9 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 b9d975a1d..6b5b207ff 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 21f019fb5..c7b4c101e 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 ba1dbd38f..ca6ccc1b6 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 10c1d67b9..212ddf437 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 0bb589e23..a2620d2c8 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 07ae51b8d..a2f58e224 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 1d0d1059e..406fe6c8a 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 30a460a94..e42d35cd4 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 c63490571..9b6758957 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 8ab2bdf41..a1f8e0ff5 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 95fe2dd1c..4d20cfd48 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 3836c0588..05e472c08 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 189975374..7a9887728 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 a092e07f4..106931031 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 b93976df6..c78184747 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 84cd2974e..65f5f78b1 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 dafdb503b..3219b939f 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 750233d4a..1247a81fe 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 49e54d147..624d2f4d4 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 32790fb54..a1984400d 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 79994e6e5..77675147b 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 3ea1c8617..6ee2639d3 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 a34d54bc0..00bcd5c90 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 dd3c9c977..68c809675 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 fc58633f1..e7506eefa 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 774dcc814..bbcc6ba48 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 9845ade3d..d07ab10db 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 06923dfd2..c353d5b68 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 df255fa87..1de9ffc22 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 ba58236fb..33ba57a09 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 dff1cf0c6..952bddfb2 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 42d22f06a..22827158e 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 d21c86337..d28b536e0 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 97e32b897..ee8e3df62 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 5b0279d1a..55d3c7bc0 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 e8b9ff837..ff0541d04 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 d39b1dcf2..068626c4f 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 f4fe54b8c..1c01e25e2 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 a4a8b6324..f9a1bc520 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 f983fcd11..32379f285 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 0bdf5a198..f8bce3f46 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 c3863a64a..0845642cd 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 3398719cf..f43a83fb6 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 4361262a2..35691eec8 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 aaf61aefc..f810e5c7a 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 88986f06d..a1369301e 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 0eedf4de1..94277a6b8 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 943966ed1..3ae3cf077 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 69f476865..118abe2d4 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 dc72981a9..835551e00 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 a1a3e7f36..ec0d6269b 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 8f6dcb196..a8c7e379f 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 2a3a2116b..b5e13d56a 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 ed27cb1f5..f4302c23b 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 d17f1f7b9..658b98fea 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 9cd8b15c9..41b5459fe 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 d010b05ee..6b2e55f2f 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 2fdd92c81..649497aab 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 b26d516c6..f86d2c54b 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 9535522bb..1eee2465f 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 8ec74bc78..1c3900605 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 15e23a0da..02781afe8 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 888198d4e..efc7337b6 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 155f2866c..39d523421 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 1d373506a..445bd7765 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 fc7c9b496..8764d984a 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 b5cac55b5..c30be4154 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 4da87b48a..e4c3882d4 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 ea47e5d62..54dac12fa 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 1fe54d426..942639a43 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 aebd15621..4466f7ff3 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 d0cba7817..13386a320 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 cc2b9fe07..f1ca23d34 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 95950548e..4a3732600 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 0d3739fd9..829c21757 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 8e23721b8..34e99653d 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 5964ed8f8..3c8a736b3 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 47f77738c..cd18a807d 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 4303ecf4c..73f908dfa 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 33f68c8e8..819cdb521 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 0045d7932..56e39c392 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 519abf663..8ccb08179 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 e03e6f74a..490c3fa71 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 61af50b81..e385020c6 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 c8758bf6b..d7d28f28f 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 4b40d81ab..d4496cff0 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 1c4f5b4a1..ac4b3c8c4 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 99a5fd340..8c03f87d9 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 f804447f2..e93797de2 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 cc917039d..ba5883522 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 d07f5e609..0e75e2adf 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 a2328a228..5658839c6 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 2140486a3..f84680205 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 597593eee..cf42c9cce 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 282fbb059..506f86194 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 5095b8546..7af34a6cb 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 612f78c76..b9f5769be 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 0eeb2d70a..f47776690 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 ae00c3905..80b19ba35 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 25b0f7b7a..6746c40d1 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 e57187a67..32f26bffa 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 3d4962025..e844f801c 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 3f5ebec90..6e90847e0 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 84a02bfbb..50b438219 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 fa289986c..1e5c47075 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 fbb741d1c..bb2c47f18 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 bd8449bab..10d17ff8d 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 f86512288..7f714d723 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 d50206525..84817ef1e 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 245ff8dab..2221a251b 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 8dc88eb85..0ac25c2b2 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 e4c0f3761..b4e9ade0a 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 7854ac84d..8a5075357 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 fb37236d7..bbefbd380 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 1e9768e61..694996632 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 1ba75dbb6..f9c9cbc5f 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 672edbf46..f7f5e885a 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 103894d1a..3715f031a 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 c7f8ee69f..e19f8f641 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 8045c34c0..ea34df0a3 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 abbff1e43..5a8485e57 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 cd12cd8c1..4acb678cd 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 b3289cb3c..5a31e961f 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 950ee15b9..624558c3f 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 c2a6c4a38..e59f6c7c8 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 b3b07404b..c792ec2dc 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 0c0fcce49..74142aa86 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 dcd80b05a..17f8dd133 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 0447689b7..27ecaa830 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 7759c9605..ebd3672d6 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 b2608aa09..64cda9d04 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 92cf71407..f319f02ef 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 27104e209..da997f645 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 cc13570af..7cb9f84b0 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 f49fbe3ee..38f0eb10d 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 fa8218cf9..1fd545625 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 f3b725de6..34355b8f9 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 ad925c32c..e5b69331d 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 1e92a1b0b..234e72c29 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 dd520cd63..4e7500f0d 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 0946bdd40..ca1df6c76 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 923b3817b..f92cf25e7 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 75622595d..22c2cf6fb 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 2e40c102b..1cacf5f37 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 b5a054c64..a420c130c 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 febe0f75c..c5db3b346 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 1b767b2e7..dca109d6a 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 02957fc4e..8a0c340a6 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 57571861a..ff642aa4f 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 b261bd024..37b4c2ac9 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 5da2291e0..aac5b2178 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 6092a6782..bc530bc14 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 7539952cf..078a80281 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 f7d5a72ed..728bc2f2e 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 99a8856f1..d979ea07f 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 13795f3d7..52e8ff9d0 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 c70d236bd..43652e314 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 d02940566..2f882c2cb 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 dc31b3189..05ce70f38 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 2f7deac88..dbed20ba3 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 88e0c93de..de5f072d2 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 2bacd5dec..c67f79d0f 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 123fa0e65..18f7fa22a 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 159c44ee6..426e36ee5 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 a117a6081..c3e09bb8a 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 a38289c97..63a3ffd19 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 37ce7661f..326d987ba 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 e1d6efa7f..039e934b3 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 373986758..a20253676 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 6ba3bd6a8..17a8fa482 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 77b7a7ef4..29151cb3c 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 4d60879be..ff3c86d3f 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 797576b1e..b98294001 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 feadc18b6..a0e1a77a6 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 960e81353..c47b242cd 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 0ac9c87b1..580157018 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 bb228e020..5bb3fb893 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 3e28191b0..556a4b939 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 a7d6a9df0..256a376cf 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 49236981b..37a5170dd 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 98eb2c847..6ea86eb0d 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 98d3824a8..6981d430a 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 fd38e6785..c3946f38f 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 9400cf695..f9ee478d6 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 5234814cf..dd9cc0095 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 2636fbe28..f9c3907e1 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 01cca8fe6..570d2e92c 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 120ff122d..7ec399255 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 13763db98..1181fa4d5 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 3f8cafcfb..ef00a4505 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 e21ec67e1..529262226 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 fb5e51d0c..98b5919a7 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 6ee9d6968..be057c8c0 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 a17d45656..f4bc84268 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 4d17441d8..83a4b5b7a 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 6c895ce12..42c1ef416 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 16cadefb8..02f672481 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 2b844f4b0..9a2b1e10b 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 44714cd6e..aafbdf779 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 2b555e47e..dc72d0982 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 e8c7773e9..74c3e7dfa 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 9c04d7bfb..634bbb17e 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 892d718ca..fa1b80ee8 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 f3e9bf20b..36fe66570 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 e43ed64fc..4c0c3f0ec 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 df367d10e..125728c4f 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 2c45042fa..14fb75560 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 e5963ebcd..501757bfe 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 f1fc39991..e2c73c8f3 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 dbefa9c23..ec2fa08b6 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 f52989b2e..678953333 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 9720c945a..d616ffe3d 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 e1f1f769e..fe2a2a7bd 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 63f98aa9c..6c35dc86b 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 938524e6d..e8565e5bb 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 8ce0ad484..c611c1427 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 e208c1437..027014270 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 21e5c9a27..a8b62fdde 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 8dfd82a6d..f09d6de2b 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 3efef3bec..6eb7c2acd 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 ba51260eb..bbf470cd7 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 b1561f392..f40d914a7 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 2e1367e4c..c176e1ddf 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 6df5bc151..f1bc582ff 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 7a72bda40..8f02f6525 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 7f14287de..127251006 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 77e3d3193..c98317374 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 628d9cebc..49bd5071f 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 30eabeb37..527072713 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 1e7c77fdb..c5be906b3 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 35f66d9fa..44a84f220 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 2f7ea1837..06a28c4a6 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 61730544b..f0cd366c1 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 10333b204..f437f1368 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 2acf9d84b..5439a86bd 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 64d9b323e..ec85c425d 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 b12771b68..a280663b2 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 f8c92e824..32bdf3bfa 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 ac1d80c86..42026f9b1 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 fe250c645..4878f88ad 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 8b58d6af3..5e4bf5d67 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 672924a63..cd74ee574 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 10120bf85..e85ca7925 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 bb98d468f..c33b79426 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 9ad95bade..c6fb9447b 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 bba2c54ad..6975e0290 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 a166a935a..22ee64f8e 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 79f69f07c..ee00a5428 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 028023d50..431f48390 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 949c45289..9b92398ba 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 2691ab02f..fbedb8e5b 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 c00f62027..c7526714c 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 b1820e73a..318610355 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 b0835c896..8f83abf42 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 84ab235d5..039e95241 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 65fb81653..42d34c806 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 e581ba75f..84d6dd98a 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 880770f07..1e5259fcf 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 87e0594ec..8f8215c71 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 d1bf7239e..f2d3dbdc9 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 6daf3fc96..9372694b8 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 dae32f75a..406f64784 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 8e0322bb9..405726182 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 477d5dd81..491ae5d15 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 5245a35f7..22eeb75c4 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 bdf04a363..244927880 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 91b70dc58..1777d169c 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 8fd0c8f05..5cbbf8313 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 507adadb1..835cee3a3 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 97c7cff4c..dd3c5df82 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 041f0dcfb..9c24b23fa 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 b83d8199b..44c03f999 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 1b927aa3b..ad835ae4d 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 7d6eec151..a47f9b2dc 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 7bd741d0c..2ae4bc73d 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 c43f1e098..8bee890aa 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 304078284..94a9b26aa 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 25fb15e30..c7e05e666 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 e86e0d453..646bf35cc 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 c967d3b74..8e9f3a897 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 c5fd7d60b..5726a8fb1 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 139fa4c91..1cb9a50f6 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 4d7d294a9..a95b9c2e9 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 65072a959..cd7176c23 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 42134fa7a..007790f2a 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 4e4b4000b..1fa711b35 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 f1360f447..a90eb8a76 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 21af03946..53646718e 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 e7edc7a95..b84d1cfea 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 b1c99d851..0a189eceb 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 f9de37210..6fdfb81e0 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 8c5d7d82e..7b0c550ac 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 928dd4974..fcbc44249 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 474b73293..68a2e8720 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 9a4496512..2da79adb3 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 74ec6618a..ae0736e83 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 9475887ec..a76de2797 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 cb397d81c..29cdca8fb 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 4e5545739..be06c4747 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 1f18868d8..c1037cfb2 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 a90be2a68..481ca969b 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 264151028..a80df47ab 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 583d9a6e2..acab3eb58 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 266bbc3c5..a05f77a97 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 8b8587e09..0e67b18a3 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 46d4027d1..1b1c8f7e7 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 0ff1d814a..8f0437be8 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 686b04365..6f8e875c1 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 1d9535360..7372fc998 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 5a9b7054b..7324328ee 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 fd41bdd7c..c262234b6 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 4b10f3dc6..2f6d08b6b 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 8e5b864e2..6a0847bd7 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 2bd0322d0..9ddce97da 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 6cfd99156..6492af82d 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 62201032c..120fbb5bd 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 059273dce..04d6e5583 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 af9041ade..9d16a2360 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 56505b0ca..53e09e8da 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 53fb0066d..fed33395e 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 d3bb33b24..a67d0d849 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 d0406dbf9..19594369b 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 d2eb6ebcd..7b4bfc5c7 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 62ca1d82e..082538c38 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 df7310b09..68892a219 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 0e7f5a55a..f77ee6597 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 075152db5..32f74aa07 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 ffd8b7aa0..256bbb7a5 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 c39d44110..cfb0f5466 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 0bfd7dcb4..51e36c341 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 14953765a..ceb65c1c8 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 63007b847..ab879b272 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 72cb6df7a..21d4f8993 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 6b601c008..9ec14f2ca 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 166ea0b98..cad2c685b 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 1a25716cc..5aaa2a9e6 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 5d5b06b64..a439a2459 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 0749036cb..994c54e85 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 f7b42d674..912f820ed 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 1b83e3271..a7d3b9ce1 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 86681bf9d..117eb0bed 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 2f6f502af..0739653ee 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 7becd9433..38beca5e9 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 23e0c383b..dfde79190 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 f52a5ed3c..39c6a06a4 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 4c2fdbf73..0db0a25fd 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 21afd636c..eb7774afb 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 5715f2585..96c7a271a 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 8a36b0b26..20230250e 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 f0600a192..b722e32ca 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 45c3f6294..00166b7a0 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 e13ec05d0..4a1085ba5 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 2aadd8638..5c622797f 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 ace783ebb..a840cf182 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 56408313e..8d907a47e 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 15d17cdda..ceade1ddd 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 72b40f7cf..fa7a20db8 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 7e150687e..a3904af80 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 370910631..6b4c0bc11 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 8e8a8a270..21e7751f7 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 c21c466cb..596a551e0 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 6fd1eb624..802c8d3e5 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 3fd9088ce..7fbf4cb46 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 1e98c59ba..b4c58623f 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 3b2a8b599..2df5099de 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 10bd9e62c..95db0deba 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 4401a2801..69f323fa9 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 fbdd6c90a..0059535be 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 f627241b2..f64bb83af 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 ca2af4865..810be8f52 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 38ce60bbe..3fe40389b 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 cf6601704..16f3d9dd2 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 1f3bc04e8..864cb8f50 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 2f9c8992a..946a6ec7e 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 55a516a97..b3e98df19 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 ce1a9fe4b..328d7e47c 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 29928bd97..27b9d05a7 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 bddc945a5..4eaf5a255 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 0bf4b94ae..6ffbc74a5 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 80ee1ccf1..4a7d89528 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 294d56a95..fea193e86 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 58aa3b833..86b221e1f 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 606785a4f..2e89a9eef 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 09e21387d..3df5a0be9 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 90c4a2107..e48b1a493 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 ed42b24be..c1d8b902e 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 e83d0437c..c73e51b1a 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 81516894a..c5e96f335 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 4cfa5538c..3a5ae34df 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 a72b04119..6a11e040a 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 a2ebf7df9..ff9b0aea1 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 ee487607c..08eed59a8 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 cca1de76a..b6abd294f 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 ef01fbcc3..da7ab7b98 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 4e13d92d4..e0f0a263f 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 7c1a8930c..fbfc1f229 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 99e5ce9cb..6f075d54b 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 b388c50db..e2e48862f 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 deee8cd02..765501d43 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 fb0c2aaf9..65a6e5000 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 b1c283c48..3f2e4c59b 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 e022a0daa..ded52c142 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 d234d531f..e0f8350af 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 a86e71a8c..7d25a61fe 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 95671e791..5fa9e17c8 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 5ebae7afe..ec83e9ac3 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 81ea66016..7ab523822 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 0cac1280f..a257e7c1d 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 7f7cbe702..7ebb327ae 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 bcb2cbaf3..6f1d3cf53 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 a22ea4d77..cc9d0e976 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 1cd7669c0..8f421d9e4 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 963f79c3c..61e49adb7 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 ed1628ab4..7686d3f28 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 1875b6334..57ae8b2a9 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 d0380cac3..c2f7a0e57 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 8473d4505..295ba7c10 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 9350b5e96..2e1dde00f 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 36b2aff57..4618db9a7 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 a81b0bc1a..7f64ccf90 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 3fb9e6d6d..637209ad8 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 d8ed43a1c..4048c9acd 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 0f4605c1b..76a91522b 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 853519e22..90f574127 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 fc311aa61..5a1009bfa 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 e50928e8c..c9fef953c 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 a3b47c459..dbce94fc3 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 816fb3764..bc3f93aad 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 734b3a6ac..cd1071586 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 d258b04f7..f2c3242e9 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 74410f43f..768bc662c 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 8cadd6b91..11b915c26 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 af49d7b06..eee401a23 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 3b3758efc..9129ae79a 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 49891ef02..9ac778dfd 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 08e491dba..63bd447bf 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 ec9d4ec16..79a29c8b3 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 41311aa13..87d6c2f09 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 6ad3e88ba..77a33d3c4 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 8e3e138e0..bfddf90e9 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 83ef58561..16d5a1965 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 d765e2773..e5d7561be 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 d319faad0..2ea293a2b 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 c41f7a008..e732094c2 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 2baa71664..f2721df1a 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 3657efc91..6e69dd19c 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 3d4ddec21..03013f713 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 b0ea448a1..5794df1eb 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 d05ee9fe4..d1e38faf5 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 685b2699b..f1ea2574f 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 78166cfdf..0bcfd45ca 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 13461915e..017ed45f8 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 1e256aa86..4d1213a52 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 5a12c2e26..434dc4236 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 be6ba372f..969998c59 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 552f5b866..17345cbc4 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 2da2bc5dc..f2def7b0e 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 49de29ab6..0a4a8bbcf 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 b682f376d..daf96bda7 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 2e6f7f68b..032a6c087 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 e505a6ee4..912bfb3d5 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 96c66df92..75fcf634a 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 6df47ca56..9d3a8dcfa 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 91b0ef945..34fe070d2 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 c054fbe7b..ef0d01e80 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 aa8a76552..9ca93784a 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 cbaed7e66..1bf622e61 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 8e49c7855..3381846b8 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 9bdbdb4a7..52f383f69 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 2d6458b9b..3af7387c4 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 afe1bcf42..efcb27673 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 3cb620660..39f7fa5d6 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 d737f6ccb..75d062d7a 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 cced9717b..733f00a1d 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 b5904d671..7c1aaf6da 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 7de686498..43189940e 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 d1d4a864e..f2d7cc692 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 f4018527c..f60be4bbd 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 f620da5ee..34add2721 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 4341b1bf5..cd72aabae 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 801afe92c..232444cb8 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 7e263db5a..0d5e76554 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 9bb38af1c..499bc2c7a 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 9cea7e281..2ab596037 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 cf3b50725..d1b0ff0cd 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 7715b0b5d..aa25ec3a2 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 5e225f32e..34a2d3389 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 b55b87606..0ff9529fa 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 9084cfa07..6778e208c 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 0d8b9ce61..b523725c4 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 ed52d1651..a3bcf8041 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 a19433c6f..c6e0593b4 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 00855a97a..fe33e2c74 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 e7c891b35..d538cc7d3 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 39dd6362a..2bcf9df16 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 770068a3b..948001dca 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 06b450de0..fd5819d50 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 7af06a917..cbbdf8eb8 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 0efbb081c..1a9b0f32d 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 64c958c2d..350933f3d 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 1c233da20..5fba02cac 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 11291ca14..af863bc4b 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 8cde84023..660aaec1a 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 4ca541dd6..167fe42b5 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 3125062b9..0ca3fa179 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 490387a0e..f8d50f03c 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 6c11286a8..4306d5ba3 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 60a5d9c0e..c545d0fc4 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 bb3e447bd..b5900b6c0 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 1dad45264..2be102a38 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 618b54ae8..1b02e4618 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 06aaca596..d6f7d1d7f 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 26cb9fbb9..247950a21 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 76801a92e..826f58095 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 56e327a34..302369217 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 f0b00f42c..c1a10b5e7 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 746a2b19b..7b76ab79b 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 542ae7e12..808558098 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 649cb488b..2d945c27a 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 48222f89e..0e4e498e9 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 0c4333b89..cc8c6c9e2 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 727f3193c..9d0725e3e 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 712ced89c..83ed06e49 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 1a4b02001..183ade8a0 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 e41fccb63..3f5cf431f 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 becf45f64..e44271ba1 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 d41c4bb22..3514e21ba 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 eb0b78a5b..3ff42f08d 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 65ce06027..025f2f44b 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 a4ba44035..319c3483e 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 1070cc78c..2ca9813e1 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 b8c7d4f9a..83fa35219 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 9948f90a1..3b6a9bfdc 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 6d9664400..a2e72cb48 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 f8e496091..47d0e4972 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 5f4d8b35c..725eeff01 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 f8ea5a876..2e9d7c656 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 a67bd56df..c95a6be3d 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 85fe2ded4..fe0714395 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 5a8b253a2..cf985d44f 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 b2bcc4d58..f233494fa 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 29fa6c85a..433a79939 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 035f2dc1e..d0004f068 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 d10a308df..f5b1eb1c4 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 0e6236216..383193daa 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 4e77c3f2f..682044407 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 aba5b1f9e..623fe18e5 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 c0a79d1a6..e2cb4400f 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 0b4e09cad..963cbc719 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 47f46df33..34d2dcfcc 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 57fff7d32..9b84fb2b3 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 fd9a165bf..34dc990c3 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 60f9859e1..c539a3623 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 a5da09172..7f6f24605 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 091f1ce27..04d70913c 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 fb7fd713b..dcfe7967b 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 941b22e45..110139cc3 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 5e03e42b4..32832d83f 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 e3abb973b..6786d23a9 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 14f6aa614..cff685046 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 8b1e29866..8b49becd3 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 ca803cb68..12f1761ad 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 1f91a2493..543fb922d 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 aeef862b1..a0316c9a7 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 0e8800510..2b80b4df7 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 91e5e0c03..b693c0e7d 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 ee3133ade..91eebb4c7 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 40afe2d92..6fbb9e7b3 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 fba7ed646..53505e998 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 df88e2a57..2f357afb7 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 60cc19d56..4e1927ea3 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 02f85d384..88632b463 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 77395bb46..5e1f1860a 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 29febe751..e8603d191 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 9acc0ee7d..59c3bde81 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 c78c3cc51..a3d110587 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 97ef69a6e..84827a91a 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 c1aaa2419..5cc94abd4 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 ab3186616..6b38a08c2 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 f485f2086..1ea3ae000 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 64dc763dc..316b19025 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 067a4ebe1..a40419e13 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 b8294ebe3..9df96204c 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 734a550a7..0b55a9b28 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 36f93893a..02bda1309 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 afc0c0505..91341669d 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 9783abe1a..6a08b1187 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 85f2ed0e3..00cfbe0ad 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 09e7077b2..62458a342 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 c3da37af6..839083358 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 1d3c257ef..a4052a6a7 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 c1ecf3a3f..8650dfa09 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 cd30d496e..743d807a0 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 e8cfc0706..979b18407 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 d98e821ba..0105446b0 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 2a1f05731..eada12d1e 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 642b1b7b9..bd867213a 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 4bf153cb9..a9466699d 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 857bdc2a1..fb6d185ee 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 14f159259..6cb7b812b 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 31c13172f..84823aaed 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 22f8f40e1..38ddf990c 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 b87cf0041..7c91d2ac6 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 ae7fa5248..28f600ad9 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 71a2c910a..d00eec85e 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 d1917a993..2af70f9ad 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 f00bf8c26..89bfd83ef 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 96748c630..2ef580697 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 69197aef2..8a21c2c7c 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 7765a399f..43c097444 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 816f8b359..2801dee8b 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 aa922f4f5..7faf609ae 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 608bec739..ef5806fa9 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 99d66f93e..ac082ab36 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 6ea1e1dfb..0c7838b0e 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 340eb1809..4b04ddae3 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 fecc5c439..670191deb 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 184dc5bae..ab37f9ba3 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 761747782..9aa5a88d2 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 e69d2d15d..35b5e5e91 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 c4912f112..b76219f45 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 55ffef43f..268ebbe44 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 1370e5302..9c69f9c34 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 86bdf60ab..52a82bfa4 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 0653f8b0d..05921e6f5 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 8a2d1cf33..7b9550dfd 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 f8e451e80..d5c85480a 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 c50d2a01a..2e6f87d6b 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 9977492c6..b536019dd 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 255e1d901..622a01dd8 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 e7f08ac45..f15da298d 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 e12bbee18..a5993bf37 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 43cbdec01..09ced33b8 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 2b72ee952..b5382c7d9 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 34e06e51c..97ac9a3c5 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 ddb2e6aa8..676d83d9e 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 2f1793a0e..54604ad55 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 66eaa1d9c..d6856fcea 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 42cf948e3..6d19214c8 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 d0664eb78..0a51000c7 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 1bc43998b..2b65ab3ea 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 c7a9c3100..745d17ff2 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 7ea8a5280..1bc166902 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 792eec8d5..eaa02588c 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 9482ae012..c16158c6a 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 bf71cb559..e8db9a3de 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 4e6ad4d74..ea79830fa 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 f5ec294cc..f60cf90b3 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 6081ab9b1..a4eb0af58 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 5de8922e6..80cec5127 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 17b00975e..b488bbbd1 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 5cdfb8142..399633e39 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 da67cd5cb..ed58a54ee 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 a771643b6..1ca860ecc 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 c61922cd9..2aacf2303 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 133a7cced..565a15bc1 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 c36eaee07..6c409c6b9 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 71f522fb0..8295515ba 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 d845f21a3..2b872178c 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 48400846d..5116b4fc7 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 eedf3f5c1..f544b6535 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 c21ca9cf6..e546c77bc 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 917cbdd57..b60007bc0 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 f404fd377..3125d7ce9 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 2441d6d51..b0d8a7c3f 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 d8c6f38d0..1a5a162c1 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 38474255d..942b1f837 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 eb6972fad..c9fb05ff3 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 8d4ecf1bc..5271e39bb 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 39b87f249..50df9d111 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 ea3d83e8d..bb6aa3dc7 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 c6fc352b6..e0e481d1a 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 ffa34572b..764176919 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 027f90872..1d24b5880 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 a58739fe4..b8e264c44 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 57707b612..1142a0aec 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 7640243ba..ecfecf6e6 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 c7e01b8fa..46c13f0a2 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 0567cbb30..aaa3ed078 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 e46d4194b..72c09a378 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 2ee94e35e..01b71e708 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 6bd8a89d1..4cc364acd 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 ec5a98fc6..3be2a39c2 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 32d878799..f67e7edb4 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 185e1eee3..1c910a93a 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 3f7bc5985..899e554ba 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 47d1141f3..9bf4280b0 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 399d07fe4..d12e2fcc4 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 316cbcd95..3d030edac 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 190dc6c2c..d12fa60da 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 52d5c3c6e..50bfa9d3b 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 43e6d4313..61fb24d05 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 d2a4e19d0..2056ad1b3 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 a6553256b..efc216661 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 0fb8e4472..a9d6eea1e 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 cd2d305de..c1e9ba58b 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 e8fc02045..7b064adfc 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 ac0c38589..1e53aac9b 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 7117c0007..daefe59c8 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 1ec781bb1..d2450066e 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 58ac1c07a..5ba8de3d6 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 318d9af70..2a0a849b5 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 a9386d274..dee506dea 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 d8d934ea1..41c127be9 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 560f25a0a..01421dc92 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 ea078e215..a62d2afaa 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 a89ea4757..10db968a2 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 97d4441a2..d2a7a12a1 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 ad82fe0f3..f1d0aac72 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 817a2c6d2..6e9d3673c 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 5210ecf77..c23dbf062 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 9bf4307bf..82e0055ab 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 a1ca3c3bc..e3a09a95b 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 c9e8eb4a8..9a4aa3382 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 393f8ed3d..bbc349a0a 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 1e75bd79f..042715639 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 57db19aa3..83324711d 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 cd731337b..27199ba41 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 fb2d25a22..73f091634 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 62fb04574..c712902ea 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 870bc1773..682bc64ca 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 bbaacc234..9f4cdde86 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 0373d5b15..9ef44eb58 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 16371fc86..81ae58178 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 28a6d2f42..f07b4e8c1 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 17e600182..0a8a1eb4e 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 3d1835c7c..137f38d40 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 2b5691ce8..9e47d0bb1 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 c4cd3486a..975873a9e 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 4acd7df5b..3bb202505 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 4d46716c3..26df1dbf6 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 efbfc62d5..4c0b38bd9 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 80f43a0c4..c364e7090 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 1d1ba2506..c7f97410f 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 803906b21..73ba11882 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 5496496e8..677fbc92e 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 24d851762..885f84543 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 34f466854..4699f5379 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 82d72698c..2d626c558 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 05896299d..20c2ef3e4 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 89bd23588..0f9593206 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 e67202b28..fc4c919de 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 36e99bba5..a75b3573a 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 517957a85..925482a1d 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 323422a1b..b21d52bbf 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 7be37b6a5..ae4c239c7 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 982290e0a..0002d56de 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 328c7bade..093de406a 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 8b95caf2f..95b3b4040 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 005603e7a..5fce41f06 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 a92aa6e98..0aaf5920b 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 e9572a07a..23c215738 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 a8d07ea47..89be79559 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 d4df464ab..c3938b320 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 0cc05dd04..93142c21f 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 49ee5c7c2..f6ad1b2b3 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 ba3f5b508..e46724f2e 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 5fd81bae4..0cecb1aa3 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 a378c8bf6..08fcb6b62 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 57ea24eeb..db6faaed6 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 bb2d1f733..ba05996a1 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 f40d850fc..26c7558c1 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 7f5ef792a..381868240 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 fe5007abb..889a89f0d 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 972182bec..935832aa1 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 803ff696b..e21a1ea29 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 4feeadd95..f5ca54b72 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 cb3d05945..3fa88340f 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 a9d1e179a..227e0bbf3 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 06b20001f..080945810 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 9bc23a719..32c31a433 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 cc329f568..522acd00a 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 561792db2..72d1b2ab3 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 3a5bb9d27..00e277c41 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 8a9dee6ce..f4e3cdf0d 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 9b32ad29a..0a82fc5b7 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 bbafe64b4..a9112029c 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 67053d2b7..dcdc2de83 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 ecc9ad2ca..d238a4085 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 8f038d610..da8c52638 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 8dec1c8ea..2d5b6611b 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 1ec94aa0a..f35fad1a0 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 3ccf68c3a..2af15c413 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 b7108292d..aae3a7810 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 f39aaeb1e..62387c78f 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 f062f66ae..ec8998449 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 ecab6d5f3..3f4113c79 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 8fc6903cf..33347687d 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 bb0c7770a..af83ce191 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 ad97e2dd4..dc4cb2c94 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 785cb8ed3..321cf5540 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 e797e015b..95a608492 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 6ea84ec28..6b6b56db2 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 eb5ee8463..73e8309ac 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 f27de37c8..bd11e2d11 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 0ec7361ca..56fe0e4aa 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 e4eedd34c..32fe545c9 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 352f93274..93c157437 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 aa3ee3842..7ba370855 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 b6b6d0bbd..61654d8ea 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 c3ebdf9df..b5fe17944 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 80ee56d4a..2433cd3c7 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 39d3d74f6..731c1b59a 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 457686ba1..0abebc04e 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 fdc18411a..e3e2a9e19 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 7447e5d45..8d70bee24 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 0b794ad65..eee789eff 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 f61de7e1d..3527d54b6 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 f00264f99..394bf9946 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 0c69913ff..c5a064054 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 43c8dde9a..d0442d58a 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 d8754cdf7..8e7648b8d 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 957c89dc8..96b182e18 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 16ddc0598..48cd905a0 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 c7fae6431..6c9cde66e 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 e8453fde6..6446fcd70 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 5e69f912d..2a648e421 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 dff24d494..00aaa8e08 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 334424518..03d836dd6 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 e6e63ee1e..bdd6ef451 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 757d596c4..988afb473 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 b7f3232a3..e42e8a51a 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 3291ed31f..f5bf1f449 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 190b8a672..21640d90b 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 1c92d24d4..9dc84c3ac 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 8e19e0441..bda8f12f1 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 eb13242e9..952a4d17a 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 6ff5964d1..1c5493c89 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 ca35f5be5..acf3896b7 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 c730477cb..4486be0c2 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 95ada2254..dcdc57ee4 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 e5cd44377..87d2e02b4 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 537b9f982..a749f863f 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 7e7c75675..0cede07f9 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 c7ee91134..d75353137 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 011926092..bf1183fc4 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 64f47aadd..d4fb051d8 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 198437f7e..2c5a8e2c0 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 337e7fe1e..1209d2346 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 da30ae94d..cd2c45261 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 459c938f0..f95eb9840 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 35c1a6dd2..7eb800a02 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 9f67143d1..463b39d0b 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 642c9937d..5781d7e90 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 2c15b42d9..ac53e2d1e 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 d24c0ac08..d3ee93ec9 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 a7fd677fe..267f0e4cf 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 727827232..f1e2b1d3c 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 205f9a077..545a060e2 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 0d36a600f..a5ac274b8 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 291fc3163..2e62f7cf1 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 5c8b82249..946085cb9 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 c8cfa6cc8..f9d59b6bd 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 8469bf1ac..590e7adce 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 851d986de..819ac3f20 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 9ec43f826..23b48c286 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 20f3a3296..44168388e 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 cd29fceba..c18abbfcd 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 482db9513..af220601f 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 689ae744f..0f2427122 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 2be4a9e70..6019a28a9 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 087c25670..069117d1f 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 2d4622324..782ce0bd9 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 45ba8faac..aab4f1a44 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 830112fac..32bd843eb 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 a9e36e10f..674011bed 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 af07821c2..1812441d5 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 e7ff1d59d..be5279aac 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 b15fc05ce..96227270c 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 d3f512092..5fa13f504 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 c2b2a00e7..f01d6f47d 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 acb1f6996..6ed4fed9b 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 2663b6b2b..614964460 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 b94fce844..79c523121 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 0bd154113..16a6a2654 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 8efd08e69..ce892435a 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 5042884e5..2897f203a 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 f7eab3d95..6c9c1c27e 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 edeb27677..c02c8e13a 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 03b5946d7..68721e064 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 052975c9e..34d7c93dd 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 8103e2faa..cc8518d4a 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 d26fa8112..46d303ac8 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 3198f934c..22ffd5e76 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 21d8c672d..65c138ed0 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 9775af1cd..470090b50 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 601b0a7c7..c37c70947 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 8a7533b3d..ea9b1a714 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 362492631..6a942b9b5 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 e5683fb53..48dd90323 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 7bbbbb616..2b89e6dc0 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 b8bb0c77b..44e1d7071 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 829964b38..1d8c5989b 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 14bc734c4..d01934ac6 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 501161b61..610af183d 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 0d683693a..9e3caec19 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 ad9bc9c73..30875f6e5 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 dfb21b884..a3b9d1cfa 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 3fc403477..03efa6185 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 8cc826c3b..d4b1b73d3 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 6a17eb334..48412fec6 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 10fe8c4ee..fd337b22c 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 cdec73cd1..48b61885e 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 3b4a8e5f8..9e569a70e 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 4a77569d8..98e8d122a 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 60611130b..c0c68a3f5 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 d993f82bb..e45fb305d 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 c4e6088a7..cc22595c6 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 88520c819..179249c7a 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 21158bfa2..40b0d1707 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 1108a46da..3f28044db 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 50212fccf..9b84ac79a 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 762f9e525..ba92b0507 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 e3d414d45..d6d4d152c 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 7343ffc53..f819949c9 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 faf3459f1..af8f2df0b 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 b4de02b5e..590065250 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 10692221a..7e4db311d 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 84f7c80da..c7550dcb0 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 8cca0a91b..4b9826bed 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 5471686e7..2014b1927 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 b29c9bc85..afed98989 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 1046095ff..925f310a2 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 3f1bb7d52..c60c48d92 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 e0dcefe14..ddb407b05 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 22eefd162..cbbdccce9 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 2555e1b3b..1f2bc77e2 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 9c04aa1c9..842719467 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 36e66bb7a..6ff554e61 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 eb989381f..07e329cf4 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 1ade9bed3..9b8aaa364 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 3895c54c7..fb7adcfd2 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 b450005f3..be8897693 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 f1c2693ae..94fff6ffa 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 24437ce76..3cd6e8135 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 e4c8da3ba..a829a1000 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 e5d9ac9d5..387530269 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 e1f26b89a..e5ffbbeb7 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 855fe7f4a..6fd4fa725 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 5725f540b..6e29dc93d 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 a30d4f602..6bc67e263 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 bc5a4c8ed..c49b03d60 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 34c8aeec2..a311625f3 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 24fcd6c4c..a43b71cf3 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 f098052ad..faa60bb3b 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 dbe1bef52..373249b11 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 310308ca8..621816e97 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 c6c626c9c..ddd64a539 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 e158c63de..e1c7d5d7f 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 2be01f25b..b5eef8c09 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 b96d9e7b3..1f3375cdc 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 59e569097..1aa6d0df3 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 e900480d3..a500dbdb2 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 1721b00b0..f7a41ef24 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 372878099..0ada3885b 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 a9a2b33ed..cf9b3992c 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 d4ba50735..c809ed452 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 d29384e01..a8b6f7a62 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 42134fa7a..007790f2a 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 e2db18e1f..bce01cb76 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 c369b98aa..859c32cf8 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 e0ffcac3c..5f5283bdd 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 9e8012978..d30d61ee0 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 badacf39a..2bf4cdbf5 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 625bc305d..13e074986 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 2778f2e74..af28f5a4a 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 bf2a0ce0a..2bbc5abbd 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 307c60a09..03d083e59 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 138dc88a0..41bc07f2f 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 9976bc7bd..65db732bf 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 c07244e7e..5e052a9df 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 07fdf18c8..eed711c58 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 498cf7d15..e7a042f4d 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 e047e994c..7cb1fb75f 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 fc15380f4..89b5f9d21 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 22d75db89..c9fdc9532 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 8e4e60a7f..df3cdc15b 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 782684d0f..58b6fff33 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 85cfb759f..df44fd1f7 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 f6ef67392..bec752cff 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 da3123d3a..ba58ca4f9 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 5ddb6cf1f..6cf941073 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 7ff8b1e63..bd3efd46b 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 bbcdef356..754234ecc 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 bf9e95edc..ef8366f8d 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 8292beed7..8daf99f86 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 5badc7462..815e1a93e 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 4a24b7652..4941ae3f0 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 a9d01c989..7b04f1dd3 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 f5c69d74b..1814361a1 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 3af38b515..db97b351c 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 7ca5f6106..8bc68490e 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 5ca78d050..b092f7e73 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 5c9139b41..21173e7cd 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 8d44aa504..a1f197d80 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 acaa12253..a77d871dd 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 f6986cff8..e483416fd 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 774ef6c28..268d8848c 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 6028ff74f..697a828e0 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 f8f3e94cd..e6e35c474 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 ffe3f670f..dd6b9ccbb 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 e7ef79d15..dadc417aa 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 a8770db4c..971016333 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 d6bc6016f..2a487fb83 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 bdfdd3c75..1fa757d9d 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 9cac32b9b..ef21d7f90 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 c137dd120..c44f9a195 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 131dcf70b..7c231415a 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 0ad876c9b..9e1641d3b 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 5a798f79f..dbfe502ec 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 80b3c586b..d5db5952c 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 586c50a55..8a324a668 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 e22a091bb..7adaa0a1e 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 9afc7475e..85a39fffe 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 c2ad9c45e..4539d0ff6 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 f4588fbbc..68b29f364 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 3e651c620..095ebb177 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 6e2c77030..aacf1e0fd 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 1cb0b20ff..e70fa4a4e 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 2446acec9..a7313f3b2 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 f14380222..2ee4778ab 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 6352449d6..59be697a1 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 16e53d6b8..5cd138eee 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 90285f78d..87647cc47 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 40c8b7088..5ced388b4 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 60cbecd06..851021da1 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 4c5c0c615..875b9ed96 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 3c30a6848..4a7d56343 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 e71e1ff03..5c0dbfc99 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 20412fe72..39d1c91e8 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 bf4217ef2..72329b669 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 9e4ce63fa..325401fe7 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 83719dcca..71197f92a 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 6cf5af710..c85ff9aaf 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 8efb70848..8346e3bcc 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 1d2952e1a..d3e4449f2 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 6fd6d616d..d26935f44 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 6753ceaa9..3068ca2dd 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 6ebad106f..ac7982773 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 81842b05f..5e987c441 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 0c7f5e2d5..90691d81a 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 3707cb7c1..a3c03ba2f 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 3527e1657..cb834096c 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 4dfae97e4..dcaecbd03 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 f03efaa0e..17e26d966 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 2c8b1e381..1956c2a3a 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 cca72c2b3..4fca55c93 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 298bae95c..d773bcd62 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 a3be67ad8..eba1d78fe 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 4f2f5cb52..e0db8329d 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 dddc316e1..ccbcfba48 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 cb5116c74..1dd59776c 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 99f83f943..90d17795c 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 a6c4f91d4..a3bbe9bba 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 713c7599c..e57055340 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 e8fc47f8d..ee4ae6e12 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 3357f9568..941ede45f 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 385fec12b..b99326e1a 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 e503834e1..cf080575d 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 98373fb6b..17e626fa7 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 2186933bd..5aa139694 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 d2edf67e8..50d0c5966 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 440dd04a8..d4334ff8b 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 9793e12b4..f050e354a 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 5d3a209a7..514954291 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 1e476a89e..58ba84194 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 bfe0c0aa9..e32bb47bc 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 4e1e29389..81eb1a942 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 b8da17b96..9881578fb 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 a667949c0..c6be5c194 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 b999b97a2..d09749d65 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 023bf3017..498bd41b0 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 7bd265187..5f2592252 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 e21556aa5..65749521c 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 da6af0118..432306914 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 27fec1d58..65262792b 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 fef653545..9483283e3 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 c28bf391e..f29014e93 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 9e9276077..58b24d0e1 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 76c3dc2d1..63363f22d 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 e45050a27..295e639fd 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 c6f4841d0..d56b04e91 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 2d2c979f7..a92814ece 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 f3c3e6d7b..88571ecd6 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 bf66d221f..2f91f8273 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 bd0bd63c5..efb3798bd 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 8edc0e63c..703834b71 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 0c72956c2..ccde04891 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 134ae520a..dc2bff89f 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 c702c62e4..cc2d85b41 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 c617b1828..9a96ed61f 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 18a157412..a78985988 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 1d9d257f1..806b87dc4 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 9d3b17d10..9e03ec288 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 80c71810e..e34738aaf 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 19e80dc7b..4355dd0a4 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 8810363dc..4bc1d811b 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 2f698659c..e810a9fa2 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 dca325275..26fd1dde6 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 e8764e6bd..d7949dfe2 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 45b4f4447..9e3ff9c44 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 02b0e9387..15336b9b8 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 6f656ef2c..6508df1ef 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 c969f4aff..fab391146 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 4dcf6276c..669212ff1 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 35d61f7b3..933bb51cf 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 416cc126b..9bf4c38ee 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 1f0f894ca..c913a2000 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 f2b0ac80c..1a486b605 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 4042dc95b..d42888bbe 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 4eb29f0ce..9136f8f91 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 99d5d6c8d..9eca69cfc 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 0159fb4f3..170a6dd44 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 707cf46fa..753b7e766 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 f2adf5f5a..b2ec6c093 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 638b9a616..d9e5b0fce 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 7863313b1..9649b256a 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 96f39924f..a6fe7f188 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 470478589..4d848dfc6 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 d04fcf7f5..09a5f4208 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 3f352e49c..06019406d 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 60e69e97e..fa385ddae 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 b5cb7877b..35f7cb8ab 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 bec85e8a8..e72d00ffb 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 d713c0f85..68d80a102 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 381cc73cd..bca8ec848 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 1bfe5c705..1e20a63e6 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 2a52a5cde..b4f7560fa 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 9ea69702a..d8434c28b 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 ea8845ac3..c8d0c46d6 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 96ffa5a46..c56aa43c5 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 83f30758a..1c27b6db9 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 c9e775359..438e1c2cc 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 4ab3577b5..26c81f5be 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 61a632721..4654fd70f 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 c69a2642c..91e2961d6 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 b20943c22..34328100f 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 e20c72591..5ea9392a9 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 8e494a9af..3692b11ec 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 5ff0c8273..58fee8418 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 152600bf2..c47080298 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 f594efdee..6698b280b 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 c62c49eee..47b61c1ee 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 6273545c2..71b28a625 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 7dc078e27..9ae45d324 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 1f1346a5c..0416930c6 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 1c598fd0d..f983f98ad 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 fd98af512..89a277430 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 54b81ff3b..52081615a 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 35be840c2..08ecb8b74 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 017700ad4..eeaa6d6e0 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 83be62d3f..a6ae649b4 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 f55afb038..f43444680 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 bb3447c80..226c25615 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 53b23072a..e575ed399 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 066253000..b4bd4a011 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 b65573a77..a7cc27a92 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 8098868d5..449ba6706 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