Disable code integrity check

With all my respect, maybe this is a bad approach?
Why to disable code integrity check ?

In this topic mention a different solution

Thank you.