-
Notifications
You must be signed in to change notification settings - Fork 112
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
Compile warnings #265
Compile warnings #265
Conversation
b1dbf18
to
b293a83
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.
There are some additional solium
issues
572:26 warning Code contains empty block no-empty-blocks
572:26 warning An empty block shouldn't have any whitespace or comments between the braces, i.e., '{}'. whitespace
600:30 warning Code contains empty block no-empty-blocks
600:30 warning An empty block shouldn't have any whitespace or comments between the braces, i.e., '{}'. whitespace
And also some remaining eslint
issues mainly to do with console.log statements, which we should probably find a more generic way to handle since we have a lot.
function getImpliedRoot(bytes key, bytes value, uint branchMask, bytes32[] siblings) public view returns (bytes32) { // solium-disable-line security/no-assign-params | ||
function getImpliedRoot(bytes key, bytes value, uint branchMask, bytes32[] siblings) public // solium-disable-line security/no-assign-params | ||
view | ||
returns (bytes32) |
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.
I understand we reach the line limit above but can we at least keep view returns (bytes32)
on the same line?
contracts/ReputationMiningCycle.sol
Outdated
function getExpectedSkillIdAndAddress( ReputationLogEntry storage logEntry, uint256 updateNumber ) internal returns (uint256 expectedSkillId, address expectedAddress) { | ||
function getExpectedSkillIdAndAddress(ReputationLogEntry storage logEntry, uint256 updateNumber) | ||
internal | ||
view |
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.
Put internal view
at the end of the function declaration line above. That's what we've followed everywhere else I think. The returns..
can be on its own line to stand out
33c01f3
to
9c91a61
Compare
Sorry, forgot to mention in review, to check if we can disable |
9c91a61
to
f11e30a
Compare
I prefer suppressing these warnings by fixing them. In case where that is not possible i would leave them. But i guess we can supress them and be more cautious, no strong feelings |
You are not sufficiently informed when you say this, no hard feelings :) Then check duaraghav8/Ethlint#201 where we've agreed this is a bad warning anyway that will be fixed in upcoming |
I agree that we should keep You are right that i could do a research of what benefits of these experimental features give us. Looking from solidity releases i can see that |
Yes, I was not arguing that we disable the rule to simply silence the warning. I was saying we should silence the rule because |
f785f9b
to
ac95269
Compare
Changes include:
There are solium warnings for experimental features, im not sure if its safe to remove these.
Solc warnings for external libraries will unfortunately stay: ethereum/solidity#2675