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: const dectection. #21

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Jan 22, 2021

Description

Use the filename and line as a key to store const position.

Motivation and Context

Fixes #20

How Has This Been Tested?

linux
$ for i in {1..100}; do GOARCH=amd64 GOOS=linux mnd ./... 2>&1 | grep splitter.go  | wc -l; done
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
darwin
$ for i in {1..10}; do GOARCH=amd64 GOOS=darwin mnd ./... 2>&1 | grep splitter.go  | wc -l; done
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
windows
$ for i in {1..10}; do GOARCH=amd64 GOOS=windows mnd ./... 2>&1 | grep splitter.go  | wc -l; done
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13

@ldez ldez requested a review from tommy-muehle as a code owner January 22, 2021 23:36
@codecov-io
Copy link

Codecov Report

Merging #21 (afc285c) into master (605e3d8) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   92.12%   92.20%   +0.07%     
==========================================
  Files           7        7              
  Lines         216      218       +2     
==========================================
+ Hits          199      201       +2     
  Misses         13       13              
  Partials        4        4              
Impacted Files Coverage Δ
checks/argument.go 93.87% <100.00%> (+0.26%) ⬆️

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 605e3d8...afc285c. Read the comment docs.

@ldez
Copy link
Contributor Author

ldez commented Jan 22, 2021

@tommy-muehle if you can take a look at this one, with this PR I will be able to fix the issue golangci/golangci-lint#1653

@tommy-muehle tommy-muehle merged commit e9b14af into tommy-muehle:master Jan 26, 2021
@tommy-muehle
Copy link
Owner

@ldez Thanks again very much for your contribution!

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.

The results seem to be random
3 participants