You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example causes an (IMO) incorrect indentation warning
pragma solidity ^0.4.4;
contract Something {
/* blah
*/
function something(uint a, int b) returns (int c) {
return a + b;
}
/* blah
*/
function other(uint a, int b) returns (int c) {
return a + b;
}
}
In test.sol, line 12:
*/
^-- WARNING: Incorrect indentation: Make sure you use 4 SPACES per level and don't precede the code by any comments.
Interestingly this only happens on the second (and all later) occurrences of a block comment not on the first.
The text was updated successfully, but these errors were encountered:
The indentation checker is doing its job alright. Because the */ has 1 extra space before it, the linter throws a warning because it doesn't see exactly 4 spaces (it sees 5 instead).
So I think we need to make an exception for the multi line comment.
EDIT: (I'll also check out why the first block got ignored)
closing this since the above script now gets through without any errors, opening up another todo item to write tests for indentation rule. Thanks for reporting!
This example causes an (IMO) incorrect indentation warning
Interestingly this only happens on the second (and all later) occurrences of a block comment not on the first.
The text was updated successfully, but these errors were encountered: