Add a check to reject new code which matches a regex
It would be nice an convenient to have a ban list mechanism for new inserted code on certain keywords. The latest example of such need would come from the insertion of calls to GetVoidPointer
, which needs to be deprecated at some point (see this issue).
The idea would be to raise a flag when there is new inserted code in which one can regex words from the ban list. Maybe we should also not allow merging when such a flag gets raised? Or make it so only a maintainer can allow a merge in case the change is legit anyway?
Edited by Ben Boeckel