MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Lint

Method Lint

tools/mage/go.go:169–181  ·  view source on GitHub ↗

Lint lints all Go files.

()

Source from the content-addressed store, hash-verified

167
168// Lint lints all Go files.
169func (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.
184func (g Go) Quality() {

Callers 1

QualityMethod · 0.95

Calls 3

packageDirsMethod · 0.95
runGoToolFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected