Commit Graph

7 Commits (master)

Author SHA1 Message Date
Tian 3cf1e63e21
build: address all lint issues by v2 (#20804)
* fix QF1011: could omit type *os.File from declaration; it will be inferred from the right-hand side

* fix QF1012: Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))

* fix QF1001: could apply De Morgan's law

* fix QF1003: could use tagged switch

* fix weakCond: suspicious ; nil check may not be enough, check for len (gocritic)

* fix docStub: silencing go lint doc-comment warnings is unadvised

* fix builtinShadow: shadowing of predeclared identifier: error

* fix importShadow: shadow of imported package

* fix nestingReduce: invert if cond, replace body with , move old body after the statement

* useless-break: useless break in case clause (revive)

* Clear the redundant content in golangci.yaml file
2025-05-23 17:31:28 -07:00
Steven Powell eea20cd06f fix lint errors 2024-11-12 10:18:20 -05:00
Steven Powell 2a99b2f946 fix out of bound exceptions 2021-11-16 11:40:02 -05:00
Medya Gh 6aa7abc24a fix lint issues on master 2021-08-12 17:38:24 -07:00
Kenta Iso 43b1dfd433 Change barChart color and add benchmark description to docs of benchmark 2021-04-30 06:41:44 +09:00
Kent Iso 67da2c88ce Fix lint error 2021-04-29 01:06:27 +09:00
Kent Iso 52ddca0ea4 divide idle only benchmark and autopause benchmark of cpu usage 2021-04-29 01:06:27 +09:00