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
Describe the bug expressionIf detection seems to fail here (works if the if is prefixed with return directly):
expressionIf
if
return
Input file
class Main { static function main() { return [ for (meta in node.metadata) { var child = node.children[meta - 1]; if (child == null) 0 else value(child); } ].sum(); } }
Broken output
The text was updated successfully, but these errors were encountered:
Similar:
class Main { static function main() { [ if (foo) bar else foo, if (foo) bar else foo, if (foo) bar else foo, if (foo) bar else foo, if (foo) bar else foo ] } }
becomes:
Sorry, something went wrong.
fixed expressionIf for array comprehension, fixes HaxeCheckstyle#365
4663a00
897f5d1
No branches or pull requests
Describe the bug
expressionIf
detection seems to fail here (works if theif
is prefixed withreturn
directly):Input file
Broken output
The text was updated successfully, but these errors were encountered: