ydb-platform / ydb-go-sdk

Pure Go native and database/sql driver for YDB
https://ydb.tech
Apache License 2.0
143 stars 77 forks source link

dev: Enable linters #917

Open asmyasnikov opened 10 months ago

asmyasnikov commented 10 months ago

Full list of disabled linters in golangci config (note: golangci version fixed as v1.55.2):

asmyasnikov commented 10 months ago

Lines of golangci output per linter

       9 forbidigo
       9 interfacebloat
      12 structcheck
      21 errname
      36 inamedparam
      36 maligned
      39 contextcheck
      42 maintidx
      66 gocognit
      66 wsl
      78 ifshort
      90 containedctx
      93 testableexamples
     156 gomnd
     165 forcetypeassert
     204 cyclop
     210 thelper
     278 funlen
     297 testpackage
     315 gochecknoglobals
     389 dupl
     417 golint
     948 scopelint
    1014 goerr113
    1077 ireturn
    1392 nonamedreturns
    1503 godot
    1608 paralleltest
    2469 wrapcheck
    2988 exhaustivestruct
    3066 varnamelen
    3156 exhaustive
    3495 depguard
    3816 exhaustruct
asmyasnikov commented 3 months ago

Need to update configs to last version of golangci-lint (v1.59.1) and fix any changes of checks list