Skip to content

Upgraded all dependencies; switched to Glide; modified types to int64…#132

Open
SamuelMarks wants to merge 4 commits intobradleyfalzon:masterfrom
SamuelMarks:master
Open

Upgraded all dependencies; switched to Glide; modified types to int64…#132
SamuelMarks wants to merge 4 commits intobradleyfalzon:masterfrom
SamuelMarks:master

Conversation

@SamuelMarks
Copy link
Copy Markdown

No description provided.

… for better compatibility with new dependencies
Comment thread main.go Outdated
rootLogger := logger.New(os.Stdout, build, os.Getenv("LOGGER_ENV"), os.Getenv("LOGGER_SENTRY_DSN"))
logger := rootLogger.With("area", "main")
logger.With("build", build).Info("starting gopherci")
logger_ := rootLogger.With("area", "main")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var logger_ should be logger

Comment thread main.go Outdated
}

db, err := db.NewSQLDB(sqlDB, os.Getenv("DB_DRIVER"))
db_, err := db.NewSQLDB(sqlDB, os.Getenv("DB_DRIVER"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var db_ should be db

Comment thread main.go Outdated
var queuePush = make(chan interface{})

gh, err := github.New(rootLogger, analyse, db, queuePush, int(integrationID), integrationKey, os.Getenv("GITHUB_WEBHOOK_SECRET"), os.Getenv("GCI_BASE_URL"))
gh_, err := github.New(rootLogger, analyse, db_, queuePush, integrationID, integrationKey, os.Getenv("GITHUB_WEBHOOK_SECRET"), os.Getenv("GCI_BASE_URL"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var gh_ should be gh

Comment thread main.go Outdated

// Web routes
web, err := web.NewWeb(rootLogger.With("area", "web"), db, gh)
web_, err := web.NewWeb(rootLogger.With("area", "web"), db_, gh_)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var web_ should be web

Comment thread internal/github/handlers_test.go Outdated
)
queue := queue.NewMemoryQueue(logger.Testing())
queue.Wait(context.Background(), &wg, c, func(job interface{}) {})
queue_ := queue.NewMemoryQueue(logger.Testing())
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var queue_ should be queue

}

func (g *GitHub) NewInstallation(installationID int) (*Installation, error) {
func (g *GitHub) NewInstallation(installationID int64) (*Installation, error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: exported method GitHub.NewInstallation should have comment or be unexported

Comment thread internal/github/reporters_test.go Outdated
}
json, _ := json.Marshal(comments)
fmt.Fprint(w, string(json))
json_, _ := json.Marshal(comments)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var json_ should be json

Comment thread internal/github/reporters_test.go Outdated
json, _ := json.Marshal(comments)
fmt.Fprint(w, string(json))
var comments []*github.PullRequestComment
json_, _ := json.Marshal(comments)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var json_ should be json

Comment thread internal/queue/gcp-pubsub.go Outdated
func (q *GCPPubSubQueue) receive(ctx context.Context, f func(interface{})) {
err := q.subscription.Receive(ctx, func(ctx xContext.Context, msg *pubsub.Message) {
logger := q.logger.With("messageID", msg.ID)
logger_ := q.logger.With("messageID", msg.ID)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var logger_ should be logger

Comment thread internal/web/web.go Outdated
}

logger := web.logger.With("analysisID", analysisID)
logger_ := web.logger.With("analysisID", analysisID)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golint: don't use underscores in Go names; var logger_ should be logger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant