From 79f0ad9612e13473351e6645644ec27e7045eced Mon Sep 17 00:00:00 2001 From: yuki0920 Date: Wed, 20 Dec 2023 22:10:21 +0900 Subject: [PATCH 1/3] Remove .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 865b20447422e0e47cc7407c918614ff46d00beb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~u?oUK42Bc!P;lw!c#99<8yrQSpfBJcbdeSWo$t~8lgnatmLh*3`7XJJw*Sy; zL`3_?^(fMbNDDX0!NS56`9?;WpTm8+&C`h7YG#`X&r$1Su^-z66`%rCfC^9nDzG92 z;v8>xD|#kA3KgIN>rlYH4+(C}!BXj;4g?fR2fxGo1vWo;LY;X~ujYEukMYrAMd0@LhZpaN82p}@B0ot^(@__z6g(ZZApP=P;F zK%3KW>hV%>wtl>x)h|)Cb%BF^Il|jd01`Wj_i#7tCtH9ySSnG0@khXAV4wm&Rp15Y C_7FY* From 16c1e889bc46a5861c38d02f149f26f6783cdc6e Mon Sep 17 00:00:00 2001 From: yuki0920 Date: Wed, 20 Dec 2023 22:17:57 +0900 Subject: [PATCH 2/3] Enable all rules --- go/.golangci.yaml | 115 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 go/.golangci.yaml diff --git a/go/.golangci.yaml b/go/.golangci.yaml new file mode 100644 index 00000000..1e347ac8 --- /dev/null +++ b/go/.golangci.yaml @@ -0,0 +1,115 @@ +linters: + enable: + - asasalint + - asciicheck + - bidichk + - bodyclose + - containedctx + - contextcheck + - cyclop + # - deadcode + - decorder + - depguard + - dogsled + - dupl + - dupword + - durationcheck + - errcheck + - errchkjson + - errname + - errorlint + - execinquery + - exhaustive + # - exhaustivestruct + - exhaustruct + - exportloopref + - forbidigo + - forcetypeassert + - funlen + - gci + - ginkgolinter + - gocheckcompilerdirectives + - gochecknoglobals + - gochecknoinits + - gochecksumtype + - gocognit + - goconst + - gocritic + - gocyclo + - godot + - godox + - goerr113 + - gofmt + - gofumpt + - goheader + - goimports + # - golint + - gomnd + - gomoddirectives + - gomodguard + - goprintffuncname + - gosec + - gosimple + - gosmopolitan + - govet + - grouper + # - ifshort + - importas + - inamedparam + - ineffassign + - interfacebloat + # - interfacer + - ireturn + - lll + - loggercheck + - maintidx + - makezero + # - maligned + - mirror + - misspell + - musttag + - nakedret + - nestif + - nilerr + - nilnil + - nlreturn + - noctx + - nolintlint + - nonamedreturns + # - nosnakecase + - nosprintfhostport + - paralleltest + - perfsprint + - prealloc + - predeclared + - promlinter + - protogetter + - reassign + - revive + - rowserrcheck + # - scopelint + - sloglint + - sqlclosecheck + - staticcheck + # - structcheck + - stylecheck + - tagalign + - tagliatelle + - tenv + - testableexamples + - testifylint + - testpackage + - thelper + - tparallel + - typecheck + - unconvert + - unparam + - unused + - usestdlibvars + # - varcheck + - varnamelen + - wastedassign + - whitespace + - wrapcheck + - wsl + - zerologlint From a34eddd80295b20b4b55daaee6ec0fe44c1bbecf Mon Sep 17 00:00:00 2001 From: yuki0920 Date: Wed, 20 Dec 2023 23:03:07 +0900 Subject: [PATCH 3/3] Disable rules of error --- go/.golangci.yaml | 71 +++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/go/.golangci.yaml b/go/.golangci.yaml index 1e347ac8..df3def13 100644 --- a/go/.golangci.yaml +++ b/go/.golangci.yaml @@ -5,94 +5,72 @@ linters: - bidichk - bodyclose - containedctx - - contextcheck - - cyclop - # - deadcode + # - deadcode(deprecated) - decorder - - depguard - dogsled - dupl - dupword - durationcheck - - errcheck - - errchkjson - errname - errorlint - execinquery - - exhaustive - # - exhaustivestruct - - exhaustruct + # - exhaustivestruct(deprecated) - exportloopref - forbidigo - forcetypeassert - - funlen - - gci - ginkgolinter - gocheckcompilerdirectives - - gochecknoglobals - gochecknoinits - gochecksumtype - gocognit - goconst - - gocritic - gocyclo - godot - - godox - goerr113 - gofmt - gofumpt - goheader - goimports - # - golint - - gomnd + # - golint(deprecated) - gomoddirectives - gomodguard - goprintffuncname - - gosec - gosimple - gosmopolitan - govet - grouper - # - ifshort + # - ifshort(deprecated) - importas - inamedparam - ineffassign - interfacebloat - # - interfacer + # - interfacer(deprecated) - ireturn - - lll - loggercheck - maintidx - makezero - # - maligned + # - maligned(deprecated) - mirror - misspell - musttag - nakedret - - nestif - nilerr - nilnil - - nlreturn - noctx - nolintlint - nonamedreturns - # - nosnakecase + # - nosnakecase(deprecated) - nosprintfhostport - - paralleltest - perfsprint - - prealloc - predeclared - promlinter - protogetter - reassign - - revive - - rowserrcheck - # - scopelint + # - scopelint(deprecated) - sloglint - sqlclosecheck - staticcheck - # - structcheck - - stylecheck + # - structcheck(deprecated) - tagalign - tagliatelle - tenv @@ -103,13 +81,34 @@ linters: - tparallel - typecheck - unconvert - - unparam - unused - - usestdlibvars - # - varcheck - - varnamelen + # - varcheck(deprecated) - wastedassign - whitespace + - zerologlint + disable: + - contextcheck + - depguard + - errchkjson + - exhaustive + - exhaustruct + - funlen + - gci + - gochecknoglobals + - gocritic + - godox + - gomnd + - gosec + - lll + - nestif + - nlreturn + - paralleltest + - prealloc + - revive + - rowserrcheck + - stylecheck + - unparam + - usestdlibvars + - varnamelen - wrapcheck - wsl - - zerologlint