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 exception for version #10

Merged
merged 5 commits into from
Mar 6, 2019
Merged

Add exception for version #10

merged 5 commits into from
Mar 6, 2019

Conversation

ww-daniel-mora
Copy link
Contributor

Current best practice for setting the version of a Go executable requires a global variable. This change adds a narrow exception for variables name Version exactly. It also adds tests to verify that and updates to README to explicitly state the permitted exceptions.

@codecov-io
Copy link

codecov-io commented Mar 4, 2019

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   59.15%   59.15%           
=======================================
  Files           2        2           
  Lines          71       71           
=======================================
  Hits           42       42           
  Misses         27       27           
  Partials        2        2
Impacted Files Coverage Δ
check_no_globals.go 91.3% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abbdf6e...935dc81. Read the comment docs.

Copy link
Owner

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

@ww-daniel-mora Thanks for submitting this change! Got one suggestion below otherwise this looks great. Thanks for including tests too.

README.md Outdated Show resolved Hide resolved
Copy link
Owner

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

@leighmcculloch leighmcculloch merged commit 7c3491d into leighmcculloch:master Mar 6, 2019
@leighmcculloch
Copy link
Owner

Thanks @ww-daniel-mora !

@ww-daniel-mora ww-daniel-mora deleted the review/add-exception-for-version branch March 6, 2019 16:28
@ww-daniel-mora
Copy link
Contributor Author

@leighmcculloch thanks!

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.

3 participants