Skip to content

Conversation

@joshmarsh
Copy link
Contributor

@joshmarsh joshmarsh commented Feb 19, 2020

Proposed changes

Enabled gofmtout and golangci-lint. Formatted code and fixed linting issues.

Merge #74 first.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (changes to code, which do not change application behavior)

Checklist

  • I have filled out this PR template
  • I have read the CONTRIBUTING doc
  • I have added automated tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (README.md, inline comments, etc.)
  • I have updated the CHANGELOG.md under a ## next release, with a short summary of my changes

Relevant Links

Further comments

@joshmarsh joshmarsh changed the title Feature/linting [WIP] Feature/linting Feb 19, 2020
@joshmarsh joshmarsh changed the title [WIP] Feature/linting Feature/linting Feb 20, 2020
log.Println("Failed opening file", path, err)
continue
}
defer file.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

the linting on these deferred file close calls is kind of annoying. I think in the dce repo I just did //nolint comments on them.
I might reconsider whether a failed file close is really a fatal error (line 64). I guess I'm not sure under what conditions that could happen (like if the file disappears?)

Copy link
Contributor

@eschwartz eschwartz left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@joshmarsh joshmarsh merged commit 6c831a2 into Optum:master Feb 24, 2020
@joshmarsh joshmarsh deleted the feature/linting branch February 24, 2020 20:50
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.

2 participants