We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
Parentheses in ternary operator in array breaks indentation rules:
Steps to reproduce
Source code:
contract A { function func(uint256 a, uint256 b, uint256 flags) public view returns(uint256) { uint256[4] memory reserves = [ (flag & 1) == 0 ? a : b, (flag & 2) == 1 ? b : a ]; //.. } }
Gives:
42:12 error Only use indent of 12 spaces. indentation 43:12 error Only use indent of 12 spaces. indentation
Linter version: 1.2.5
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Parentheses in ternary operator in array breaks indentation rules:
Steps to reproduce
Source code:
Gives:
Linter version: 1.2.5
The text was updated successfully, but these errors were encountered: