Update go dev dependencies (#22064)
`golangci-lint` [deprecated](https://github.com/golangci/golangci-lint/issues/1841) a bunch of linters, removed them.
This commit is contained in:
parent
cf27403e18
commit
0585ac3ac6
44 changed files with 72 additions and 68 deletions
|
@ -21,8 +21,10 @@ type contextKey struct {
|
|||
}
|
||||
|
||||
// enginedContextKey is a context key. It is used with context.Value() to get the current Engined for the context
|
||||
var enginedContextKey = &contextKey{"engined"}
|
||||
var _ Engined = &Context{}
|
||||
var (
|
||||
enginedContextKey = &contextKey{"engined"}
|
||||
_ Engined = &Context{}
|
||||
)
|
||||
|
||||
// Context represents a db context
|
||||
type Context struct {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2021 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/pull"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
// This migration added non-ideal indices to the action table which on larger datasets slowed things down
|
||||
// it has been superceded by v218.go
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
packages_model "code.gitea.io/gitea/models/packages"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"encoding/base32"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"encoding/base32"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_17 // nolint
|
||||
package v1_17 //nolint
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2021 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/builder"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_18 // nolint
|
||||
package v1_18 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2021 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_19 // nolint
|
||||
package v1_19 //nolint
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_19 // nolint
|
||||
package v1_19 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_6 // nolint
|
||||
package v1_6 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_6 // nolint
|
||||
package v1_6 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_6 // nolint
|
||||
package v1_6 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_7 // nolint
|
||||
package v1_7 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_7 // nolint
|
||||
package v1_7 //nolint
|
||||
|
||||
import "xorm.io/xorm"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_7 // nolint
|
||||
package v1_7 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/builder"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/migrations/base"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import "xorm.io/xorm"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_8 // nolint
|
||||
package v1_8 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_9 // nolint
|
||||
package v1_9 //nolint
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue