Skip to content

Commit

Permalink
Add golangci-lint runner
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Apr 30, 2020
1 parent 9ce06bc commit 3ac85c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/golangcilint/config/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package config

type Config struct {
}
13 changes: 13 additions & 0 deletions pkg/golangcilint/runner.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package golangcilint

import "github.com/nakabonne/golintui/pkg/config"

type Runner struct {
Args []string
Config *config.Config
}

func NewRunner(args []string) *Runner {
// TODO: Automatically read config from golangci settings file.
return &Runner{Args: args, Config: &config.Config{}}
}

0 comments on commit 3ac85c0

Please sign in to comment.