1 /* 2 TrailingComment 3 format = (default)^[\\s});]*$ 4 legalComment = ^ this is ok 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.trailingcomment; 10 11 public class InputTrailingCommentWithEmoji { 12 // violation below 13 String a = "🧐🥳😠😨"; /*string with emoji */ 14 // violation below 15 String b = "👌🏻🤞🏻😂😂🎄"; // another string 16 17 /* yet another */String c = "😂😂🎄👍"; /* this is ok */ 18 String d = "🧐🥳"; // this is ok 19 /* 20 * 🎄a🎄b🎄c🎄 // violation below 21 * 🎄 👌🏻 🤘🏻 🎄*/ void test1() { /* some 22 🎄 adsad 🎄 /*comments */ 23 } 24 // violation below 25 /*😂 😂*/ // 🤛🏻🤛🏻 26 27 /* 🎃 ☠️ */ // 👿 asd😱 // violation 28 /* 😱 🎄 */ /*🎄 🥶 */ // violation 29 30 /** // comment 31 * 🤛🏻q🥳w👆🏻e😠r👇🏻t😨y 32 */ 33 /* 👆🏻 👇🏻 */ void test2() {} // violation 34 }