aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_14
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-20 04:08:01 +0200
committerGitHub <noreply@github.com>2023-04-19 22:08:01 -0400
commit938b59199480d1b3730388982eb87d592e976849 (patch)
treefcbbeea0c67dca1cda1ef87a6b3c0748105a8610 /models/migrations/v1_14
parent594efb9b669fb12e8a0306f76c740fa72c1a80f1 (diff)
downloadgitea-938b59199480d1b3730388982eb87d592e976849.tar.gz
gitea-938b59199480d1b3730388982eb87d592e976849.zip
Remove most path-based golangci exclusions (#24214)
They are non-obvious and do not survive refactor. Will replace with `//nolint` comments after CI results are in.
Diffstat (limited to 'models/migrations/v1_14')
-rw-r--r--models/migrations/v1_14/v157.go4
-rw-r--r--models/migrations/v1_14/v165.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/models/migrations/v1_14/v157.go b/models/migrations/v1_14/v157.go
index b9d8225af8..7187278d29 100644
--- a/models/migrations/v1_14/v157.go
+++ b/models/migrations/v1_14/v157.go
@@ -8,13 +8,13 @@ import (
)
func FixRepoTopics(x *xorm.Engine) error {
- type Topic struct {
+ type Topic struct { //nolint:unused
ID int64 `xorm:"pk autoincr"`
Name string `xorm:"UNIQUE VARCHAR(25)"`
RepoCount int
}
- type RepoTopic struct {
+ type RepoTopic struct { //nolint:unused
RepoID int64 `xorm:"pk"`
TopicID int64 `xorm:"pk"`
}
diff --git a/models/migrations/v1_14/v165.go b/models/migrations/v1_14/v165.go
index a784832e1c..926350cdf7 100644
--- a/models/migrations/v1_14/v165.go
+++ b/models/migrations/v1_14/v165.go
@@ -16,7 +16,7 @@ func ConvertHookTaskTypeToVarcharAndTrim(x *xorm.Engine) error {
return nil
}
- type HookTask struct {
+ type HookTask struct { //nolint:unused
Typ string `xorm:"VARCHAR(16) index"`
}
@@ -42,7 +42,7 @@ func ConvertHookTaskTypeToVarcharAndTrim(x *xorm.Engine) error {
return err
}
- type Webhook struct {
+ type Webhook struct { //nolint:unused
Type string `xorm:"VARCHAR(16) index"`
}