I found a great example of Rashi's methodology in Rashis `[g Eruvin 18b l], `[g Brachos 61a l], and `[g Brachos 8b l]. In Eruvin, where it says walking behind a synagogue during prayer is worse than walking after idol worship, he says that one should not walk behind the synagogue during prayer because it looks like he's a Kofer.