Judges rule on the law, not on their knowledge of construction.   If someone violated the laws, then the judge may stop construction until the law is complied with but then that isn't a frivolous lawsuit, just another lie told by wiliki.