Permalink
Browse files

disable oclint BitwiseOperatorInConditional warning

  • Loading branch information...
1 parent 4a2aed1 commit 41f1232cf943f98242477135073af63e866c3eaa @krader1961 krader1961 committed Oct 29, 2016
Showing with 7 additions and 0 deletions.
  1. +7 −0 .oclint
View
@@ -58,3 +58,10 @@ disable-rules:
# especially in the context of assert statements. So disable this rule.
#
- DoubleNegative
+ #
+ # Avoiding bitwise operators in a conditional is a good idea with one
+ # exception: testing whether a bit flag is set. Which happens to be the
+ # only time you'll see something like `if (j->flags & JOB_CONSTRUCTED)`
+ # in fish source.
+ #
+ - BitwiseOperatorInConditional

0 comments on commit 41f1232

Please sign in to comment.