The fact is the good cops know about the bad cops and generally don’t do anything about it unless embarassed enough with hard evidence that cannot be ignored with zero response.
Probably the same for physicians, plumbers, philosophers...
Every LEO force ought to have an honor code -- like our military academies -- that punishes those who tolerate bad, if not illegal behavior, as much, if not more, than the person who enagages in the primary misconduct.