-
Notifications
You must be signed in to change notification settings - Fork 822
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
Migrate from gometalinter.v2 to golangci-lint #249
Conversation
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
==========================================
+ Coverage 42.27% 42.36% +0.09%
==========================================
Files 120 120
Lines 26094 26078 -16
==========================================
+ Hits 11032 11049 +17
+ Misses 14144 14124 -20
+ Partials 918 905 -13
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK just had a comment.
9237b24
to
265b295
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.
265b295
to
0799d7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.
for _, exch := range c.Exchanges { | ||
if exch.Name == exchangeName { | ||
for _, account := range exch.BankAccounts { | ||
for x := range c.Exchanges { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is iterating on the index vs putting it in a variable here better practice, more efficient or both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An index or pointer is the most efficient, doing it the original way allocates an exchange config object per iteration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK or whatever
Cool stuff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issues found. Ignoring 0 issues.
@@ -317,10 +318,12 @@ func TestProcessTicker(t *testing.T) { //non-appending function to tickers | |||
|
|||
for _, test := range testArray { | |||
wg.Add(1) | |||
fatalErr := false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every exported function in a program should have a doc comment. The first sentence should be a summary that starts with the name (TestProcessTicker) being declared.
From effective go.
tACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.
Description
Due to gometalinter now being EOL, this PR migrates us over to golangci-linter. The benefits are that it's quicker, supports more linters and is easily customisable by a config file. To start, 19 linters have been enabled but over time we will aim to add more.
Type of change
Please delete options that are not relevant and add an
x
in[]
as item is complete.How Has This Been Tested?
Travis and make check
Checklist: