├── .editorconfig ├── Dockerfile ├── The_Dragon_Code_phpStorm.xml ├── action.yml ├── builds └── codestyle ├── composer.json ├── dev.sh ├── entrypoint.sh └── shell ├── check.sh ├── config.sh ├── dependabot.sh ├── editorconfig.sh ├── fix.sh ├── functions.sh ├── normalize.sh ├── plugins.sh ├── push.sh └── thanks.sh /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset = utf-8 3 | end_of_line = lf 4 | indent_size = 4 5 | indent_style = space 6 | insert_final_newline = true 7 | max_line_length = 120 8 | tab_width = 4 9 | trim_trailing_whitespace = false 10 | ij_continuation_indent_size = 8 11 | ij_formatter_off_tag = @formatter:off 12 | ij_formatter_on_tag = @formatter:on 13 | ij_formatter_tags_enabled = true 14 | ij_smart_tabs = false 15 | ij_visual_guides = none 16 | ij_wrap_on_typing = false 17 | 18 | [*.blade.php] 19 | ij_continuation_indent_size = 4 20 | ij_blade_keep_indents_on_empty_lines = false 21 | 22 | [*.css] 23 | ij_css_align_closing_brace_with_properties = false 24 | ij_css_blank_lines_around_nested_selector = 1 25 | ij_css_blank_lines_between_blocks = 1 26 | ij_css_block_comment_add_space = true 27 | ij_css_brace_placement = end_of_line 28 | ij_css_enforce_quotes_on_format = true 29 | ij_css_hex_color_long_format = true 30 | ij_css_hex_color_lower_case = false 31 | ij_css_hex_color_short_format = false 32 | ij_css_hex_color_upper_case = true 33 | ij_css_keep_blank_lines_in_code = 1 34 | ij_css_keep_indents_on_empty_lines = false 35 | ij_css_keep_single_line_blocks = false 36 | ij_css_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow 37 | ij_css_space_after_colon = true 38 | ij_css_space_before_opening_brace = true 39 | ij_css_use_double_quotes = true 40 | ij_css_value_alignment = do_not_align 41 | 42 | [*.less] 43 | ij_less_align_closing_brace_with_properties = false 44 | ij_less_blank_lines_around_nested_selector = 1 45 | ij_less_blank_lines_between_blocks = 1 46 | ij_less_block_comment_add_space = false 47 | ij_less_brace_placement = 0 48 | ij_less_enforce_quotes_on_format = false 49 | ij_less_hex_color_long_format = true 50 | ij_less_hex_color_lower_case = false 51 | ij_less_hex_color_short_format = false 52 | ij_less_hex_color_upper_case = true 53 | ij_less_keep_blank_lines_in_code = 2 54 | ij_less_keep_indents_on_empty_lines = false 55 | ij_less_keep_single_line_blocks = false 56 | ij_less_line_comment_add_space = false 57 | ij_less_line_comment_at_first_column = false 58 | ij_less_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow 59 | ij_less_space_after_colon = true 60 | ij_less_space_before_opening_brace = true 61 | ij_less_use_double_quotes = true 62 | ij_less_value_alignment = 0 63 | 64 | [*.sass] 65 | ij_sass_align_closing_brace_with_properties = false 66 | ij_sass_blank_lines_around_nested_selector = 1 67 | ij_sass_blank_lines_between_blocks = 1 68 | ij_sass_brace_placement = 0 69 | ij_sass_enforce_quotes_on_format = false 70 | ij_sass_hex_color_long_format = false 71 | ij_sass_hex_color_lower_case = false 72 | ij_sass_hex_color_short_format = false 73 | ij_sass_hex_color_upper_case = false 74 | ij_sass_keep_blank_lines_in_code = 2 75 | ij_sass_keep_indents_on_empty_lines = false 76 | ij_sass_keep_single_line_blocks = false 77 | ij_sass_line_comment_add_space = false 78 | ij_sass_line_comment_at_first_column = false 79 | ij_sass_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow 80 | ij_sass_space_after_colon = true 81 | ij_sass_space_before_opening_brace = true 82 | ij_sass_use_double_quotes = true 83 | ij_sass_value_alignment = 0 84 | 85 | [*.scss] 86 | ij_scss_align_closing_brace_with_properties = false 87 | ij_scss_blank_lines_around_nested_selector = 1 88 | ij_scss_blank_lines_between_blocks = 1 89 | ij_scss_block_comment_add_space = true 90 | ij_scss_brace_placement = 0 91 | ij_scss_enforce_quotes_on_format = true 92 | ij_scss_hex_color_long_format = true 93 | ij_scss_hex_color_lower_case = false 94 | ij_scss_hex_color_short_format = false 95 | ij_scss_hex_color_upper_case = true 96 | ij_scss_keep_blank_lines_in_code = 1 97 | ij_scss_keep_indents_on_empty_lines = false 98 | ij_scss_keep_single_line_blocks = false 99 | ij_scss_line_comment_add_space = false 100 | ij_scss_line_comment_at_first_column = false 101 | ij_scss_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow 102 | ij_scss_space_after_colon = true 103 | ij_scss_space_before_opening_brace = true 104 | ij_scss_use_double_quotes = true 105 | ij_scss_value_alignment = 0 106 | 107 | [*.twig] 108 | ij_twig_keep_indents_on_empty_lines = false 109 | ij_twig_spaces_inside_comments_delimiters = true 110 | ij_twig_spaces_inside_delimiters = true 111 | ij_twig_spaces_inside_variable_delimiters = true 112 | 113 | [*.vue] 114 | ij_continuation_indent_size = 4 115 | ij_vue_indent_children_of_top_level = template 116 | ij_vue_interpolation_new_line_after_start_delimiter = true 117 | ij_vue_interpolation_new_line_before_end_delimiter = true 118 | ij_vue_interpolation_wrap = off 119 | ij_vue_keep_indents_on_empty_lines = false 120 | ij_vue_spaces_within_interpolation_expressions = true 121 | 122 | [.editorconfig] 123 | ij_editorconfig_align_group_field_declarations = false 124 | ij_editorconfig_space_after_colon = false 125 | ij_editorconfig_space_after_comma = true 126 | ij_editorconfig_space_before_colon = false 127 | ij_editorconfig_space_before_comma = false 128 | ij_editorconfig_spaces_around_assignment_operators = true 129 | 130 | [{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.rng,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,phpunit.xml.dist}] 131 | ij_xml_align_attributes = true 132 | ij_xml_align_text = false 133 | ij_xml_attribute_wrap = normal 134 | ij_xml_block_comment_add_space = true 135 | ij_xml_block_comment_at_first_column = true 136 | ij_xml_keep_blank_lines = 2 137 | ij_xml_keep_indents_on_empty_lines = false 138 | ij_xml_keep_line_breaks = true 139 | ij_xml_keep_line_breaks_in_text = true 140 | ij_xml_keep_whitespaces = false 141 | ij_xml_keep_whitespaces_around_cdata = preserve 142 | ij_xml_keep_whitespaces_inside_cdata = false 143 | ij_xml_line_comment_at_first_column = true 144 | ij_xml_space_after_tag_name = false 145 | ij_xml_space_around_equals_in_attribute = false 146 | ij_xml_space_inside_empty_tag = true 147 | ij_xml_text_wrap = normal 148 | 149 | [{*.ats,*.cts,*.mts,*.ts}] 150 | ij_continuation_indent_size = 4 151 | ij_typescript_align_imports = false 152 | ij_typescript_align_multiline_array_initializer_expression = false 153 | ij_typescript_align_multiline_binary_operation = false 154 | ij_typescript_align_multiline_chained_methods = false 155 | ij_typescript_align_multiline_extends_list = false 156 | ij_typescript_align_multiline_for = true 157 | ij_typescript_align_multiline_parameters = true 158 | ij_typescript_align_multiline_parameters_in_calls = false 159 | ij_typescript_align_multiline_ternary_operation = false 160 | ij_typescript_align_object_properties = 0 161 | ij_typescript_align_union_types = false 162 | ij_typescript_align_var_statements = 0 163 | ij_typescript_array_initializer_new_line_after_left_brace = false 164 | ij_typescript_array_initializer_right_brace_on_new_line = false 165 | ij_typescript_array_initializer_wrap = off 166 | ij_typescript_assignment_wrap = off 167 | ij_typescript_binary_operation_sign_on_next_line = false 168 | ij_typescript_binary_operation_wrap = off 169 | ij_typescript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/** 170 | ij_typescript_blank_lines_after_imports = 1 171 | ij_typescript_blank_lines_around_class = 1 172 | ij_typescript_blank_lines_around_field = 0 173 | ij_typescript_blank_lines_around_field_in_interface = 0 174 | ij_typescript_blank_lines_around_function = 1 175 | ij_typescript_blank_lines_around_method = 1 176 | ij_typescript_blank_lines_around_method_in_interface = 1 177 | ij_typescript_block_brace_style = end_of_line 178 | ij_typescript_block_comment_add_space = false 179 | ij_typescript_block_comment_at_first_column = true 180 | ij_typescript_call_parameters_new_line_after_left_paren = false 181 | ij_typescript_call_parameters_right_paren_on_new_line = false 182 | ij_typescript_call_parameters_wrap = off 183 | ij_typescript_catch_on_new_line = false 184 | ij_typescript_chained_call_dot_on_new_line = true 185 | ij_typescript_class_brace_style = next_line 186 | ij_typescript_comma_on_new_line = false 187 | ij_typescript_do_while_brace_force = never 188 | ij_typescript_else_on_new_line = false 189 | ij_typescript_enforce_trailing_comma = remove 190 | ij_typescript_enum_constants_wrap = on_every_item 191 | ij_typescript_extends_keyword_wrap = off 192 | ij_typescript_extends_list_wrap = off 193 | ij_typescript_field_prefix = _ 194 | ij_typescript_file_name_style = relaxed 195 | ij_typescript_finally_on_new_line = false 196 | ij_typescript_for_brace_force = never 197 | ij_typescript_for_statement_new_line_after_left_paren = false 198 | ij_typescript_for_statement_right_paren_on_new_line = false 199 | ij_typescript_for_statement_wrap = off 200 | ij_typescript_force_quote_style = true 201 | ij_typescript_force_semicolon_style = true 202 | ij_typescript_function_expression_brace_style = end_of_line 203 | ij_typescript_if_brace_force = never 204 | ij_typescript_import_merge_members = global 205 | ij_typescript_import_prefer_absolute_path = global 206 | ij_typescript_import_sort_members = true 207 | ij_typescript_import_sort_module_name = false 208 | ij_typescript_import_use_node_resolution = true 209 | ij_typescript_imports_wrap = on_every_item 210 | ij_typescript_indent_case_from_switch = true 211 | ij_typescript_indent_chained_calls = true 212 | ij_typescript_indent_package_children = 0 213 | ij_typescript_jsdoc_include_types = false 214 | ij_typescript_jsx_attribute_value = braces 215 | ij_typescript_keep_blank_lines_in_code = 1 216 | ij_typescript_keep_first_column_comment = true 217 | ij_typescript_keep_indents_on_empty_lines = false 218 | ij_typescript_keep_line_breaks = true 219 | ij_typescript_keep_simple_blocks_in_one_line = false 220 | ij_typescript_keep_simple_methods_in_one_line = false 221 | ij_typescript_line_comment_add_space = true 222 | ij_typescript_line_comment_at_first_column = false 223 | ij_typescript_method_brace_style = next_line 224 | ij_typescript_method_call_chain_wrap = off 225 | ij_typescript_method_parameters_new_line_after_left_paren = false 226 | ij_typescript_method_parameters_right_paren_on_new_line = false 227 | ij_typescript_method_parameters_wrap = off 228 | ij_typescript_object_literal_wrap = on_every_item 229 | ij_typescript_object_types_wrap = on_every_item 230 | ij_typescript_parentheses_expression_new_line_after_left_paren = false 231 | ij_typescript_parentheses_expression_right_paren_on_new_line = false 232 | ij_typescript_place_assignment_sign_on_next_line = false 233 | ij_typescript_prefer_as_type_cast = false 234 | ij_typescript_prefer_explicit_types_function_expression_returns = false 235 | ij_typescript_prefer_explicit_types_function_returns = false 236 | ij_typescript_prefer_explicit_types_vars_fields = false 237 | ij_typescript_prefer_parameters_wrap = false 238 | ij_typescript_reformat_c_style_comments = false 239 | ij_typescript_space_after_colon = true 240 | ij_typescript_space_after_comma = true 241 | ij_typescript_space_after_dots_in_rest_parameter = false 242 | ij_typescript_space_after_generator_mult = true 243 | ij_typescript_space_after_property_colon = true 244 | ij_typescript_space_after_quest = true 245 | ij_typescript_space_after_type_colon = true 246 | ij_typescript_space_after_unary_not = true 247 | ij_typescript_space_before_async_arrow_lparen = true 248 | ij_typescript_space_before_catch_keyword = true 249 | ij_typescript_space_before_catch_left_brace = true 250 | ij_typescript_space_before_catch_parentheses = true 251 | ij_typescript_space_before_class_lbrace = true 252 | ij_typescript_space_before_class_left_brace = true 253 | ij_typescript_space_before_colon = true 254 | ij_typescript_space_before_comma = false 255 | ij_typescript_space_before_do_left_brace = true 256 | ij_typescript_space_before_else_keyword = true 257 | ij_typescript_space_before_else_left_brace = true 258 | ij_typescript_space_before_finally_keyword = true 259 | ij_typescript_space_before_finally_left_brace = true 260 | ij_typescript_space_before_for_left_brace = true 261 | ij_typescript_space_before_for_parentheses = true 262 | ij_typescript_space_before_for_semicolon = false 263 | ij_typescript_space_before_function_left_parenth = true 264 | ij_typescript_space_before_generator_mult = false 265 | ij_typescript_space_before_if_left_brace = true 266 | ij_typescript_space_before_if_parentheses = true 267 | ij_typescript_space_before_method_call_parentheses = false 268 | ij_typescript_space_before_method_left_brace = true 269 | ij_typescript_space_before_method_parentheses = false 270 | ij_typescript_space_before_property_colon = false 271 | ij_typescript_space_before_quest = true 272 | ij_typescript_space_before_switch_left_brace = true 273 | ij_typescript_space_before_switch_parentheses = true 274 | ij_typescript_space_before_try_left_brace = true 275 | ij_typescript_space_before_type_colon = false 276 | ij_typescript_space_before_unary_not = false 277 | ij_typescript_space_before_while_keyword = true 278 | ij_typescript_space_before_while_left_brace = true 279 | ij_typescript_space_before_while_parentheses = true 280 | ij_typescript_spaces_around_additive_operators = true 281 | ij_typescript_spaces_around_arrow_function_operator = true 282 | ij_typescript_spaces_around_assignment_operators = true 283 | ij_typescript_spaces_around_bitwise_operators = true 284 | ij_typescript_spaces_around_equality_operators = true 285 | ij_typescript_spaces_around_logical_operators = true 286 | ij_typescript_spaces_around_multiplicative_operators = true 287 | ij_typescript_spaces_around_relational_operators = true 288 | ij_typescript_spaces_around_shift_operators = true 289 | ij_typescript_spaces_around_unary_operator = false 290 | ij_typescript_spaces_within_array_initializer_brackets = false 291 | ij_typescript_spaces_within_brackets = false 292 | ij_typescript_spaces_within_catch_parentheses = false 293 | ij_typescript_spaces_within_for_parentheses = false 294 | ij_typescript_spaces_within_if_parentheses = false 295 | ij_typescript_spaces_within_imports = true 296 | ij_typescript_spaces_within_interpolation_expressions = true 297 | ij_typescript_spaces_within_method_call_parentheses = false 298 | ij_typescript_spaces_within_method_parentheses = false 299 | ij_typescript_spaces_within_object_literal_braces = true 300 | ij_typescript_spaces_within_object_type_braces = true 301 | ij_typescript_spaces_within_parentheses = false 302 | ij_typescript_spaces_within_switch_parentheses = false 303 | ij_typescript_spaces_within_type_assertion = false 304 | ij_typescript_spaces_within_union_types = true 305 | ij_typescript_spaces_within_while_parentheses = false 306 | ij_typescript_special_else_if_treatment = true 307 | ij_typescript_ternary_operation_signs_on_next_line = false 308 | ij_typescript_ternary_operation_wrap = off 309 | ij_typescript_union_types_wrap = on_every_item 310 | ij_typescript_use_chained_calls_group_indents = false 311 | ij_typescript_use_double_quotes = false 312 | ij_typescript_use_explicit_js_extension = auto 313 | ij_typescript_use_path_mapping = always 314 | ij_typescript_use_public_modifier = false 315 | ij_typescript_use_semicolon_after_statement = false 316 | ij_typescript_var_declaration_wrap = normal 317 | ij_typescript_while_brace_force = never 318 | ij_typescript_while_on_new_line = false 319 | ij_typescript_wrap_comments = false 320 | 321 | [{*.bash,*.sh,*.zsh}] 322 | ij_shell_binary_ops_start_line = false 323 | ij_shell_keep_column_alignment_padding = false 324 | ij_shell_minify_program = false 325 | ij_shell_redirect_followed_by_space = false 326 | ij_shell_switch_cases_indented = false 327 | ij_shell_use_unix_line_separator = true 328 | 329 | [{*.cjs,*.js}] 330 | ij_continuation_indent_size = 4 331 | ij_javascript_align_imports = false 332 | ij_javascript_align_multiline_array_initializer_expression = false 333 | ij_javascript_align_multiline_binary_operation = false 334 | ij_javascript_align_multiline_chained_methods = false 335 | ij_javascript_align_multiline_extends_list = false 336 | ij_javascript_align_multiline_for = true 337 | ij_javascript_align_multiline_parameters = true 338 | ij_javascript_align_multiline_parameters_in_calls = false 339 | ij_javascript_align_multiline_ternary_operation = false 340 | ij_javascript_align_object_properties = 0 341 | ij_javascript_align_union_types = false 342 | ij_javascript_align_var_statements = 1 343 | ij_javascript_array_initializer_new_line_after_left_brace = true 344 | ij_javascript_array_initializer_right_brace_on_new_line = true 345 | ij_javascript_array_initializer_wrap = on_every_item 346 | ij_javascript_assignment_wrap = off 347 | ij_javascript_binary_operation_sign_on_next_line = false 348 | ij_javascript_binary_operation_wrap = off 349 | ij_javascript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/** 350 | ij_javascript_blank_lines_after_imports = 1 351 | ij_javascript_blank_lines_around_class = 1 352 | ij_javascript_blank_lines_around_field = 0 353 | ij_javascript_blank_lines_around_function = 1 354 | ij_javascript_blank_lines_around_method = 1 355 | ij_javascript_block_brace_style = end_of_line 356 | ij_javascript_block_comment_add_space = false 357 | ij_javascript_block_comment_at_first_column = true 358 | ij_javascript_call_parameters_new_line_after_left_paren = false 359 | ij_javascript_call_parameters_right_paren_on_new_line = false 360 | ij_javascript_call_parameters_wrap = off 361 | ij_javascript_catch_on_new_line = false 362 | ij_javascript_chained_call_dot_on_new_line = true 363 | ij_javascript_class_brace_style = next_line 364 | ij_javascript_comma_on_new_line = false 365 | ij_javascript_do_while_brace_force = never 366 | ij_javascript_else_on_new_line = false 367 | ij_javascript_enforce_trailing_comma = remove 368 | ij_javascript_extends_keyword_wrap = off 369 | ij_javascript_extends_list_wrap = off 370 | ij_javascript_field_prefix = _ 371 | ij_javascript_file_name_style = lisp_case 372 | ij_javascript_finally_on_new_line = false 373 | ij_javascript_for_brace_force = never 374 | ij_javascript_for_statement_new_line_after_left_paren = false 375 | ij_javascript_for_statement_right_paren_on_new_line = false 376 | ij_javascript_for_statement_wrap = off 377 | ij_javascript_force_quote_style = true 378 | ij_javascript_force_semicolon_style = true 379 | ij_javascript_function_expression_brace_style = end_of_line 380 | ij_javascript_if_brace_force = never 381 | ij_javascript_import_merge_members = global 382 | ij_javascript_import_prefer_absolute_path = true 383 | ij_javascript_import_sort_members = true 384 | ij_javascript_import_sort_module_name = false 385 | ij_javascript_import_use_node_resolution = true 386 | ij_javascript_imports_wrap = on_every_item 387 | ij_javascript_indent_case_from_switch = true 388 | ij_javascript_indent_chained_calls = true 389 | ij_javascript_indent_package_children = 0 390 | ij_javascript_jsx_attribute_value = braces 391 | ij_javascript_keep_blank_lines_in_code = 1 392 | ij_javascript_keep_first_column_comment = true 393 | ij_javascript_keep_indents_on_empty_lines = false 394 | ij_javascript_keep_line_breaks = true 395 | ij_javascript_keep_simple_blocks_in_one_line = false 396 | ij_javascript_keep_simple_methods_in_one_line = false 397 | ij_javascript_line_comment_add_space = false 398 | ij_javascript_line_comment_at_first_column = false 399 | ij_javascript_method_brace_style = end_of_line 400 | ij_javascript_method_call_chain_wrap = off 401 | ij_javascript_method_parameters_new_line_after_left_paren = false 402 | ij_javascript_method_parameters_right_paren_on_new_line = false 403 | ij_javascript_method_parameters_wrap = off 404 | ij_javascript_object_literal_wrap = on_every_item 405 | ij_javascript_object_types_wrap = on_every_item 406 | ij_javascript_parentheses_expression_new_line_after_left_paren = false 407 | ij_javascript_parentheses_expression_right_paren_on_new_line = false 408 | ij_javascript_place_assignment_sign_on_next_line = false 409 | ij_javascript_prefer_as_type_cast = false 410 | ij_javascript_prefer_explicit_types_function_expression_returns = false 411 | ij_javascript_prefer_explicit_types_function_returns = false 412 | ij_javascript_prefer_explicit_types_vars_fields = false 413 | ij_javascript_prefer_parameters_wrap = false 414 | ij_javascript_reformat_c_style_comments = false 415 | ij_javascript_space_after_colon = true 416 | ij_javascript_space_after_comma = true 417 | ij_javascript_space_after_dots_in_rest_parameter = false 418 | ij_javascript_space_after_generator_mult = true 419 | ij_javascript_space_after_property_colon = true 420 | ij_javascript_space_after_quest = true 421 | ij_javascript_space_after_type_colon = true 422 | ij_javascript_space_after_unary_not = true 423 | ij_javascript_space_before_async_arrow_lparen = true 424 | ij_javascript_space_before_catch_keyword = true 425 | ij_javascript_space_before_catch_left_brace = true 426 | ij_javascript_space_before_catch_parentheses = true 427 | ij_javascript_space_before_class_lbrace = true 428 | ij_javascript_space_before_class_left_brace = true 429 | ij_javascript_space_before_colon = true 430 | ij_javascript_space_before_comma = false 431 | ij_javascript_space_before_do_left_brace = true 432 | ij_javascript_space_before_else_keyword = true 433 | ij_javascript_space_before_else_left_brace = true 434 | ij_javascript_space_before_finally_keyword = true 435 | ij_javascript_space_before_finally_left_brace = true 436 | ij_javascript_space_before_for_left_brace = true 437 | ij_javascript_space_before_for_parentheses = true 438 | ij_javascript_space_before_for_semicolon = false 439 | ij_javascript_space_before_function_left_parenth = true 440 | ij_javascript_space_before_generator_mult = false 441 | ij_javascript_space_before_if_left_brace = true 442 | ij_javascript_space_before_if_parentheses = true 443 | ij_javascript_space_before_method_call_parentheses = false 444 | ij_javascript_space_before_method_left_brace = true 445 | ij_javascript_space_before_method_parentheses = false 446 | ij_javascript_space_before_property_colon = false 447 | ij_javascript_space_before_quest = true 448 | ij_javascript_space_before_switch_left_brace = true 449 | ij_javascript_space_before_switch_parentheses = true 450 | ij_javascript_space_before_try_left_brace = true 451 | ij_javascript_space_before_type_colon = false 452 | ij_javascript_space_before_unary_not = false 453 | ij_javascript_space_before_while_keyword = true 454 | ij_javascript_space_before_while_left_brace = true 455 | ij_javascript_space_before_while_parentheses = true 456 | ij_javascript_spaces_around_additive_operators = true 457 | ij_javascript_spaces_around_arrow_function_operator = true 458 | ij_javascript_spaces_around_assignment_operators = true 459 | ij_javascript_spaces_around_bitwise_operators = true 460 | ij_javascript_spaces_around_equality_operators = true 461 | ij_javascript_spaces_around_logical_operators = true 462 | ij_javascript_spaces_around_multiplicative_operators = true 463 | ij_javascript_spaces_around_relational_operators = true 464 | ij_javascript_spaces_around_shift_operators = true 465 | ij_javascript_spaces_around_unary_operator = false 466 | ij_javascript_spaces_within_array_initializer_brackets = false 467 | ij_javascript_spaces_within_brackets = false 468 | ij_javascript_spaces_within_catch_parentheses = false 469 | ij_javascript_spaces_within_for_parentheses = false 470 | ij_javascript_spaces_within_if_parentheses = false 471 | ij_javascript_spaces_within_imports = true 472 | ij_javascript_spaces_within_interpolation_expressions = true 473 | ij_javascript_spaces_within_method_call_parentheses = false 474 | ij_javascript_spaces_within_method_parentheses = false 475 | ij_javascript_spaces_within_object_literal_braces = true 476 | ij_javascript_spaces_within_object_type_braces = true 477 | ij_javascript_spaces_within_parentheses = false 478 | ij_javascript_spaces_within_switch_parentheses = false 479 | ij_javascript_spaces_within_type_assertion = false 480 | ij_javascript_spaces_within_union_types = true 481 | ij_javascript_spaces_within_while_parentheses = false 482 | ij_javascript_special_else_if_treatment = true 483 | ij_javascript_ternary_operation_signs_on_next_line = false 484 | ij_javascript_ternary_operation_wrap = off 485 | ij_javascript_union_types_wrap = on_every_item 486 | ij_javascript_use_chained_calls_group_indents = false 487 | ij_javascript_use_double_quotes = false 488 | ij_javascript_use_explicit_js_extension = auto 489 | ij_javascript_use_path_mapping = always 490 | ij_javascript_use_public_modifier = false 491 | ij_javascript_use_semicolon_after_statement = false 492 | ij_javascript_var_declaration_wrap = on_every_item 493 | ij_javascript_while_brace_force = never 494 | ij_javascript_while_on_new_line = false 495 | ij_javascript_wrap_comments = false 496 | 497 | [{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}] 498 | ij_continuation_indent_size = 4 499 | ij_php_align_assignments = true 500 | ij_php_align_class_constants = true 501 | ij_php_align_enum_cases = true 502 | ij_php_align_group_field_declarations = false 503 | ij_php_align_inline_comments = false 504 | ij_php_align_key_value_pairs = true 505 | ij_php_align_match_arm_bodies = true 506 | ij_php_align_multiline_array_initializer_expression = true 507 | ij_php_align_multiline_binary_operation = false 508 | ij_php_align_multiline_chained_methods = false 509 | ij_php_align_multiline_extends_list = true 510 | ij_php_align_multiline_for = false 511 | ij_php_align_multiline_parameters = false 512 | ij_php_align_multiline_parameters_in_calls = false 513 | ij_php_align_multiline_ternary_operation = false 514 | ij_php_align_named_arguments = true 515 | ij_php_align_phpdoc_comments = false 516 | ij_php_align_phpdoc_param_names = false 517 | ij_php_anonymous_brace_style = end_of_line 518 | ij_php_api_weight = 28 519 | ij_php_array_initializer_new_line_after_left_brace = true 520 | ij_php_array_initializer_right_brace_on_new_line = true 521 | ij_php_array_initializer_wrap = on_every_item 522 | ij_php_assignment_wrap = on_every_item 523 | ij_php_attributes_wrap = split_into_lines 524 | ij_php_author_weight = 3 525 | ij_php_binary_operation_sign_on_next_line = true 526 | ij_php_binary_operation_wrap = on_every_item 527 | ij_php_blank_lines_after_class_header = 0 528 | ij_php_blank_lines_after_function = 1 529 | ij_php_blank_lines_after_imports = 1 530 | ij_php_blank_lines_after_opening_tag = 1 531 | ij_php_blank_lines_after_package = 1 532 | ij_php_blank_lines_around_class = 1 533 | ij_php_blank_lines_around_constants = 0 534 | ij_php_blank_lines_around_enum_cases = 0 535 | ij_php_blank_lines_around_field = 1 536 | ij_php_blank_lines_around_method = 1 537 | ij_php_blank_lines_before_class_end = 0 538 | ij_php_blank_lines_before_imports = 1 539 | ij_php_blank_lines_before_method_body = 0 540 | ij_php_blank_lines_before_package = 1 541 | ij_php_blank_lines_before_return_statement = 1 542 | ij_php_blank_lines_between_imports = 1 543 | ij_php_block_brace_style = end_of_line 544 | ij_php_call_parameters_new_line_after_left_paren = true 545 | ij_php_call_parameters_right_paren_on_new_line = true 546 | ij_php_call_parameters_wrap = on_every_item 547 | ij_php_catch_on_new_line = true 548 | ij_php_category_weight = 28 549 | ij_php_class_brace_style = next_line 550 | ij_php_comma_after_last_argument = false 551 | ij_php_comma_after_last_array_element = true 552 | ij_php_comma_after_last_closure_use_var = false 553 | ij_php_comma_after_last_match_arm = true 554 | ij_php_comma_after_last_parameter = false 555 | ij_php_concat_spaces = true 556 | ij_php_copyright_weight = 4 557 | ij_php_deprecated_weight = 0 558 | ij_php_do_while_brace_force = always 559 | ij_php_else_if_style = combine 560 | ij_php_else_on_new_line = true 561 | ij_php_example_weight = 28 562 | ij_php_extends_keyword_wrap = normal 563 | ij_php_extends_list_wrap = on_every_item 564 | ij_php_fields_default_visibility = protected 565 | ij_php_filesource_weight = 28 566 | ij_php_finally_on_new_line = true 567 | ij_php_for_brace_force = always 568 | ij_php_for_statement_new_line_after_left_paren = false 569 | ij_php_for_statement_right_paren_on_new_line = false 570 | ij_php_for_statement_wrap = normal 571 | ij_php_force_empty_methods_in_one_line = true 572 | ij_php_force_short_declaration_array_style = true 573 | ij_php_getters_setters_naming_style = camel_case 574 | ij_php_getters_setters_order_style = getters_first 575 | ij_php_global_weight = 28 576 | ij_php_group_use_wrap = on_every_item 577 | ij_php_if_brace_force = always 578 | ij_php_if_lparen_on_next_line = true 579 | ij_php_if_rparen_on_next_line = true 580 | ij_php_ignore_weight = 28 581 | ij_php_import_sorting = alphabetic 582 | ij_php_indent_break_from_case = true 583 | ij_php_indent_case_from_switch = true 584 | ij_php_indent_code_in_php_tags = false 585 | ij_php_internal_weight = 1 586 | ij_php_keep_blank_lines_after_lbrace = 1 587 | ij_php_keep_blank_lines_before_right_brace = 0 588 | ij_php_keep_blank_lines_in_code = 1 589 | ij_php_keep_blank_lines_in_declarations = 0 590 | ij_php_keep_control_statement_in_one_line = false 591 | ij_php_keep_first_column_comment = false 592 | ij_php_keep_indents_on_empty_lines = false 593 | ij_php_keep_line_breaks = true 594 | ij_php_keep_rparen_and_lbrace_on_one_line = true 595 | ij_php_keep_simple_classes_in_one_line = true 596 | ij_php_keep_simple_methods_in_one_line = true 597 | ij_php_lambda_brace_style = end_of_line 598 | ij_php_license_weight = 5 599 | ij_php_line_comment_add_space = false 600 | ij_php_line_comment_at_first_column = false 601 | ij_php_link_weight = 7 602 | ij_php_lower_case_boolean_const = true 603 | ij_php_lower_case_keywords = true 604 | ij_php_lower_case_null_const = true 605 | ij_php_method_brace_style = next_line 606 | ij_php_method_call_chain_wrap = on_every_item 607 | ij_php_method_parameters_new_line_after_left_paren = true 608 | ij_php_method_parameters_right_paren_on_new_line = true 609 | ij_php_method_parameters_wrap = on_every_item 610 | ij_php_method_weight = 13 611 | ij_php_modifier_list_wrap = false 612 | ij_php_multiline_chained_calls_semicolon_on_new_line = false 613 | ij_php_namespace_brace_style = 2 614 | ij_php_new_line_after_php_opening_tag = true 615 | ij_php_null_type_position = in_the_end 616 | ij_php_package_weight = 28 617 | ij_php_param_weight = 9 618 | ij_php_parameters_attributes_wrap = split_into_lines 619 | ij_php_parentheses_expression_new_line_after_left_paren = false 620 | ij_php_parentheses_expression_right_paren_on_new_line = false 621 | ij_php_phpdoc_blank_line_before_tags = true 622 | ij_php_phpdoc_blank_lines_around_parameters = true 623 | ij_php_phpdoc_keep_blank_lines = true 624 | ij_php_phpdoc_param_spaces_between_name_and_description = 2 625 | ij_php_phpdoc_param_spaces_between_tag_and_type = 2 626 | ij_php_phpdoc_param_spaces_between_type_and_name = 2 627 | ij_php_phpdoc_use_fqcn = true 628 | ij_php_phpdoc_wrap_long_lines = true 629 | ij_php_place_assignment_sign_on_next_line = false 630 | ij_php_place_parens_for_constructor = 1 631 | ij_php_property_read_weight = 11 632 | ij_php_property_weight = 10 633 | ij_php_property_write_weight = 12 634 | ij_php_return_type_on_new_line = false 635 | ij_php_return_weight = 15 636 | ij_php_see_weight = 6 637 | ij_php_since_weight = 2 638 | ij_php_sort_phpdoc_elements = true 639 | ij_php_space_after_colon = true 640 | ij_php_space_after_colon_in_enum_backed_type = true 641 | ij_php_space_after_colon_in_named_argument = true 642 | ij_php_space_after_colon_in_return_type = true 643 | ij_php_space_after_comma = true 644 | ij_php_space_after_for_semicolon = true 645 | ij_php_space_after_quest = true 646 | ij_php_space_after_type_cast = true 647 | ij_php_space_after_unary_not = true 648 | ij_php_space_before_array_initializer_left_brace = true 649 | ij_php_space_before_catch_keyword = true 650 | ij_php_space_before_catch_left_brace = true 651 | ij_php_space_before_catch_parentheses = true 652 | ij_php_space_before_class_left_brace = true 653 | ij_php_space_before_closure_left_parenthesis = true 654 | ij_php_space_before_colon = true 655 | ij_php_space_before_colon_in_enum_backed_type = false 656 | ij_php_space_before_colon_in_named_argument = false 657 | ij_php_space_before_colon_in_return_type = false 658 | ij_php_space_before_comma = false 659 | ij_php_space_before_do_left_brace = true 660 | ij_php_space_before_else_keyword = true 661 | ij_php_space_before_else_left_brace = true 662 | ij_php_space_before_finally_keyword = true 663 | ij_php_space_before_finally_left_brace = true 664 | ij_php_space_before_for_left_brace = true 665 | ij_php_space_before_for_parentheses = true 666 | ij_php_space_before_for_semicolon = false 667 | ij_php_space_before_if_left_brace = true 668 | ij_php_space_before_if_parentheses = true 669 | ij_php_space_before_method_call_parentheses = false 670 | ij_php_space_before_method_left_brace = true 671 | ij_php_space_before_method_parentheses = false 672 | ij_php_space_before_quest = true 673 | ij_php_space_before_short_closure_left_parenthesis = true 674 | ij_php_space_before_switch_left_brace = true 675 | ij_php_space_before_switch_parentheses = true 676 | ij_php_space_before_try_left_brace = true 677 | ij_php_space_before_unary_not = false 678 | ij_php_space_before_while_keyword = true 679 | ij_php_space_before_while_left_brace = true 680 | ij_php_space_before_while_parentheses = true 681 | ij_php_space_between_ternary_quest_and_colon = false 682 | ij_php_spaces_around_additive_operators = true 683 | ij_php_spaces_around_arrow = false 684 | ij_php_spaces_around_assignment_in_declare = false 685 | ij_php_spaces_around_assignment_operators = true 686 | ij_php_spaces_around_bitwise_operators = true 687 | ij_php_spaces_around_equality_operators = true 688 | ij_php_spaces_around_logical_operators = true 689 | ij_php_spaces_around_multiplicative_operators = true 690 | ij_php_spaces_around_null_coalesce_operator = true 691 | ij_php_spaces_around_pipe_in_union_type = false 692 | ij_php_spaces_around_relational_operators = true 693 | ij_php_spaces_around_shift_operators = true 694 | ij_php_spaces_around_unary_operator = false 695 | ij_php_spaces_around_var_within_brackets = false 696 | ij_php_spaces_within_array_initializer_braces = false 697 | ij_php_spaces_within_brackets = false 698 | ij_php_spaces_within_catch_parentheses = false 699 | ij_php_spaces_within_for_parentheses = false 700 | ij_php_spaces_within_if_parentheses = false 701 | ij_php_spaces_within_method_call_parentheses = false 702 | ij_php_spaces_within_method_parentheses = false 703 | ij_php_spaces_within_parentheses = false 704 | ij_php_spaces_within_short_echo_tags = true 705 | ij_php_spaces_within_switch_parentheses = false 706 | ij_php_spaces_within_while_parentheses = false 707 | ij_php_special_else_if_treatment = true 708 | ij_php_subpackage_weight = 28 709 | ij_php_ternary_operation_signs_on_next_line = true 710 | ij_php_ternary_operation_wrap = on_every_item 711 | ij_php_throws_weight = 14 712 | ij_php_todo_weight = 28 713 | ij_php_treat_multiline_arrays_and_lambdas_multiline = false 714 | ij_php_unknown_tag_weight = 28 715 | ij_php_upper_case_boolean_const = false 716 | ij_php_upper_case_null_const = false 717 | ij_php_uses_weight = 28 718 | ij_php_var_weight = 28 719 | ij_php_variable_naming_style = camel_case 720 | ij_php_version_weight = 8 721 | ij_php_while_brace_force = always 722 | ij_php_while_on_new_line = true 723 | 724 | [{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,composer.lock,jest.config}] 725 | ij_continuation_indent_size = 4 726 | ij_json_array_wrapping = on_every_item 727 | ij_json_keep_blank_lines_in_code = 1 728 | ij_json_keep_indents_on_empty_lines = false 729 | ij_json_keep_line_breaks = true 730 | ij_json_keep_trailing_comma = false 731 | ij_json_object_wrapping = on_every_item 732 | ij_json_property_alignment = do_not_align 733 | ij_json_space_after_colon = true 734 | ij_json_space_after_comma = true 735 | ij_json_space_before_colon = false 736 | ij_json_space_before_comma = false 737 | ij_json_spaces_within_braces = true 738 | ij_json_spaces_within_brackets = false 739 | ij_json_wrap_long_lines = false 740 | 741 | [{*.htm,*.html,*.sht,*.shtm,*.shtml}] 742 | ij_continuation_indent_size = 4 743 | ij_visual_guides = 160 744 | ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3 745 | ij_html_align_attributes = false 746 | ij_html_align_text = false 747 | ij_html_attribute_wrap = on_every_item 748 | ij_html_block_comment_add_space = false 749 | ij_html_block_comment_at_first_column = true 750 | ij_html_do_not_align_children_of_min_lines = 0 751 | ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p 752 | ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot 753 | ij_html_enforce_quotes = true 754 | ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var 755 | ij_html_keep_blank_lines = 2 756 | ij_html_keep_indents_on_empty_lines = false 757 | ij_html_keep_line_breaks = true 758 | ij_html_keep_line_breaks_in_text = true 759 | ij_html_keep_whitespaces = false 760 | ij_html_keep_whitespaces_inside = span,pre,textarea 761 | ij_html_line_comment_at_first_column = true 762 | ij_html_new_line_after_last_attribute = never 763 | ij_html_new_line_before_first_attribute = when_multiline 764 | ij_html_quote_style = double 765 | ij_html_remove_new_line_before_tags = br 766 | ij_html_space_after_tag_name = false 767 | ij_html_space_around_equality_in_attribute = false 768 | ij_html_space_inside_empty_tag = true 769 | ij_html_text_wrap = off 770 | 771 | [{*.http,*.rest}] 772 | indent_size = 0 773 | ij_continuation_indent_size = 4 774 | ij_http request_call_parameters_wrap = on_every_item 775 | 776 | [{*.markdown,*.md}] 777 | ij_markdown_force_one_space_after_blockquote_symbol = true 778 | ij_markdown_force_one_space_after_header_symbol = true 779 | ij_markdown_force_one_space_after_list_bullet = true 780 | ij_markdown_force_one_space_between_words = true 781 | ij_markdown_format_tables = true 782 | ij_markdown_insert_quote_arrows_on_wrap = true 783 | ij_markdown_keep_indents_on_empty_lines = false 784 | ij_markdown_keep_line_breaks_inside_text_blocks = true 785 | ij_markdown_max_lines_around_block_elements = 1 786 | ij_markdown_max_lines_around_header = 1 787 | ij_markdown_max_lines_between_paragraphs = 1 788 | ij_markdown_min_lines_around_block_elements = 1 789 | ij_markdown_min_lines_around_header = 2 790 | ij_markdown_min_lines_between_paragraphs = 1 791 | ij_markdown_wrap_text_if_long = true 792 | ij_markdown_wrap_text_inside_blockquotes = true 793 | 794 | [{*.yaml,*.yml}] 795 | ij_yaml_align_values_properties = do_not_align 796 | ij_yaml_autoinsert_sequence_marker = true 797 | ij_yaml_block_mapping_on_new_line = false 798 | ij_yaml_indent_sequence_value = true 799 | ij_yaml_keep_indents_on_empty_lines = false 800 | ij_yaml_keep_line_breaks = true 801 | ij_yaml_sequence_on_new_line = true 802 | ij_yaml_space_before_colon = false 803 | ij_yaml_spaces_within_braces = true 804 | ij_yaml_spaces_within_brackets = true 805 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM helldar/laravel-gitlab-ci:stable 2 | 3 | LABEL maintainer="Andrey Helldar" 4 | 5 | ARG INPUT_FIX 6 | ARG INPUT_GITHUB_TOKEN 7 | ARG INPUT_EDITORCONFIG 8 | ARG INPUT_DEPENDABOT 9 | ARG INPUT_NORMALIZE 10 | ARG INPUT_VERBOSE 11 | 12 | RUN composer global require dragon-code/codestyler:^4.0 13 | 14 | RUN echo "!!! ATTENTION !!!" 15 | RUN echo " " 16 | RUN echo "Starting with code styler version 4.2.0, we will no longer support a that container." 17 | RUN echo " " 18 | RUN echo "Use direct dependency installation instead." 19 | RUN echo "You can read more detailed information in the project README file." 20 | 21 | COPY shell /shell 22 | COPY entrypoint.sh /entrypoint.sh 23 | RUN chmod +x /entrypoint.sh 24 | 25 | ENTRYPOINT ["/entrypoint.sh"] 26 | -------------------------------------------------------------------------------- /The_Dragon_Code_phpStorm.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'The Dragon Code Styler' 2 | description: 'A tool to automatically fix PHP Coding Standards issues by The Dragon Code.' 3 | author: 'Andrey Helldar' 4 | inputs: 5 | github_token: 6 | description: 'GitHub token or PAT token.' 7 | required: false 8 | default: '${{ github.token }}' 9 | fix: 10 | description: 'Only shows which files would have been modified.' 11 | required: false 12 | default: 'false' 13 | editorconfig: 14 | description: 'Update .editorconfig file.' 15 | required: false 16 | default: 'true' 17 | dependabot: 18 | description: 'Update Dependabot rules.' 19 | required: false 20 | default: 'true' 21 | normalize: 22 | description: 'Normalize the composer.json file.' 23 | required: false 24 | default: 'true' 25 | verbose: 26 | description: 'Increase the verbosity of messages for debug' 27 | required: false 28 | default: 'false' 29 | runs: 30 | using: docker 31 | image: Dockerfile 32 | args: 33 | - '${{ inputs.github_token }}' 34 | - '${{ inputs.fix }}' 35 | - '${{ inputs.editorconfig }}' 36 | - '${{ inputs.dependabot }}' 37 | - '${{ inputs.normalize }}' 38 | - '${{ inputs.verbose }}' 39 | branding: 40 | icon: check 41 | color: purple 42 | -------------------------------------------------------------------------------- /builds/codestyle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheDragonCode/codestyler/85d4fef066f141424318e10b72c76ff77be09125/builds/codestyle -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dragon-code/codestyler", 3 | "description": "A tool to automatically fix Coding Style Standards issues by The Dragon Code.", 4 | "license": "MIT", 5 | "type": "project", 6 | "keywords": [ 7 | "php", 8 | "json", 9 | "format", 10 | "formatter", 11 | "lint", 12 | "linter", 13 | "style", 14 | "code style", 15 | "codestyle", 16 | "standard", 17 | "json", 18 | "yaml", 19 | "php", 20 | "php-cs" 21 | ], 22 | "authors": [ 23 | { 24 | "name": "Andrey Helldar", 25 | "email": "helldar@dragon-code.pro", 26 | "homepage": "https://dragon-code.pro" 27 | } 28 | ], 29 | "support": { 30 | "issues": "https://github.com/TheDragonCode/codestyler/issues", 31 | "source": "https://github.com/TheDragonCode/codestyler" 32 | }, 33 | "funding": [ 34 | { 35 | "type": "boosty", 36 | "url": "https://boosty.to/dragon-code" 37 | }, 38 | { 39 | "type": "yoomoney", 40 | "url": "https://yoomoney.ru/to/410012608840929" 41 | } 42 | ], 43 | "require": { 44 | "php": "^8.2", 45 | "ext-dom": "*", 46 | "ext-json": "*", 47 | "ext-libxml": "*", 48 | "ext-mbstring": "*", 49 | "ext-tokenizer": "*", 50 | "ext-xml": "*" 51 | }, 52 | "require-dev": { 53 | "archtechx/enums": "^1.1.1", 54 | "dragon-code/pretty-array": "^4.2", 55 | "dragon-code/support": "^6.16.0", 56 | "friendsofphp/php-cs-fixer": "^3.72.0", 57 | "illuminate/view": "^11.44.2", 58 | "kubawerlos/php-cs-fixer-custom-fixers": "^3.23.0", 59 | "laravel-zero/framework": "^11.36.1", 60 | "mockery/mockery": "^1.6.12", 61 | "nunomaduro/termwind": "^2.3", 62 | "pedrotroller/php-cs-custom-fixer": "^2.33.2", 63 | "pestphp/pest": "^3.7.4", 64 | "seld/jsonlint": "^1.11.0", 65 | "symfony/yaml": "^6.4.3 || ^7.2.3" 66 | }, 67 | "minimum-stability": "stable", 68 | "prefer-stable": true, 69 | "autoload": { 70 | "psr-4": { 71 | "App\\": "modules/laravel/pint/app/", 72 | "DragonCode\\CodeStyler\\": "app/" 73 | } 74 | }, 75 | "autoload-dev": { 76 | "psr-4": { 77 | "Tests\\": "tests/" 78 | } 79 | }, 80 | "bin": [ 81 | "builds/codestyle" 82 | ], 83 | "config": { 84 | "allow-plugins": { 85 | "dragon-code/codestyler": true, 86 | "ergebnis/composer-normalize": true, 87 | "pestphp/pest-plugin": true, 88 | "symfony/thanks": true 89 | }, 90 | "optimize-autoloader": true, 91 | "platform": { 92 | "php": "8.2.26" 93 | }, 94 | "preferred-install": "dist", 95 | "sort-packages": true 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /dev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | act -W '.github/workflows/code-style.yml' 4 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | export PATH="$HOME/.composer/vendor/bin:~/.composer/vendor/bin:./vendor/bin:/vendor/bin:/composer/vendor/bin:$HOME/.composer/vendor/bin:/var/www/vendor/bin:$HOME/.local/composer/vendor/bin:$COMPOSER_HOME/vendor/bin:$PATH" 4 | 5 | source /shell/functions.sh 6 | source /shell/config.sh 7 | source /shell/plugins.sh 8 | 9 | if [[ $(allowFix) == "true" ]]; then 10 | source /shell/editorconfig.sh 11 | source /shell/dependabot.sh 12 | source /shell/normalize.sh 13 | source /shell/fix.sh 14 | source /shell/thanks.sh 15 | 16 | source /shell/push.sh 17 | else 18 | source /shell/check.sh 19 | fi 20 | -------------------------------------------------------------------------------- /shell/check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | if [[ $INPUT_VERBOSE == "true" ]]; then 4 | codestyle --test --verbose 5 | else 6 | codestyle --test 7 | fi 8 | 9 | exitcode=$? 10 | 11 | exit $exitcode 12 | -------------------------------------------------------------------------------- /shell/config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | # Check GitHub Token 4 | [ -z "${INPUT_GITHUB_TOKEN}" ] && { 5 | echo 'Missing input "github_token".'; 6 | 7 | exit 1; 8 | }; 9 | 10 | # Set git config 11 | git config --global user.email "action@github.com" 12 | git config --global user.name "GitHub Action" 13 | 14 | # Set safe directory 15 | git config --global --add safe.directory /github/workspace 16 | -------------------------------------------------------------------------------- /shell/dependabot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | IS_DIRTY_DEPENDABOT=0 4 | 5 | if [[ $(allow "$INPUT_DEPENDABOT") == "true" ]]; then 6 | IS_DIRTY_DEPENDABOT=1 7 | 8 | if [[ $INPUT_VERBOSE == "true" ]]; then 9 | codestyle dependabot --verbose 10 | else 11 | codestyle dependabot 12 | fi 13 | 14 | { git add .github/dependabot.yml && git commit -a -m "🔄️ Updated Dependabot rules"; } || IS_DIRTY_DEPENDABOT=0 15 | fi 16 | -------------------------------------------------------------------------------- /shell/editorconfig.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | IS_DIRTY_EDITORCONFIG=0 4 | 5 | if [[ $(allow "$INPUT_EDITORCONFIG") == "true" ]]; then 6 | IS_DIRTY_EDITORCONFIG=1 7 | 8 | if [[ $INPUT_VERBOSE == "true" ]]; then 9 | codestyle editorconfig --verbose 10 | else 11 | codestyle editorconfig 12 | fi 13 | 14 | { git add .editorconfig && git commit -a -m "📖 Updated .editorconfig file"; } || IS_DIRTY_EDITORCONFIG=0 15 | fi 16 | -------------------------------------------------------------------------------- /shell/fix.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | IS_DIRTY_CODE=1 4 | 5 | if [[ $INPUT_VERBOSE == "true" ]]; then 6 | codestyle --verbose 7 | else 8 | codestyle 9 | fi 10 | 11 | { git add . && git commit -a -m "🧹 Fixed code-style"; } || IS_DIRTY_CODE=0 12 | -------------------------------------------------------------------------------- /shell/functions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | function allow() { 4 | local result="false" 5 | 6 | if [[ "$1" == "true" || "$1" == "1" ]]; then 7 | result="true" 8 | fi 9 | 10 | echo "$result" 11 | } 12 | 13 | function allowFix() { 14 | local result="false" 15 | 16 | if [[ "$(allow "$INPUT_FIX")" == "true" ]]; then 17 | result="true" 18 | fi 19 | 20 | echo "$result" 21 | } 22 | -------------------------------------------------------------------------------- /shell/normalize.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | IS_DIRTY_NORMALIZE=0 4 | 5 | if [[ $(allow "$INPUT_NORMALIZE") == "true" ]]; then 6 | composer global require ergebnis/composer-normalize 7 | 8 | if [[ -f "./composer.json" ]]; then 9 | IS_DIRTY_NORMALIZE=1 10 | 11 | if [[ $INPUT_VERBOSE == "true" ]]; then 12 | composer update --verbose 13 | composer normalize --verbose 14 | else 15 | composer update 16 | composer normalize 17 | fi 18 | 19 | { git add composer.json composer.lock && git commit -a -m "🦋 Normalized composer.json"; } || IS_DIRTY_NORMALIZE=0 20 | fi 21 | fi 22 | -------------------------------------------------------------------------------- /shell/plugins.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | IS_PLUGINS_CONFIG=1 4 | 5 | [ ! -z "${INPUT_GITHUB_TOKEN}" ] && { 6 | composer global config github-oauth.github.com ${INPUT_GITHUB_TOKEN} 7 | }; 8 | 9 | composer global config --no-plugins allow-plugins.dragon-code/codestyler true 10 | composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true 11 | composer global config --no-plugins allow-plugins.symfony/thanks true 12 | 13 | composer config --no-plugins allow-plugins.dragon-code/codestyler true 14 | composer config --no-plugins allow-plugins.ergebnis/composer-normalize true 15 | composer config --no-plugins allow-plugins.symfony/thanks true 16 | 17 | { git add composer.json composer.lock && git commit -a -m "💂 Updated permissions to run plugins"; } || IS_PLUGINS_CONFIG=0 18 | -------------------------------------------------------------------------------- /shell/push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | function isDirty() { 4 | local result="false" 5 | 6 | if [[ "$IS_DIRTY_DEPENDABOT" == "1" || "$IS_DIRTY_EDITORCONFIG" == "1" || "$IS_DIRTY_CODE" == "1" || "$IS_DIRTY_NORMALIZE" == "1" || "$IS_PLUGINS_CONFIG" == "1" ]]; then 7 | result="true" 8 | fi 9 | 10 | echo "$result" 11 | } 12 | 13 | echo "==========================" 14 | echo "= Changes Detector =" 15 | echo "==========================" 16 | echo " " 17 | echo "Plugins Config: $IS_PLUGINS_CONFIG" 18 | echo "Dependabot: $IS_DIRTY_DEPENDABOT" 19 | echo "EditorConfig: $IS_DIRTY_EDITORCONFIG" 20 | echo "Composer: $IS_DIRTY_NORMALIZE" 21 | echo "Code Style: $IS_DIRTY_CODE" 22 | echo " " 23 | echo "Is Dirty: $(isDirty)" 24 | echo "Allow to fix: $(allowFix)" 25 | echo " " 26 | 27 | if [[ $(isDirty) == "true" ]]; then 28 | git push 29 | fi 30 | -------------------------------------------------------------------------------- /shell/thanks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | if [[ ! -z "${INPUT_GITHUB_TOKEN}" ]]; then 4 | if [[ -f "./composer.json" ]]; then 5 | composer global require symfony/thanks 6 | 7 | composer thanks 8 | fi 9 | fi 10 | --------------------------------------------------------------------------------