commit | a019f6b7c5bfcffdf421924fc0ddb74b867a53f2 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Thu Oct 18 17:00:01 2018 -0400 |
committer | Alan Donovan <adonovan@google.com> | Fri Oct 19 17:43:12 2018 +0000 |
tree | b446730a5606335c68ab5c0a98b08032b042f177 | |
parent | 45f20876fcd73d9671d0ccacfce5c573ba28e893 [diff] |
go/analysis/internal/analysisflags: common flag handling The analysisflags package provides a function to help ensure that all drivers support consistent command-line interfaces. In particular, -analyzer.enable flags use tristate logic as in vet, and the -flags flag dumps a list of flags in JSON for use by 'go vet' and other build systems. This code is in a separate package from internal/checker (the common parts of multichecker, singlechecker) because we don't want the forthcoming vet-lite (formerly known as doctor) driver to have an unnecessary dependency on go/packages. (When go/packages is promoted to the standard library we can consolidate them.) + Test of tristate analyzer selection logic. Change-Id: I5ea4e556e0f56505df06eb8fa9dd9eed884a1b47 Reviewed-on: https://go-review.googlesource.com/c/143197 Reviewed-by: Michael Matloob <matloob@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.