It runs linters in parallel, uses caching, supports YAML configuration, integrates with all major IDEs, and includes over a hundred linters. ◦ https://golangci-lint.run/ • ビルトインされた複数のLinterを同時に実⾏し、結果をまとめて出⼒してくれる • 設定は1つのファイル( .golanci.yml etc. )に統合されており、それぞれのLinterの調整が可能。 Golangci-lint Motivation 6
を必要な分作成する a. https://pkg.go.dev/golang.org/x/tools/go/analysis#Analyzer 2. unitchecker.Main() に作成した各&analysis.Analyzer{}を渡す go vet のカスタム vet tool の作成と使⽤⽅法 Multi linter with config using analysis package 12
ResultType: reflect.TypeOf((*Config)(nil)) として、全てのLinter⽤Analyzerに設定を伝播さ せる How to implement "Multi linter with config" Multi linter with config using analysis package 19