That is why there should be line item voting in Congress.Agreed a law saying that candidates have to tell the truth wouldn't be very effective because candidates are very adept at telling partial truths.
My favorite is "so and so voted against pay raises for our troops" or something like that.
Reality that person voted against a bill that gave the troops a penny a month raise but also had like 300 billion dollars for the other party's pet political project.