Fix #124: support unparam linter

1. Support unparam linter and fix found issues
2. Replace forked mvdan.cc/lint and mvdan.cc/interfacer with the
upstream ones
3. Minimize forked megacheck: move the most of it's code to this repo
4. Use golang.org/x/tools/go/ssa import path instead of custom fork
paths
5. In golang.org/x/tools/go/{ssa,callgraph} use changed code from
honnef.co/go/tools
6. Add megacheck.check-unexported option: it found some issues in
the repo, fixed them all
This commit is contained in:
Denis Isaev 2018-06-29 00:12:30 +03:00 committed by Isaev Denis
parent 70193b9b4d
commit a6b91ccc77
97 changed files with 1839 additions and 439 deletions

View file

@ -1,12 +1,12 @@
package linter
import (
"github.com/golangci/go-tools/ssa"
"github.com/golangci/golangci-lint/pkg/config"
"github.com/golangci/golangci-lint/pkg/lint/astcache"
"github.com/golangci/golangci-lint/pkg/logutils"
"github.com/golangci/golangci-lint/pkg/packages"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/ssa"
)
type Context struct {