tools/go/analysis
Alan Donovan a019f6b7c5 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>
2018-10-19 17:43:12 +00:00
..
analysistest go/analysis/cmd/analyze: install all analyzers 2018-10-19 17:03:54 +00:00
cmd/analyze go/analysis/internal/analysisflags: common flag handling 2018-10-19 17:43:12 +00:00
internal go/analysis/internal/analysisflags: common flag handling 2018-10-19 17:43:12 +00:00
multichecker go/analysis/internal/analysisflags: common flag handling 2018-10-19 17:43:12 +00:00
passes go/analysis/passes/shadow: adapt for analysis API 2018-10-19 17:13:52 +00:00
printf go/analysis/passes/printf: create printf pass 2018-10-15 19:09:06 +00:00
singlechecker go/analysis/internal/analysisflags: common flag handling 2018-10-19 17:43:12 +00:00
analysis.go go/analysis: write package documentation 2018-10-08 17:31:26 +00:00
doc.go go/analysis: doc: explain how to report diagnostics in raw text files 2018-10-19 17:04:33 +00:00
validate.go go/analysis: validate: report duplicates among analyzers (roots) 2018-10-11 19:55:00 +00:00