Enabled maligned linter
This commit is contained in:
parent
12c752a272
commit
cafb43aa17
@ -13,7 +13,6 @@ linters:
|
|||||||
- gocyclo
|
- gocyclo
|
||||||
- gocognit
|
- gocognit
|
||||||
- gosec
|
- gosec
|
||||||
- maligned
|
|
||||||
- stylecheck
|
- stylecheck
|
||||||
- funlen
|
- funlen
|
||||||
- wsl
|
- wsl
|
||||||
|
@ -21,7 +21,6 @@ type Group struct {
|
|||||||
Image Image `json:"image"`
|
Image Image `json:"image"`
|
||||||
Description string `json:"description" editable:"true" type:"textarea"`
|
Description string `json:"description" editable:"true" type:"textarea"`
|
||||||
Rules string `json:"rules" editable:"true" type:"textarea"`
|
Rules string `json:"rules" editable:"true" type:"textarea"`
|
||||||
Restricted bool `json:"restricted" editable:"true" tooltip:"Restricted groups can only be joined with the founder's permission."`
|
|
||||||
Tags []string `json:"tags" editable:"true"`
|
Tags []string `json:"tags" editable:"true"`
|
||||||
Members []*GroupMember `json:"members"`
|
Members []*GroupMember `json:"members"`
|
||||||
Neighbors []GroupID `json:"neighbors"`
|
Neighbors []GroupID `json:"neighbors"`
|
||||||
@ -36,6 +35,9 @@ type Group struct {
|
|||||||
|
|
||||||
// Mutex
|
// Mutex
|
||||||
membersMutex sync.Mutex
|
membersMutex sync.Mutex
|
||||||
|
|
||||||
|
// Moved this boolean field to the bottom because the structure consumes less bytes that way
|
||||||
|
Restricted bool `json:"restricted" editable:"true" tooltip:"Restricted groups can only be joined with the founder's permission."`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link returns the URI to the group page.
|
// Link returns the URI to the group page.
|
||||||
|
@ -9,10 +9,6 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/arn"
|
"github.com/animenotifier/notify.moe/arn"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
empty = struct{}{}
|
|
||||||
)
|
|
||||||
|
|
||||||
func Install(app *aero.Application) {
|
func Install(app *aero.Application) {
|
||||||
api := graphql.New(arn.DB)
|
api := graphql.New(arn.DB)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user