diff --git a/PyIlmBase/PyImath/PyImathFixedMatrix.h b/PyIlmBase/PyImath/PyImathFixedMatrix.h index df97265bc2..85cbd66997 100644 --- a/PyIlmBase/PyImath/PyImathFixedMatrix.h +++ b/PyIlmBase/PyImath/PyImathFixedMatrix.h @@ -502,9 +502,9 @@ template static void add_mod_math_functions(boost::python::class_ > &c) { using namespace boost::python; c - .def(self % self) + .def(self % self) // NOSONAR - suppress SonarCloud bug report. .def(self % other()) - .def(self %= self) + .def(self %= self) // NOSONAR - suppress SonarCloud bug report. .def(self %= other()) ; } @@ -513,13 +513,13 @@ template static void add_shift_math_functions(boost::python::class_ > &c) { using namespace boost::python; c - .def(self << self) + .def(self << self) // NOSONAR - suppress SonarCloud bug report. .def(self << other()) - .def(self <<= self) + .def(self <<= self) // NOSONAR - suppress SonarCloud bug report. .def(self <<= other()) - .def(self >> self) + .def(self >> self) // NOSONAR - suppress SonarCloud bug report. .def(self >> other()) - .def(self >>= self) + .def(self >>= self) // NOSONAR - suppress SonarCloud bug report. .def(self >>= other()) ; } @@ -530,15 +530,15 @@ static void add_bitwise_math_functions(boost::python::class_ > &c c .def(self & self) .def(self & other()) - .def(self &= self) + .def(self &= self) // NOSONAR - suppress SonarCloud bug report. .def(self &= other()) .def(self | self) .def(self | other()) - .def(self |= self) + .def(self |= self) // NOSONAR - suppress SonarCloud bug report. .def(self |= other()) .def(self ^ self) .def(self ^ other()) - .def(self ^= self) + .def(self ^= self) // NOSONAR - suppress SonarCloud bug report. .def(self ^= other()) ; } diff --git a/PyIlmBase/PyImath/PyImathVec2Impl.h b/PyIlmBase/PyImath/PyImathVec2Impl.h index 1e9aa39fae..1a04c40ff8 100644 --- a/PyIlmBase/PyImath/PyImathVec2Impl.h +++ b/PyIlmBase/PyImath/PyImathVec2Impl.h @@ -1007,7 +1007,7 @@ register_Vec2() .def("__mul__", &Vec2_mulM33) .def("__imul__", &Vec2_imulM33, return_internal_reference<>()) .def("__imul__", &Vec2_imulM33, return_internal_reference<>()) - .def(self / self) + .def(self / self) // NOSONAR - suppress SonarCloud bug report. .def("__div__", &Vec2_div) .def("__div__", &Vec2_div) .def("__div__", &Vec2_div) @@ -1027,8 +1027,8 @@ register_Vec2() .def("__itruediv__", &Vec2_idivObj,return_internal_reference<>()) .def("__xor__", &Vec2_dot) .def("__mod__", &Vec2_cross) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__eq__", &equal) .def("__ne__", ¬equal) .def("__add__", &Vec2_add)