Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add golangci + gofmt and fix the errors #78

Merged
merged 5 commits into from
Jul 5, 2020

Conversation

kaplanelad
Copy link
Contributor

What type of PR is this?

/Feature

What this PR does / why we need it:
Implement golangci-lint and gofmt + fix recomandation

@kaplanelad kaplanelad requested a review from cregev July 5, 2020 06:26
@kaplanelad kaplanelad self-assigned this Jul 5, 2020
metrics, found := app.metrics["ec2"]
if !found {
return nil
log.WithField("resource_name", "ec2").Info("resource not configure")
Copy link
Contributor

Choose a reason for hiding this comment

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

resource not configure -> resource was not configured

resource, found := app.resources["iamLastActivity"]
if !found {
return nil
log.WithField("resource_name", "iamLastActivity").Info("resource not configure")
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above "not confiure" -> "was not configured"

metrics, found := app.metrics["elb"]
if !found {
return nil
log.WithField("resource_name", "elb").Info("resource not configure")
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above for the text.

resource, found := app.resources["iamLastActivity"]
if !found {
return nil
log.WithField("resource_name", "iamLastActivity").Info("resource not configure")
return
}

if _, ok := app.global["iamLastActivity"]; ok {
log.Debug(fmt.Sprintf("skip %s detection", resource.Description))
Copy link
Contributor

Choose a reason for hiding this comment

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

skip -> skipping

metrics, found := app.metrics["elbv2"]
if !found {
return nil
log.WithField("resource_name", "elbv2").Info("resource not configure")
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Copy link
Contributor

@cregev cregev left a comment

Choose a reason for hiding this comment

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

LGTM

@cregev cregev added the lgtm label Jul 5, 2020
@kaplanelad kaplanelad merged commit 11cbb5e into master Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants