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

Makefile: add new recipes and linter features #244

Merged
merged 4 commits into from
Jan 31, 2019
Merged

Makefile: add new recipes and linter features #244

merged 4 commits into from
Jan 31, 2019

Conversation

thrasher-
Copy link
Collaborator

@thrasher- thrasher- commented Jan 30, 2019

Description

Introduces a new makefile with various recipes.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Travis and individual recipe testing.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally and on Travis with my changes
  • Any dependent changes have been merged and published in downstream modules

@codecov-io
Copy link

codecov-io commented Jan 30, 2019

Codecov Report

Merging #244 into master will increase coverage by 0.06%.
The diff coverage is 36.62%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
currency/symbol/symbol.go 100% <ø> (ø) ⬆️
exchanges/poloniex/poloniex_websocket.go 0% <0%> (ø) ⬆️
websocket.go 0% <0%> (ø) ⬆️
main.go 0% <0%> (ø) ⬆️
exchanges/okex/okex_wrapper.go 22.22% <0%> (+0.12%) ⬆️
exchanges/gateio/gateio_websocket.go 0% <0%> (ø) ⬆️
exchanges/bitfinex/bitfinex_websocket.go 0% <0%> (ø) ⬆️
exchanges/huobi/huobi.go 47.32% <0%> (ø) ⬆️
exchanges/okex/okex.go 76.12% <0%> (ø) ⬆️
exchanges/zb/zb_wrapper.go 26.31% <0%> (+0.17%) ⬆️
... and 39 more

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 e182248...db3e602. Read the comment docs.

Copy link

@codelingo codelingo bot left a 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.

Copy link

@codelingo codelingo bot left a 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.

Copy link

@codelingo codelingo bot left a 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.

Copy link

@codelingo codelingo bot left a 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.

Copy link

@codelingo codelingo bot left a 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.

Copy link

@codelingo codelingo bot left a 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.

@thrasher- thrasher- force-pushed the makefile branch 2 times, most recently from b990022 to e60cd07 Compare January 31, 2019 02:56
Copy link
Collaborator

@shazbert shazbert left a 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{}))
Copy link
Collaborator

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{}))
Copy link
Collaborator

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{}))
Copy link
Collaborator

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{}))
Copy link
Collaborator

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{}))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Drop outside brackets

return false
}
return true
return (errors == 0)
Copy link
Collaborator

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 {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Collaborator

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
?

Copy link
Collaborator Author

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.

@thrasher-
Copy link
Collaborator Author

@shazbert all nitterinos resolved 👍

Copy link
Collaborator

@gloriousCode gloriousCode left a 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

@shazbert
Copy link
Collaborator

utACK WELL DONE SIR!

@thrasher- thrasher- merged commit 291e404 into master Jan 31, 2019
@thrasher- thrasher- deleted the makefile branch January 31, 2019 04:20
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.

4 participants