Preparing report...

Report for github.com/thestormforge/optimize-go

A+    Excellent!    Found 4 issues across 26 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo96%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint88%

Golint is a linter for Go source code.

    • optimize-go/pkg/api/experiments/v1alpha1/api.go
    • Line 81: warning: exported method Metadata.UnmarshalJSON should have comment or be unexported (golint)
    • Line 102: warning: exported type ErrorType should have comment or be unexported (golint)
    • Line 105: warning: exported const ErrExperimentNameInvalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 153: warning: exported type ServerMeta should have comment or be unexported (golint)
    • Line 157: warning: exported method ServerMeta.Unmarshal should have comment or be unexported (golint)
    • optimize-go/pkg/api/experiments/v1alpha1/experiment.go
    • Line 44: warning: exported type Optimization should have comment or be unexported (golint)
    • Line 51: warning: exported type Metric should have comment or be unexported (golint)
    • Line 60: warning: exported type ConstraintType should have comment or be unexported (golint)
    • Line 63: warning: exported const ConstraintSum should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported type SumConstraintParameter should have comment or be unexported (golint)
    • Line 74: warning: exported type SumConstraint should have comment or be unexported (golint)
    • Line 83: warning: exported type OrderConstraint should have comment or be unexported (golint)
    • Line 90: warning: exported type Constraint should have comment or be unexported (golint)
    • Line 99: warning: exported type ParameterType should have comment or be unexported (golint)
    • Line 102: warning: exported const ParameterTypeInteger should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: exported type Bounds should have comment or be unexported (golint)
    • Line 126: warning: exported type ExperimentMeta should have comment or be unexported (golint)
    • Line 134: warning: exported method ExperimentMeta.SetLocation should have comment or be unexported (golint)
    • Line 135: warning: exported method ExperimentMeta.SetLastModified should have comment or be unexported (golint)
    • Line 138: warning: exported method ExperimentMeta.SetLink should have comment or be unexported (golint)
    • Line 150: warning: exported method ExperimentMeta.Headers should have comment or be unexported (golint)
    • Line 194: warning: exported type ExperimentItem should have comment or be unexported (golint)
    • Line 201: warning: exported type ExperimentListMeta should have comment or be unexported (golint)
    • Line 206: warning: exported method ExperimentListMeta.SetLocation should have comment or be unexported (golint)
    • Line 207: warning: exported method ExperimentListMeta.SetLastModified should have comment or be unexported (golint)
    • Line 208: warning: exported method ExperimentListMeta.SetLink should have comment or be unexported (golint)
    • Line 217: warning: exported type ExperimentListQuery should have comment or be unexported (golint)
    • Line 223: warning: exported method ExperimentListQuery.Encode should have comment or be unexported (golint)
    • Line 245: warning: exported type ExperimentList should have comment or be unexported (golint)
    • Line 252: warning: exported type ExperimentLabels should have comment or be unexported (golint)
    • optimize-go/pkg/api/experiments/v1alpha1/trial.go
    • Line 29: warning: exported type TrialMeta should have comment or be unexported (golint)
    • Line 34: warning: exported method TrialMeta.SetLocation should have comment or be unexported (golint)
    • Line 35: warning: exported method TrialMeta.SetLastModified should have comment or be unexported (golint)
    • Line 36: warning: exported method TrialMeta.SetLink should have comment or be unexported (golint)
    • Line 43: warning: exported type Assignment should have comment or be unexported (golint)
    • Line 50: warning: exported type TrialAssignments should have comment or be unexported (golint)
    • Line 59: warning: exported type Value should have comment or be unexported (golint)
    • Line 68: warning: exported type TrialValues should have comment or be unexported (golint)
    • Line 83: warning: exported type TrialStatus should have comment or be unexported (golint)
    • Line 86: warning: exported const TrialStaged should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported type TrialItem should have comment or be unexported (golint)
    • Line 121: warning: exported type TrialListQuery should have comment or be unexported (golint)
    • Line 128: warning: exported method TrialListQuery.Encode should have comment or be unexported (golint)
    • Line 150: warning: exported type TrialList should have comment or be unexported (golint)
    • Line 159: warning: exported type TrialLabels should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!