I'll list the commandments then give a brief yes or no if either of the major candidates violated them...
3 "You shall have no other gods before [a] me.
Mccain: Supported a war where Christian soldiers died for others to have the right to worship a false God.
Obama: He didn't support such a war. But did attend a church where a very different God was preached.
4 "You shall not make for yourself an idol in the form of anything in heaven above or on the earth beneath or in the waters below. 5 You shall not bow down to them or worship them; for I, the LORD your God, am a jealous God, punishing the children for the sin of the fathers to the third and fourth generation of those who hate me,
Mccain: I don't recall him bowing down to any idols.
Obama: Same for Obama.
You shall not misuse the name of the LORD your God, for the LORD will not hold anyone guiltless who misuses his name
Mccain: Supports freedom of speech that allows folks to say what they want and that includes speaking God's name wrongly.
Obama: The same for Obama
Remember the Sabbath day by keeping it holy. 9 Six days you shall labor and do all your work, 10 but the seventh day is a Sabbath to the LORD your God. On it you shall not do any work, neither you, nor your son or daughter, nor your manservant or maidservant, nor your animals, nor the alien within your gates. 11 For in six days the LORD made the heavens and the earth, the sea, and all that is in them, but he rested on the seventh day. Therefore the LORD blessed the Sabbath day and made it holy.
Mccain: Pretty sure he worked and campaigned on the Sabbath.
Obama: Yeah he did too.
Honor your father and your mother, so that you may live long in the land the LORD your God is giving you.
Mccain: Went to the navy academy and did some pretty immoral things then cheated on his wife. That doesn't honor mother of father.
Obama: Did drugs in college. That doesn't honor mother of father either.
You shall not murder.
Mccain: Fought in a war. Some might call that murder. Was for the war in Iraq that killed thousands of innocents, many of whom were kids and women.
Obama: For abortion.
You shall not commit adultery
Mccain: Yeah he cheated on his wife before his present wife.
Obama: No record of him cheating on his wife.
You shall not steal
Mccain: Voted for the bailout.
Obama: Voted for the bailout
You shall not give false testimony against your neighbor
Mccain: Lied during the campaign about Obama
Obama: Did the same about Mccain
You shall not covet your neighbor's house. You shall not covet your neighbor's wife, or his manservant or maidservant, his ox or donkey, or anything that belongs to your neighbor."
Mccain: He def coveted and cheated on his wife.
Obama: I'm sure he's guilty