Skip to content

Commit

Permalink
internal/cmd/asmdecl: standalone asmdecl checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Jan 13, 2019
1 parent cdf63e2 commit a23fe8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/cmd/asmdecl/main.go
Original file line number Diff line number Diff line change
@@ -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) }
3 changes: 3 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a23fe8e

Please sign in to comment.