cogolabs/fleet2kubes

View on GitHub
pkg/unit/validate.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Unit.ValidateAll has 5 return statements (exceeds 4 allowed).
Open

func (u *Unit) ValidateAll() error {
    if err := u.ValidateKeys(); err != nil {
        return err
    }
    if err := u.ValidateExecStartPre(); err != nil {
Severity: Major
Found in pkg/unit/validate.go - About 35 mins to fix

    exported method Unit.ValidateKeys should have comment or be unexported
    Open

    func (u *Unit) ValidateKeys() error {
    Severity: Minor
    Found in pkg/unit/validate.go by golint

    exported method Unit.ValidateExecStart should have comment or be unexported
    Open

    func (u *Unit) ValidateExecStart() error {
    Severity: Minor
    Found in pkg/unit/validate.go by golint

    exported method Unit.ValidateExecStartPost should have comment or be unexported
    Open

    func (u *Unit) ValidateExecStartPost() error {
    Severity: Minor
    Found in pkg/unit/validate.go by golint

    exported method Unit.ValidateAll should have comment or be unexported
    Open

    func (u *Unit) ValidateAll() error {
    Severity: Minor
    Found in pkg/unit/validate.go by golint

    exported method Unit.ValidateExecStartPre should have comment or be unexported
    Open

    func (u *Unit) ValidateExecStartPre() error {
    Severity: Minor
    Found in pkg/unit/validate.go by golint

    There are no issues that match your filters.

    Category
    Status