Publishing the code isn’t a panacea. Someone still has to find the bug. It hopefully would make it easier to come to a consensus faster when there is a dispute. In practice I think ultimately there is little glamour and fruitfulness for exploration. What might be impactful is setting up prizes for papers to be disproven or corrected. Ultimately though we can produce, as a species, far more information than we could ever hope to verify.