Here's just one of the 10 listed in the link, above.
8. McCain has boasted of never requesting a single earmark, saying in January: "I have never asked for nor received a single earmark or pork-barrel project for my state." But he has requested federal funding for special projects back home, including $10 million for a center at the University of Arizona, $5 million for a home-state water project and spending authority to purchase land around Arizona's Luke Air Force Base.
Politifact says it's a matter of debate whether these projects constitute pork-barrel spending — but clearly McCain has searched for federal help in his own backyard.