Skip to content

Commit

Permalink
Adding analyzer comments for Secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
manumafe98 committed Mar 11, 2024
1 parent 7136d44 commit 5d5486b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analyzer-comments/java/secrets/avoid_conditional_logic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# avoid conditional logic

Consider returning directly the expected operator instead of using `if`-statement(s) and/or ternary expressions.
3 changes: 3 additions & 0 deletions analyzer-comments/java/secrets/prefer_bitwise_not.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# prefer bitwise not

Consider utilizing the Bitwise NOT `~` operator to achieve a more concise solution.
4 changes: 4 additions & 0 deletions analyzer-comments/java/secrets/use_bitwise_operator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# use bitwise operator

The `%<calledMethod>s` method should use the operator `%<operatorToUse>s`.
As this concept exercise intends to teach how Bitwise operators work

0 comments on commit 5d5486b

Please sign in to comment.