This would be a lawsuit brought in spite of the fact that both the plaintiff and his lawyer knew that it had no merit. Since it wastes the court's and the people's time and money, it may result in
sanctions being levied by the court.
Compare barratry and vexatious litigation.