1 /* 2 EmptyLineSeparator 3 allowNoEmptyLineBetweenFields = (default)false 4 allowMultipleEmptyLines = false 5 allowMultipleEmptyLinesInsideClassMembers = false 6 tokens = (default)PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, \ 7 STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF, \ 8 COMPACT_CTOR_DEF 9 10 11 */ 12 13 package com.puppycrawl.tools.checkstyle.checks.whitespace.emptylineseparator; // some comment 14 /** 15 * Some comments here 👉🏻 16 👆🏻 */ 17 18 public class InputEmptyLineSeparatorWithEmoji { 19 20 21 22 String s = "👉🏻sas"; // violation ''VARIABLE_DEF' has more than 1 empty lines before.' 23 24 String s2 = "sasds👇🏻"; 25 26 27 String s3 = "👆🏻"; // violation ''VARIABLE_DEF' has more than 1 empty lines before.' 28 29 void foo() 30 { 31 for (int i = 1; i < 5; i++) { 32 } 33 // violation 'more than 1 empty line after this line.' 34 35 36 37 38 for(int i = 1;i < 5;i++); 39 } 40 } 41 class InputEmptyLineSeparatorWithEmoji2{ public static boolean foo2() {return "😂 ".equals("da👉🏻");} 42 // violation above ''CLASS_DEF' should be separated from previous line' 43 44 }