Lint lints all Go files.
()
| 167 | |
| 168 | // Lint lints all Go files. |
| 169 | func (g Go) Lint() error { |
| 170 | dirs, err := g.packageDirs() |
| 171 | if err != nil { |
| 172 | return err |
| 173 | } |
| 174 | if len(dirs) == 0 { |
| 175 | return nil |
| 176 | } |
| 177 | if mg.Verbose() { |
| 178 | fmt.Printf("Linting %d Go packages\n", len(dirs)) |
| 179 | } |
| 180 | return runGoTool(append([]string{golangciLint, "run"}, dirs...)...) |
| 181 | } |
| 182 | |
| 183 | // Quality runs code quality checks on Go files. |
| 184 | func (g Go) Quality() { |
no test coverage detected