-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: (#45) Fix failing java tests #46
Conversation
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.
Functionally everything looks good. 👍🏼
The main point I’d like to raise is that we generally avoid using wildcard imports, so I’d prefer if we use concrete imports instead. Other than that, I just have a few suggestions. Please take a look at my comments!
src/test/java/com/axlabs/neo/grantshares/GovernanceMembersTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/axlabs/neo/grantshares/GovernanceMembersTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/axlabs/neo/grantshares/GrantSharesGovTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/axlabs/neo/grantshares/GrantSharesTreasury.java
Outdated
Show resolved
Hide 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.
The new format rules seem not to be applied to the contract class files GrantSharesGove.java
and GrantSharesTreasury.java
. Please apply it on these files as well.
suggestion: Also, consider removing WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN
in the code style. This would keep long literal strings like the one in the @ContractSourceCode
in a single string without having + operators to wrap it.
Maybe we should only do this in non-code files though. I renounce my suggestion. |
This doesn't seem to be doing what you expected. I set that to false and it's still wraping the string literals that are annotation parameters. I'll search for a different option |
Hmm, for me, with the line, it looks like this: @ContractSourceCode(
"https://github.com/AxLabs/grantshares-contracts/blob/main/src/main/java/com/axlabs/neo/grantshares" +
"/GrantSharesGov.java") and like this without it: @ContractSourceCode(
"https://github.com/AxLabs/grantshares-contracts/blob/main/src/main/java/com/axlabs/neo/grantshares/GrantSharesGov.java") |
yes, same for me, what I was saying is that even disabling that, it still formats it the same, breaking the string |
@OT-kraftchain is this ready to merge? |
6c17e96
to
63e95d9
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.
👌🏼
No description provided.