An open API service indexing awesome lists of open source software.

https://github.com/oxplot/go-x-analyzers


https://github.com/oxplot/go-x-analyzers

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# go-x-analyzers

`go-x-analyzers` is a standalone `multichecker` binary for analyzers in
`golang.org/x/tools/go/analysis/passes`.

The generated `main.go` is derived from `golang.org/x/tools`. Running
`go generate ./...` first advances that module to `@latest`, then scans direct
pass packages for exported `Analyzer` values and exported analyzer `Suite`
values. Add analyzer names to `excluded.txt`, one per line, before running
`go generate` to omit them from the generated multichecker.

```sh
go generate ./...
```

Build and run the checker:

```sh
go build -o go-x-analyzers .
./go-x-analyzers ./...
```