Skip to content

add clarifying error msg

codefactor.io / CodeFactor failed Jan 2, 2024 in 2s

4 issues fixed. 20 issues found.

Annotations

Check notice on line 353 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L353

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 487 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L487

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 262 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L262

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 579 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L454-L579

Complex Method

Check notice on line 267 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L267

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 267 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L267

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 262 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L262

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 508 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L508

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 493 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L493

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 368 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L368

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 353 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L353

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 493 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L493

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 508 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L508

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 282 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L282

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 487 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L487

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 282 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L282

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 360 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L360

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)

Check notice on line 368 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L368

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 447 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L326-L447

Complex Method

Check notice on line 360 in pkg/config/host.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pkg/config/host.go#L360

Omit unnecessary break at the end of case clause (unnecessary-stmt)