1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-29 22:28:23 +02:00

Fix package level type checking

This commit is contained in:
mgechev
2018-05-31 19:42:58 -07:00
parent 27994a0736
commit 64636caedd
6 changed files with 65 additions and 44 deletions

View File

@@ -26,7 +26,7 @@ Example:
func main() {
config := getConfig()
formatter := getFormatter()
files := getFiles()
packages := getPackages()
revive := lint.New(func(file string) ([]byte, error) {
return ioutil.ReadFile(file)
@@ -34,7 +34,7 @@ func main() {
lintingRules := getLintingRules(config)
failures, err := revive.Lint(files, lintingRules, *config)
failures, err := revive.Lint(packages, lintingRules, *config)
if err != nil {
fail(err.Error())
}