From 162c92d52484f18c68490d68fd1f375b59bea3c8 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 15 Jul 2025 00:03:01 +0700 Subject: all: replace fieldalignment and shadow with internal gocheck command Program gocheck implement go static analysis using [Analyzer] that are not included in the default go vet. See package [lib/goanalysis] for more information. [Analyzer]: https://pkg.go.dev/golang.org/x/tools/go/analysis#hdr-Analyzer [lib/goanalysis]: https://pkg.go.dev/git.sr.ht/~shulhan/pakakeh.go/lib/goanalysis/ --- internal/cmd/gocheck/main.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/cmd/gocheck/main.go (limited to 'internal/cmd') diff --git a/internal/cmd/gocheck/main.go b/internal/cmd/gocheck/main.go new file mode 100644 index 0000000..956e790 --- /dev/null +++ b/internal/cmd/gocheck/main.go @@ -0,0 +1,17 @@ +// SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: GPL-3.0-or-later + +// Program gocheck implement go static analysis using [Analyzer] that are not +// included in the default go vet. +// See package [lib/goanalysis] for more information. +// +// [Analyzer]: https://pkg.go.dev/golang.org/x/tools/go/analysis#hdr-Analyzer +// [lib/goanalysis]: https://pkg.go.dev/git.sr.ht/~shulhan/pakakeh.go/lib/goanalysis/ +package main + +import "git.sr.ht/~shulhan/pakakeh.go/lib/goanalysis" + +func main() { + goanalysis.Check() +} -- cgit v1.3