Skip to content

Commit f718e55

Browse files
committed
fix: ignored underscore lint err in generated migration files
1 parent b68b536 commit f718e55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ import (
157157
"go.mongodb.org/mongo-driver/mongo"
158158
)
159159
160-
func Up_%s(ctx context.Context, db *mongo.Database, client *mongo.Client) {
160+
func Up_%s(ctx context.Context, db *mongo.Database, client *mongo.Client) { //nolint:staticcheck // ST1003
161161
// Write your %s here
162162
}
163163
164-
func Down_%s(ctx context.Context, db *mongo.Database, client *mongo.Client) {
164+
func Down_%s(ctx context.Context, db *mongo.Database, client *mongo.Client) { //nolint:staticcheck // ST1003
165165
// Write your rollback here
166166
}`, target, timestamp, target, timestamp)
167167
dir := cfg.MigrationsDir

0 commit comments

Comments
 (0)