Skip to content

Commit adfa9f9

Browse files
committed
💩👌 make lint happy
1 parent d8bc336 commit adfa9f9

6 files changed

Lines changed: 12 additions & 34 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ linters:
1818
fast: false
1919
enable:
2020
- bodyclose
21-
- deadcode
2221
- depguard
2322
- dogsled
2423
- errcheck
@@ -39,13 +38,11 @@ linters:
3938
- nolintlint
4039
- rowserrcheck
4140
- staticcheck
42-
- structcheck
4341
- stylecheck
4442
- typecheck
4543
- unconvert
4644
- unparam
4745
- unused
48-
- varcheck
4946
- whitespace
5047
- prealloc
5148
- predeclared

kanban/gen/banner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package main generates banner.go
12
package main
23

34
import (

plugin/hyaku/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Package hyaku 百人一首
2+
3+
//nolint: asciicheck
4+
25
package hyaku
36

47
import (
@@ -23,7 +26,6 @@ import (
2326

2427
const bed = "https://gitcode.net/u011570312/OguraHyakuninIsshu/-/raw/master/"
2528

26-
// nolint: asciicheck
2729
type line struct {
2830
番号, 歌人, 上の句, 下の句, 上の句ひらがな, 下の句ひらがな string
2931
}

plugin/qqwife/command.go

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Package qqwife 娶群友 基于“翻牌”和江林大佬的“群老婆”插件魔改作品,文案采用了Hana的zbp娶群友文案
2+
3+
//nolint: asciicheck
4+
25
package qqwife
36

47
import (
@@ -29,8 +32,6 @@ import (
2932
// 货币系统
3033
)
3134

32-
// nolint: asciicheck
33-
//nolint: asciicheck
3435
type 婚姻登记 struct {
3536
db *sql.Sqlite
3637
sync.RWMutex
@@ -56,8 +57,6 @@ type userinfo struct {
5657
}
5758

5859
var (
59-
// nolint: asciicheck
60-
//nolint: asciicheck
6160
民政局 = &婚姻登记{
6261
db: &sql.Sqlite{},
6362
}
@@ -301,8 +300,6 @@ func init() {
301300
})
302301
}
303302

304-
// nolint: asciicheck
305-
//nolint: asciicheck
306303
func (sql *婚姻登记) 查看设置(gid int64) (dbinfo updateinfo, err error) {
307304
sql.Lock()
308305
defer sql.Unlock()
@@ -324,16 +321,12 @@ func (sql *婚姻登记) 查看设置(gid int64) (dbinfo updateinfo, err error)
324321
return
325322
}
326323

327-
// nolint: asciicheck
328-
//nolint: asciicheck
329324
func (sql *婚姻登记) 更新设置(dbinfo updateinfo) error {
330325
sql.Lock()
331326
defer sql.Unlock()
332327
return sql.db.Insert("updateinfo", &dbinfo)
333328
}
334329

335-
// nolint: asciicheck
336-
//nolint: asciicheck
337330
func (sql *婚姻登记) 开门时间(gid int64) error {
338331
grouInfo, err := sql.查看设置(gid)
339332
if err != nil {
@@ -354,8 +347,6 @@ func (sql *婚姻登记) 开门时间(gid int64) error {
354347
return nil
355348
}
356349

357-
// nolint: asciicheck
358-
//nolint: asciicheck
359350
func (sql *婚姻登记) 查户口(gid, uid int64) (info userinfo, err error) {
360351
sql.Lock()
361352
defer sql.Unlock()
@@ -373,8 +364,6 @@ func (sql *婚姻登记) 查户口(gid, uid int64) (info userinfo, err error) {
373364
return
374365
}
375366

376-
// nolint: asciicheck
377-
//nolint: asciicheck
378367
// 民政局登记数据
379368
func (sql *婚姻登记) 登记(gid, uid, target int64, username, targetname string) error {
380369
sql.Lock()
@@ -390,8 +379,6 @@ func (sql *婚姻登记) 登记(gid, uid, target int64, username, targetname str
390379
return sql.db.Insert(gidstr, &uidinfo)
391380
}
392381

393-
// nolint: asciicheck
394-
//nolint: asciicheck
395382
func (sql *婚姻登记) 花名册(gid int64) (list [][4]string, err error) {
396383
sql.Lock()
397384
defer sql.Unlock()
@@ -437,8 +424,6 @@ func slicename(name string, canvas *gg.Context) (resultname string) {
437424
return
438425
}
439426

440-
// nolint: asciicheck
441-
//nolint: asciicheck
442427
func (sql *婚姻登记) 清理花名册(gid ...string) error {
443428
sql.Lock()
444429
defer sql.Unlock()

plugin/qqwife/favorSystem.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//nolint: asciicheck
2+
13
package qqwife
24

35
import (
@@ -12,6 +14,7 @@ import (
1214
"github.com/FloatTech/zbputils/ctxext"
1315
zero "github.com/wdvxdr1123/ZeroBot"
1416
"github.com/wdvxdr1123/ZeroBot/message"
17+
1518
// 画图
1619
"github.com/Coloured-glaze/gg"
1720
"github.com/FloatTech/floatbox/file"
@@ -192,8 +195,6 @@ func init() {
192195
})
193196
}
194197

195-
// nolint: asciicheck
196-
//nolint: asciicheck
197198
func (sql *婚姻登记) 查好感度(uid, target int64) (int, error) {
198199
sql.Lock()
199200
defer sql.Unlock()
@@ -246,8 +247,6 @@ func (sql *婚姻登记) getGroupFavorability(uid int64) (list favorList, err er
246247
return
247248
}
248249

249-
// nolint: asciicheck
250-
//nolint: asciicheck
251250
// 设置好感度 正增负减
252251
func (sql *婚姻登记) 更新好感度(uid, target int64, score int) (favor int, err error) {
253252
sql.Lock()

plugin/qqwife/function.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//nolint: asciicheck
2+
13
package qqwife
24

35
import (
@@ -359,8 +361,6 @@ func init() {
359361
})
360362
}
361363

362-
// nolint: asciicheck
363-
// nolint: asciicheck
364364
func (sql *婚姻登记) 判断CD(gid, uid int64, model string, cdtime float64) (ok bool, err error) {
365365
sql.Lock()
366366
defer sql.Unlock()
@@ -386,8 +386,6 @@ func (sql *婚姻登记) 判断CD(gid, uid int64, model string, cdtime float64)
386386
return false, nil
387387
}
388388

389-
// nolint: asciicheck
390-
// nolint: asciicheck
391389
func (sql *婚姻登记) 记录CD(gid, uid int64, mode string) error {
392390
sql.Lock()
393391
defer sql.Unlock()
@@ -399,8 +397,6 @@ func (sql *婚姻登记) 记录CD(gid, uid int64, mode string) error {
399397
})
400398
}
401399

402-
// nolint: asciicheck
403-
// nolint: asciicheck
404400
func (sql *婚姻登记) 离婚休妻(gid, wife int64) error {
405401
sql.Lock()
406402
defer sql.Unlock()
@@ -409,8 +405,6 @@ func (sql *婚姻登记) 离婚休妻(gid, wife int64) error {
409405
return sql.db.Del(gidstr, "where target = "+wifestr)
410406
}
411407

412-
// nolint: asciicheck
413-
// nolint: asciicheck
414408
func (sql *婚姻登记) 离婚休夫(gid, husband int64) error {
415409
sql.Lock()
416410
defer sql.Unlock()

0 commit comments

Comments
 (0)