One of the goals of #27783 was to get rid of the BOOST_ASSERT macros instead of including the boost/assert.hpp headers. See #27783 (review).
It turns out that a couple of those macros sneaked into the codebase in #27790.
This PR makes the linter guard against new instances of the BOOST_ASSERT macros and replaces the current ones.