I'm sure you've heard the term 'hanging judge' in movies.
The last time frivolous lawsuits were getting a lot of journalistic attention I would joke to my friends that if I ever became a judge I'd cite people for contempt of court for bringing in bullshit cases. I'd easily set a record for number of citations.