-
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
Makefile: add new recipes and linter features #244
Conversation
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
==========================================
+ Coverage 42.27% 42.34% +0.06%
==========================================
Files 122 122
Lines 24811 24732 -79
==========================================
- Hits 10490 10473 -17
+ Misses 13430 13371 -59
+ Partials 891 888 -3
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.
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.
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.
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.
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.
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.
0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.
b990022
to
e60cd07
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.
Nitty McNitStick 👍
return true | ||
} | ||
return false | ||
return (p == (APIKeyParams{})) |
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.
Drop outside brackets
return true | ||
} | ||
return false | ||
return (p == (ChatGetParams{})) |
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.
Drop outside brackets
return true | ||
} | ||
return false | ||
return (p == (ChatSendParams{})) |
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.
Drop outside brackets
return true | ||
} | ||
return false | ||
return (p == (GenericRequestParams{})) |
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.
Drop outside brackets
return true | ||
} | ||
return false | ||
return (p == (UserRequestWithdrawalParams{})) |
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.
Drop outside brackets
portfolio/portfolio.go
Outdated
return false | ||
} | ||
return true | ||
return (errors == 0) |
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.
Drop outside brackets
@@ -261,16 +258,16 @@ func (p *Base) GetPersonalPortfolio() map[string]float64 { | |||
// getPercentage returns the percentage of the target coin amount against the | |||
// total coin amount. | |||
func getPercentage(input map[string]float64, target string, totals map[string]float64) float64 { |
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.
RM map[string]float64
type dec. for input var.
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.
Gonna leave this one as is since the target is of type string
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.
How about
func getPercentage(target, totals map[string]float64, target string) float64
?
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.
Out of scope for this PR, there's probabably a lot of others like this but is insignificant. Malalignment checks (mainly for structs) can be done in the future.
@shazbert all nitterinos resolved 👍 |
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.
Looks good!
Tested get, install, test, build for makefile on Windows
I learned a couple of things about golang from this
utACK WELL DONE SIR! |
Description
Introduces a new makefile with various recipes.
Type of change
How Has This Been Tested?
Travis and individual recipe testing.
Checklist: