Skip to content
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

Add java analyzer comments for Need For Speed #2325

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# avoid conditional logic

Consider converting the `if`-statement(s) and/or ternary expressions into a single expression using the `<` operator.
4 changes: 4 additions & 0 deletions analyzer-comments/java/need-for-speed/avoid_loops.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# avoid loops

Instead of using a loop, consider returning a single expression using the `<=` operator.
You can re-use the other methods already implemented in the class.
Loading