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

Fix line number for variabled inside var group #9

Merged

Conversation

leonklingele
Copy link
Contributor

Previously, we would show the line number of the 'var' token, not
the correct line where the variable is actually specified.

Previously, we would show the line number of the 'var' token, not
the correct line where the variable is actually specified.
@codecov-io
Copy link

codecov-io commented Jan 17, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #9   +/-   ##
=======================================
  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 5090db6...1f78a5d. Read the comment docs.

@leonklingele
Copy link
Contributor Author

Fixed typo in commit message.

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.

Nice! Thanks for improving this. It's definitely more helpful to have the line number of where the variable is defined.

@leighmcculloch leighmcculloch merged commit abbdf6e into leighmcculloch:master Jan 18, 2019
leonklingele added a commit to leonklingele/gometalinter that referenced this pull request Jan 21, 2019
This fixes the line number for variables inside a 'var' group.
See leighmcculloch/gochecknoglobals#9
alecthomas pushed a commit to alecthomas/gometalinter that referenced this pull request Jan 21, 2019
This fixes the line number for variables inside a 'var' group.
See leighmcculloch/gochecknoglobals#9
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