From 41f1232cf943f98242477135073af63e866c3eaa Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 28 Oct 2016 17:52:56 -0700 Subject: [PATCH] disable oclint BitwiseOperatorInConditional warning --- .oclint | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.oclint b/.oclint index 5eea63aea..8bd3df49a 100644 --- a/.oclint +++ b/.oclint @@ -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