jelder/bownse

View on GitHub
heroku.go

Summary

Maintainability
A
0 mins
Test Coverage

exported type HerokuAppState should have comment or be unexported
Open

type HerokuAppState struct {
Severity: Minor
Found in heroku.go by golint

comment on exported method HerokuAppState.URL should be of the form "URL ..."
Open

// Return a GitHub compare URL if the repository is configured, otherwise just return the plain URL.
Severity: Minor
Found in heroku.go by golint

exported method HerokuAppState.SetPrevHead should have comment or be unexported
Open

func (state *HerokuAppState) SetPrevHead() {
Severity: Minor
Found in heroku.go by golint

func parameter appNameOrUuid should be appNameOrUUID
Open

func MustGetHerokuAppEnv(appNameOrUuid string, authToken string) (appEnv HerokuAppEnv) {
Severity: Minor
Found in heroku.go by golint

struct field Url should be URL
Open

    Url         string `schema:"url"`
Severity: Minor
Found in heroku.go by golint

exported method HerokuAppState.FetchEnv should have comment or be unexported
Open

func (state *HerokuAppState) FetchEnv() {
Severity: Minor
Found in heroku.go by golint

comment on exported function ParseWebhook should be of the form "ParseWebhook ..."
Open

// Given a request for Heroku DeployHook, return the current state of the app. This will include all fields from the request, all ENV vars for the app, and the commit hash of the previously deployed commit.
Severity: Minor
Found in heroku.go by golint

comment on exported function MustGetHerokuAppEnv should be of the form "MustGetHerokuAppEnv ..."
Open

// https://devcenter.heroku.com/articles/platform-api-reference#config-vars
Severity: Minor
Found in heroku.go by golint

exported type HerokuAppEnv should have comment or be unexported
Open

type HerokuAppEnv map[string]string
Severity: Minor
Found in heroku.go by golint

exported method HerokuAppState.GuessEnvironment should have comment or be unexported
Open

func (state *HerokuAppState) GuessEnvironment() {
Severity: Minor
Found in heroku.go by golint

There are no issues that match your filters.

Category
Status