satellite/satellitedb: add lint ignore rule to support staticcheck 2020.2
staticcheck 2020.2 is not liking our dbx files, so we need to ignore them. Change-Id: I6becc3619bb088473f9776d0878ce240d4935936
This commit is contained in:
parent
12144a600b
commit
9fe477899b
@ -2,7 +2,7 @@
|
||||
|
||||
dbx schema -d pgx multinodedb.dbx .
|
||||
dbx golang -d pgx -p dbx -t templates multinodedb.dbx .
|
||||
( echo '//lint:file-ignore * generated file'; cat multinodedb.dbx.go ) > multinodedb.dbx.go.tmp && mv multinodedb.dbx.go.tmp multinodedb.dbx.go
|
||||
( printf '%s\n' '//lint:file-ignore U1000,ST1012 generated file'; cat multinodedb.dbx.go ) > multinodedb.dbx.go.tmp && mv multinodedb.dbx.go.tmp multinodedb.dbx.go
|
||||
gofmt -r "*sql.Tx -> tagsql.Tx" -w multinodedb.dbx.go
|
||||
gofmt -r "*sql.Rows -> tagsql.Rows" -w multinodedb.dbx.go
|
||||
perl -0777 -pi \
|
||||
|
@ -1,4 +1,4 @@
|
||||
//lint:file-ignore * generated file
|
||||
//lint:file-ignore U1000,ST1012 generated file
|
||||
// AUTOGENERATED BY storj.io/dbx
|
||||
// DO NOT EDIT.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
dbx schema -d pgx -d pgxcockroach satellitedb.dbx .
|
||||
dbx golang -d pgx -d pgxcockroach -p dbx -t templates satellitedb.dbx .
|
||||
( echo '//lint:file-ignore * generated file'; cat satellitedb.dbx.go ) > satellitedb.dbx.go.tmp && mv satellitedb.dbx.go.tmp satellitedb.dbx.go
|
||||
( printf '%s\n' '//lint:file-ignore U1000,ST1012 generated file'; cat satellitedb.dbx.go ) > satellitedb.dbx.go.tmp && mv satellitedb.dbx.go.tmp satellitedb.dbx.go
|
||||
gofmt -r "*sql.Tx -> tagsql.Tx" -w satellitedb.dbx.go
|
||||
gofmt -r "*sql.Rows -> tagsql.Rows" -w satellitedb.dbx.go
|
||||
perl -0777 -pi \
|
||||
|
@ -1,4 +1,4 @@
|
||||
//lint:file-ignore * generated file
|
||||
//lint:file-ignore U1000,ST1012 generated file
|
||||
// AUTOGENERATED BY storj.io/dbx
|
||||
// DO NOT EDIT.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user