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
The analyzer produces the comment Consider converting the if-statement(s) and/or ternary expressions into a single expression using the && and || operators. for the solution return (year % 100 == 0) ? (year % 400 == 0) : (year % 4 == 0);.
The solution seems valid (so the analyzer shouldn't produce the comment).
The text was updated successfully, but these errors were encountered:
I'm still unsure about the analyzer tests for the java-analyzer PR. Could you please clarify what's expected in terms of testing? Also, let me know if there's anything else that needs to be updated or adjusted in either of the PRs.
I think we need to update the tests - there's a few failing in the CI. If I'm not mistaken, the sample for the ternary test, we would expect to receive to get the new ternary comment because the last case returns a boolean literal. But, we also need to add one a test for the return (year % 100 == 0) ? (year % 400 == 0) : (year % 4 == 0); solution, which I think should receive no analyzer comments.
The analyzer produces the comment Consider converting the if-statement(s) and/or ternary expressions into a single expression using the && and || operators. for the solution
return (year % 100 == 0) ? (year % 400 == 0) : (year % 4 == 0);
.The solution seems valid (so the analyzer shouldn't produce the comment).
The text was updated successfully, but these errors were encountered: