11
internal/cmd/asmdecl/main.go
Normal file
11
internal/cmd/asmdecl/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Command asmdecl reports mismatches between assembly files and Go declarations.
|
||||
//
|
||||
// Standalone version of the static analyzer in go vet.
|
||||
package main
|
||||
|
||||
import (
|
||||
"golang.org/x/tools/go/analysis/passes/asmdecl"
|
||||
"golang.org/x/tools/go/analysis/singlechecker"
|
||||
)
|
||||
|
||||
func main() { singlechecker.Main(asmdecl.Analyzer) }
|
||||
@@ -5,6 +5,9 @@ go get -u \
|
||||
golang.org/x/arch/x86/... \
|
||||
golang.org/x/tools/go/...
|
||||
|
||||
# Standalone version of the asmdecl analysis tool.
|
||||
go install ./internal/cmd/asmdecl
|
||||
|
||||
# Install golangci-lint
|
||||
golangci_lint_version='v1.12.3'
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
||||
|
||||
Reference in New Issue
Block a user