feat(ci): add a bunch more linters

This commit is contained in:
sentriz
2023-09-22 19:05:20 +02:00
parent 33f1f2e0cf
commit e3dd812b6c
37 changed files with 233 additions and 139 deletions

View File

@@ -21,6 +21,8 @@ func randKey() string {
}
func TestGetSetting(t *testing.T) {
t.Parallel()
key := SettingKey(randKey())
value := "howdy"

View File

@@ -1,5 +1,3 @@
// Package db provides database helpers and models
//
//nolint:lll // struct tags get very long and can't be split
package db
@@ -238,7 +236,7 @@ func (a *Album) GenreStrings() []string {
}
func (a *Album) ArtistsStrings() []string {
var artists = append([]*Artist(nil), a.Artists...)
artists := append([]*Artist(nil), a.Artists...)
sort.Slice(artists, func(i, j int) bool {
return artists[i].ID < artists[j].ID
})