@@ -111,6 +111,7 @@ public class CdsCodeStyleSettings extends CdsCodeStyleSettingsBase {
111111 OPTIONS .put ("alignTypes" , new CdsCodeStyleOption ("alignTypes" , BOOLEAN , true , "Align types of elements" , "Types of elements" , ALIGNMENT , null , List .of ("alignColonsBeforeTypes" , "alignEqualsAfterTypes" , "alignTypesWithinBlock" , "alignCompositionStructToRight" )));
112112 OPTIONS .put ("alignTypesWithinBlock" , new CdsCodeStyleOption ("alignTypesWithinBlock" , BOOLEAN , true , "Within block" , "Types of elements" , ALIGNMENT , "alignTypes" , List .of ()));
113113 OPTIONS .put ("alignValuesInAnnotations" , new CdsCodeStyleOption ("alignValuesInAnnotations" , BOOLEAN , true , "Values" , "Annotations" , ALIGNMENT , "alignAnnotations" , List .of ()));
114+ OPTIONS .put ("boolOpsAtLineEnd" , new CdsCodeStyleOption ("boolOpsAtLineEnd" , BOOLEAN , false , "Position 'and', 'or' operators at line end" , "Other" , OTHER , null , List .of ()));
114115 OPTIONS .put ("cqlKeywordCapitalization" , new CdsCodeStyleOption ("cqlKeywordCapitalization" , ENUM , CqlKeywordCapitalization .LOWER .getId (), "Capitalization style of CQL keywords" , "Other" , OTHER , null , List .of (), CqlKeywordCapitalization .LOWER , CqlKeywordCapitalization .UPPER , CqlKeywordCapitalization .TITLE , CqlKeywordCapitalization .AS_IS ));
115116 OPTIONS .put ("finalNewline" , new CdsCodeStyleOption ("finalNewline" , BOOLEAN , true , "Final newline" , "Other" , WRAPPING_AND_BRACES , null , List .of ()));
116117 OPTIONS .put ("formatDocComments" , new CdsCodeStyleOption ("formatDocComments" , BOOLEAN , false , "Format markdown in doc comments" , "Format markdown in doc comments" , COMMENTS , null , List .of ("maxDocCommentLine" )));
@@ -168,6 +169,7 @@ public CdsCodeStyleSettings(CodeStyleSettings settings) {
168169 public boolean alignTypes = true ;
169170 public boolean alignTypesWithinBlock = true ;
170171 public boolean alignValuesInAnnotations = true ;
172+ public boolean boolOpsAtLineEnd = false ;
171173 public int cqlKeywordCapitalization = CqlKeywordCapitalization .LOWER .getId ();
172174 public boolean finalNewline = true ;
173175 public boolean formatDocComments = false ;
0 commit comments