Sharing a lane is a state-by-state thing. In California it's legal (yay!) In Arizona it isn't (boo hiss), but at least we don't have helmet laws. It's hard to imagine a cyclist being ticketed for it, however, especially if you do it on the right side, where most people (LEO included), intuitively believe you belong (double boo hiss).