Skip to content

Commit

Permalink
cmd/makedocs: use lintpack, fix build (go-critic#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
fexolm authored and quasilyte committed Feb 2, 2019
1 parent c986ee5 commit 66e5832
Show file tree
Hide file tree
Showing 3 changed files with 828 additions and 594 deletions.
9 changes: 4 additions & 5 deletions cmd/makedocs/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//+build ignore

package main

import (
Expand All @@ -8,7 +6,8 @@ import (
"log"
"text/template"

"github.com/go-critic/go-critic/lint"
_ "github.com/go-critic/go-critic/checkers"
"github.com/go-lintpack/lintpack"
)

const (
Expand All @@ -20,9 +19,9 @@ func main() {
tmpl := template.Must(template.ParseFiles(templatesPath + "overview.md.tmpl"))
buf := bytes.Buffer{}
err := tmpl.Execute(&buf, struct {
Rules []*lint.Rule
Checkers []*lintpack.CheckerInfo
}{
Rules: lint.RuleList(),
Checkers: lintpack.GetCheckersInfo(),
})
if err != nil {
log.Fatalf("render template: %v", err)
Expand Down
Loading

0 comments on commit 66e5832

Please sign in to comment.