Browse Source

enforce nolint scope (#34851)

enable nolintlint scope requirement
add comments to new directives so it's more obvious why they are in
place

---

I can also toggle the mandatory comments on if that's something of
interest.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
pull/35076/head
TheFox0x7 6 months ago committed by GitHub
parent
commit
eb36a4554e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      .golangci.yml
  2. 2
      models/asymkey/ssh_key_parse.go
  3. 2
      models/issues/issue_search.go
  4. 2
      models/migrations/v1_10/v100.go
  5. 2
      models/migrations/v1_10/v101.go
  6. 2
      models/migrations/v1_10/v88.go
  7. 2
      models/migrations/v1_10/v89.go
  8. 2
      models/migrations/v1_10/v90.go
  9. 2
      models/migrations/v1_10/v91.go
  10. 2
      models/migrations/v1_10/v92.go
  11. 2
      models/migrations/v1_10/v93.go
  12. 2
      models/migrations/v1_10/v94.go
  13. 2
      models/migrations/v1_10/v95.go
  14. 2
      models/migrations/v1_10/v96.go
  15. 2
      models/migrations/v1_10/v97.go
  16. 2
      models/migrations/v1_10/v98.go
  17. 2
      models/migrations/v1_10/v99.go
  18. 2
      models/migrations/v1_11/v102.go
  19. 2
      models/migrations/v1_11/v103.go
  20. 2
      models/migrations/v1_11/v104.go
  21. 2
      models/migrations/v1_11/v105.go
  22. 2
      models/migrations/v1_11/v106.go
  23. 2
      models/migrations/v1_11/v107.go
  24. 2
      models/migrations/v1_11/v108.go
  25. 2
      models/migrations/v1_11/v109.go
  26. 2
      models/migrations/v1_11/v110.go
  27. 2
      models/migrations/v1_11/v111.go
  28. 2
      models/migrations/v1_11/v112.go
  29. 2
      models/migrations/v1_11/v113.go
  30. 2
      models/migrations/v1_11/v114.go
  31. 2
      models/migrations/v1_11/v115.go
  32. 2
      models/migrations/v1_11/v116.go
  33. 2
      models/migrations/v1_12/v117.go
  34. 2
      models/migrations/v1_12/v118.go
  35. 2
      models/migrations/v1_12/v119.go
  36. 2
      models/migrations/v1_12/v120.go
  37. 2
      models/migrations/v1_12/v121.go
  38. 2
      models/migrations/v1_12/v122.go
  39. 2
      models/migrations/v1_12/v123.go
  40. 2
      models/migrations/v1_12/v124.go
  41. 2
      models/migrations/v1_12/v125.go
  42. 2
      models/migrations/v1_12/v126.go
  43. 2
      models/migrations/v1_12/v127.go
  44. 2
      models/migrations/v1_12/v128.go
  45. 2
      models/migrations/v1_12/v129.go
  46. 2
      models/migrations/v1_12/v130.go
  47. 2
      models/migrations/v1_12/v131.go
  48. 2
      models/migrations/v1_12/v132.go
  49. 2
      models/migrations/v1_12/v133.go
  50. 2
      models/migrations/v1_12/v134.go
  51. 2
      models/migrations/v1_12/v135.go
  52. 2
      models/migrations/v1_12/v136.go
  53. 2
      models/migrations/v1_12/v137.go
  54. 2
      models/migrations/v1_12/v138.go
  55. 2
      models/migrations/v1_12/v139.go
  56. 2
      models/migrations/v1_13/v140.go
  57. 2
      models/migrations/v1_13/v141.go
  58. 2
      models/migrations/v1_13/v142.go
  59. 2
      models/migrations/v1_13/v143.go
  60. 2
      models/migrations/v1_13/v144.go
  61. 2
      models/migrations/v1_13/v145.go
  62. 2
      models/migrations/v1_13/v146.go
  63. 2
      models/migrations/v1_13/v147.go
  64. 2
      models/migrations/v1_13/v148.go
  65. 2
      models/migrations/v1_13/v149.go
  66. 2
      models/migrations/v1_13/v150.go
  67. 2
      models/migrations/v1_13/v151.go
  68. 2
      models/migrations/v1_13/v152.go
  69. 2
      models/migrations/v1_13/v153.go
  70. 2
      models/migrations/v1_13/v154.go
  71. 2
      models/migrations/v1_14/main_test.go
  72. 2
      models/migrations/v1_14/v155.go
  73. 2
      models/migrations/v1_14/v156.go
  74. 2
      models/migrations/v1_14/v157.go
  75. 2
      models/migrations/v1_14/v158.go
  76. 2
      models/migrations/v1_14/v159.go
  77. 2
      models/migrations/v1_14/v160.go
  78. 2
      models/migrations/v1_14/v161.go
  79. 2
      models/migrations/v1_14/v162.go
  80. 2
      models/migrations/v1_14/v163.go
  81. 2
      models/migrations/v1_14/v164.go
  82. 2
      models/migrations/v1_14/v165.go
  83. 2
      models/migrations/v1_14/v166.go
  84. 2
      models/migrations/v1_14/v167.go
  85. 2
      models/migrations/v1_14/v168.go
  86. 2
      models/migrations/v1_14/v169.go
  87. 2
      models/migrations/v1_14/v170.go
  88. 2
      models/migrations/v1_14/v171.go
  89. 2
      models/migrations/v1_14/v172.go
  90. 2
      models/migrations/v1_14/v173.go
  91. 2
      models/migrations/v1_14/v174.go
  92. 2
      models/migrations/v1_14/v175.go
  93. 2
      models/migrations/v1_14/v176.go
  94. 2
      models/migrations/v1_14/v176_test.go
  95. 2
      models/migrations/v1_14/v177.go
  96. 2
      models/migrations/v1_14/v177_test.go
  97. 2
      models/migrations/v1_15/main_test.go
  98. 2
      models/migrations/v1_15/v178.go
  99. 2
      models/migrations/v1_15/v179.go
  100. 2
      models/migrations/v1_15/v180.go
  101. Some files were not shown because too many files have changed in this diff Show More

7
.golangci.yml

@ -45,6 +45,9 @@ linters:
desc: do not use the ini package, use gitea's config system instead desc: do not use the ini package, use gitea's config system instead
- pkg: gitea.com/go-chi/cache - pkg: gitea.com/go-chi/cache
desc: do not use the go-chi cache package, use gitea's cache system desc: do not use the go-chi cache package, use gitea's cache system
nolintlint:
# require-explanation: true
require-specific: true
gocritic: gocritic:
disabled-checks: disabled-checks:
- ifElseChain - ifElseChain
@ -83,6 +86,10 @@ linters:
- name: unreachable-code - name: unreachable-code
- name: var-declaration - name: var-declaration
- name: var-naming - name: var-naming
arguments:
- [] # AllowList - do not remove as args for the rule are positional and won't work without lists first
- [] # DenyList
- - skip-package-name-checks: true # supress errors from underscore in migration packages
staticcheck: staticcheck:
checks: checks:
- all - all

2
models/asymkey/ssh_key_parse.go

@ -208,7 +208,7 @@ func SSHNativeParsePublicKey(keyLine string) (string, int, error) {
// The ssh library can parse the key, so next we find out what key exactly we have. // The ssh library can parse the key, so next we find out what key exactly we have.
switch pkey.Type() { switch pkey.Type() {
case ssh.KeyAlgoDSA: //nolint case ssh.KeyAlgoDSA: //nolint:staticcheck // it's deprecated
rawPub := struct { rawPub := struct {
Name string Name string
P, Q, G, Y *big.Int P, Q, G, Y *big.Int

2
models/issues/issue_search.go

@ -24,7 +24,7 @@ import (
const ScopeSortPrefix = "scope-" const ScopeSortPrefix = "scope-"
// IssuesOptions represents options of an issue. // IssuesOptions represents options of an issue.
type IssuesOptions struct { //nolint type IssuesOptions struct { //nolint:revive // export stutter
Paginator *db.ListOptions Paginator *db.ListOptions
RepoIDs []int64 // overwrites RepoCond if the length is not 0 RepoIDs []int64 // overwrites RepoCond if the length is not 0
AllPublic bool // include also all public repositories AllPublic bool // include also all public repositories

2
models/migrations/v1_10/v100.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"net/url" "net/url"

2
models/migrations/v1_10/v101.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_10/v88.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"crypto/sha1" "crypto/sha1"

2
models/migrations/v1_10/v89.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v90.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v91.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v92.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"xorm.io/builder" "xorm.io/builder"

2
models/migrations/v1_10/v93.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v94.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v95.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v96.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"path/filepath" "path/filepath"

2
models/migrations/v1_10/v97.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v98.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_10/v99.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_10 //nolint package v1_10
import ( import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"

2
models/migrations/v1_11/v102.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_11/v103.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v104.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_11/v105.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v106.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v107.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v108.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v109.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v110.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_11/v111.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"fmt" "fmt"

2
models/migrations/v1_11/v112.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"fmt" "fmt"

2
models/migrations/v1_11/v113.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"fmt" "fmt"

2
models/migrations/v1_11/v114.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"net/url" "net/url"

2
models/migrations/v1_11/v115.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"crypto/md5" "crypto/md5"

2
models/migrations/v1_11/v116.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_11 //nolint package v1_11
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v117.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v118.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v119.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v120.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v121.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_12/v122.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v123.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v124.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v125.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v126.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/builder" "xorm.io/builder"

2
models/migrations/v1_12/v127.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v128.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v129.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v130.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/json"

2
models/migrations/v1_12/v131.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v132.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v133.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_12/v134.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v135.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v136.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v137.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_12/v138.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"fmt" "fmt"

2
models/migrations/v1_12/v139.go

@ -1,7 +1,7 @@
// Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_12 //nolint package v1_12
import ( import (
"code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/setting"

2
models/migrations/v1_13/v140.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"fmt" "fmt"

2
models/migrations/v1_13/v141.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"fmt" "fmt"

2
models/migrations/v1_13/v142.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"

2
models/migrations/v1_13/v143.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"

2
models/migrations/v1_13/v144.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"

2
models/migrations/v1_13/v145.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"fmt" "fmt"

2
models/migrations/v1_13/v146.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"

2
models/migrations/v1_13/v147.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"

2
models/migrations/v1_13/v148.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_13/v149.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"fmt" "fmt"

2
models/migrations/v1_13/v150.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_13/v151.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"context" "context"

2
models/migrations/v1_13/v152.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_13/v153.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_13/v154.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_13 //nolint package v1_13
import ( import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"

2
models/migrations/v1_14/main_test.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"testing" "testing"

2
models/migrations/v1_14/v155.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v156.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v157.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_14/v158.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"errors" "errors"

2
models/migrations/v1_14/v159.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_14/v160.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_14/v161.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"context" "context"

2
models/migrations/v1_14/v162.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_14/v163.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_14/v164.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v165.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_14/v166.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"crypto/sha256" "crypto/sha256"

2
models/migrations/v1_14/v167.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v168.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import "xorm.io/xorm" import "xorm.io/xorm"

2
models/migrations/v1_14/v169.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_14/v170.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v171.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v172.go

@ -1,7 +1,7 @@
// Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"

2
models/migrations/v1_14/v173.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v174.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v175.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v176.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_14/v176_test.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"testing" "testing"

2
models/migrations/v1_14/v177.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"fmt" "fmt"

2
models/migrations/v1_14/v177_test.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_14 //nolint package v1_14
import ( import (
"testing" "testing"

2
models/migrations/v1_15/main_test.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_15 //nolint package v1_15
import ( import (
"testing" "testing"

2
models/migrations/v1_15/v178.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_15 //nolint package v1_15
import ( import (
"xorm.io/xorm" "xorm.io/xorm"

2
models/migrations/v1_15/v179.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_15 //nolint package v1_15
import ( import (
"code.gitea.io/gitea/models/migrations/base" "code.gitea.io/gitea/models/migrations/base"

2
models/migrations/v1_15/v180.go

@ -1,7 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
package v1_15 //nolint package v1_15
import ( import (
"code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/json"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save