pedroMMM/goss

View on GitHub
resource/http.go

Summary

Maintainability
A
0 mins
Test Coverage

exported function NewHTTP should have comment or be unexported
Open

func NewHTTP(sysHTTP system.HTTP, config util.Config) (*HTTP, error) {
Severity: Minor
Found in resource/http.go by golint

exported method HTTP.ID should have comment or be unexported
Open

func (u *HTTP) ID() string      { return u.HTTP }
Severity: Minor
Found in resource/http.go by golint

exported method HTTP.GetMeta should have comment or be unexported
Open

func (r *HTTP) GetMeta() meta    { return r.Meta }
Severity: Minor
Found in resource/http.go by golint

receiver name r should be consistent with previous receiver name u for HTTP
Open

func (r *HTTP) GetMeta() meta    { return r.Meta }
Severity: Minor
Found in resource/http.go by golint

exported method HTTP.Validate should have comment or be unexported
Open

func (u *HTTP) Validate(sys *system.System) []TestResult {
Severity: Minor
Found in resource/http.go by golint

exported type HTTP should have comment or be unexported
Open

type HTTP struct {
Severity: Minor
Found in resource/http.go by golint

comment on exported method HTTP.GetTitle should be of the form "GetTitle ..."
Open

// FIXME: Can this be refactored?
Severity: Minor
Found in resource/http.go by golint

receiver name r should be consistent with previous receiver name u for HTTP
Open

func (r *HTTP) GetTitle() string { return r.Title }
Severity: Minor
Found in resource/http.go by golint

exported method HTTP.SetID should have comment or be unexported
Open

func (u *HTTP) SetID(id string) { u.HTTP = id }
Severity: Minor
Found in resource/http.go by golint

There are no issues that match your filters.

Category
Status