aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/migrations/base/tests.go1
-rw-r--r--models/migrations/v1_11/v112.go2
-rw-r--r--models/unittest/fixtures.go1
3 files changed, 3 insertions, 1 deletions
diff --git a/models/migrations/base/tests.go b/models/migrations/base/tests.go
index 2f1b246648..14f374f1a7 100644
--- a/models/migrations/base/tests.go
+++ b/models/migrations/base/tests.go
@@ -1,6 +1,7 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
+//nolint:forbidigo
package base
import (
diff --git a/models/migrations/v1_11/v112.go b/models/migrations/v1_11/v112.go
index 3478ffe449..ff1f972204 100644
--- a/models/migrations/v1_11/v112.go
+++ b/models/migrations/v1_11/v112.go
@@ -31,7 +31,7 @@ func RemoveAttachmentMissedRepo(x *xorm.Engine) error {
for i := 0; i < len(attachments); i++ {
uuid := attachments[i].UUID
if err = util.RemoveAll(filepath.Join(setting.Attachment.Path, uuid[0:1], uuid[1:2], uuid)); err != nil {
- fmt.Printf("Error: %v", err)
+ fmt.Printf("Error: %v", err) //nolint:forbidigo
}
}
diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go
index f7ee766731..c653ce1e38 100644
--- a/models/unittest/fixtures.go
+++ b/models/unittest/fixtures.go
@@ -1,6 +1,7 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
+//nolint:forbidigo
package unittest
import (