├── .editorconfig ├── .gitignore ├── .idea ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── dictionaries │ └── Edoardo.xml └── inspectionProfiles │ └── Project_Default.xml ├── LICENSE ├── README.md ├── build.gradle.kts ├── change-notes ├── 0_1_0.html ├── 0_1_1.html ├── 0_1_2.html └── 0_1_3.html ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── images ├── example.png └── logo.png ├── plugin-description.html ├── settings.gradle.kts └── src └── main ├── kotlin └── com │ └── github │ └── lppedd │ └── cc │ └── commitlint │ ├── CommitlintConstants.kt │ ├── CommitlintIcons.kt │ └── CommitlintTokensProvider.kt └── resources ├── META-INF ├── plugin.xml ├── pluginIcon.svg └── pluginIcon_dark.svg └── icons └── commitlint.svg /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset = utf-8 3 | end_of_line = lf 4 | indent_size = 3 5 | indent_style = tab 6 | insert_final_newline = false 7 | max_line_length = 101 8 | tab_width = 3 9 | ij_continuation_indent_size = 8 10 | ij_formatter_off_tag = @formatter:off 11 | ij_formatter_on_tag = @formatter:on 12 | ij_formatter_tags_enabled = true 13 | ij_smart_tabs = true 14 | ij_wrap_on_typing = false 15 | 16 | [*.css] 17 | indent_size = 4 18 | indent_style = space 19 | tab_width = 4 20 | ij_smart_tabs = false 21 | ij_css_align_closing_brace_with_properties = false 22 | ij_css_blank_lines_around_nested_selector = 1 23 | ij_css_blank_lines_between_blocks = 1 24 | ij_css_brace_placement = end_of_line 25 | ij_css_enforce_quotes_on_format = false 26 | ij_css_hex_color_long_format = false 27 | ij_css_hex_color_lower_case = false 28 | ij_css_hex_color_short_format = false 29 | ij_css_hex_color_upper_case = false 30 | ij_css_keep_blank_lines_in_code = 2 31 | ij_css_keep_indents_on_empty_lines = false 32 | ij_css_keep_single_line_blocks = false 33 | 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 34 | ij_css_space_after_colon = true 35 | ij_css_space_before_opening_brace = true 36 | ij_css_use_double_quotes = true 37 | ij_css_value_alignment = do_not_align 38 | 39 | [*.feature] 40 | indent_size = 2 41 | indent_style = space 42 | tab_width = 4 43 | ij_smart_tabs = false 44 | ij_gherkin_keep_indents_on_empty_lines = false 45 | 46 | [*.java] 47 | indent_size = 2 48 | indent_style = space 49 | tab_width = 2 50 | ij_continuation_indent_size = 4 51 | ij_java_align_consecutive_assignments = false 52 | ij_java_align_consecutive_variable_declarations = false 53 | ij_java_align_group_field_declarations = false 54 | ij_java_align_multiline_annotation_parameters = false 55 | ij_java_align_multiline_array_initializer_expression = false 56 | ij_java_align_multiline_assignment = false 57 | ij_java_align_multiline_binary_operation = true 58 | ij_java_align_multiline_chained_methods = true 59 | ij_java_align_multiline_extends_list = true 60 | ij_java_align_multiline_for = false 61 | ij_java_align_multiline_method_parentheses = false 62 | ij_java_align_multiline_parameters = false 63 | ij_java_align_multiline_parameters_in_calls = false 64 | ij_java_align_multiline_parenthesized_expression = false 65 | ij_java_align_multiline_records = true 66 | ij_java_align_multiline_resources = false 67 | ij_java_align_multiline_ternary_operation = false 68 | ij_java_align_multiline_text_blocks = false 69 | ij_java_align_multiline_throws_list = true 70 | ij_java_align_subsequent_simple_methods = false 71 | ij_java_align_throws_keyword = false 72 | ij_java_annotation_parameter_wrap = normal 73 | ij_java_array_initializer_new_line_after_left_brace = true 74 | ij_java_array_initializer_right_brace_on_new_line = false 75 | ij_java_array_initializer_wrap = on_every_item 76 | ij_java_assert_statement_colon_on_next_line = false 77 | ij_java_assert_statement_wrap = off 78 | ij_java_assignment_wrap = normal 79 | ij_java_binary_operation_sign_on_next_line = true 80 | ij_java_binary_operation_wrap = normal 81 | ij_java_blank_lines_after_anonymous_class_header = 0 82 | ij_java_blank_lines_after_class_header = 0 83 | ij_java_blank_lines_after_imports = 1 84 | ij_java_blank_lines_after_package = 1 85 | ij_java_blank_lines_around_class = 1 86 | ij_java_blank_lines_around_field = 0 87 | ij_java_blank_lines_around_field_in_interface = 0 88 | ij_java_blank_lines_around_initializer = 1 89 | ij_java_blank_lines_around_method = 1 90 | ij_java_blank_lines_around_method_in_interface = 1 91 | ij_java_blank_lines_before_class_end = 0 92 | ij_java_blank_lines_before_imports = 0 93 | ij_java_blank_lines_before_method_body = 0 94 | ij_java_blank_lines_before_package = 0 95 | ij_java_block_brace_style = end_of_line 96 | ij_java_block_comment_at_first_column = false 97 | ij_java_call_parameters_new_line_after_left_paren = true 98 | ij_java_call_parameters_right_paren_on_new_line = false 99 | ij_java_call_parameters_wrap = on_every_item 100 | ij_java_case_statement_on_separate_line = true 101 | ij_java_catch_on_new_line = false 102 | ij_java_class_annotation_wrap = split_into_lines 103 | ij_java_class_brace_style = end_of_line 104 | ij_java_class_count_to_use_import_on_demand = 6 105 | ij_java_class_names_in_javadoc = 1 106 | ij_java_do_not_indent_top_level_class_members = false 107 | ij_java_do_not_wrap_after_single_annotation = true 108 | ij_java_do_while_brace_force = always 109 | ij_java_doc_add_blank_line_after_description = true 110 | ij_java_doc_add_blank_line_after_param_comments = false 111 | ij_java_doc_add_blank_line_after_return = false 112 | ij_java_doc_add_p_tag_on_empty_lines = true 113 | ij_java_doc_align_exception_comments = true 114 | ij_java_doc_align_param_comments = true 115 | ij_java_doc_do_not_wrap_if_one_line = true 116 | ij_java_doc_enable_formatting = true 117 | ij_java_doc_enable_leading_asterisks = true 118 | ij_java_doc_indent_on_continuation = true 119 | ij_java_doc_keep_empty_lines = true 120 | ij_java_doc_keep_empty_parameter_tag = false 121 | ij_java_doc_keep_empty_return_tag = false 122 | ij_java_doc_keep_empty_throws_tag = false 123 | ij_java_doc_keep_invalid_tags = true 124 | ij_java_doc_param_description_on_new_line = true 125 | ij_java_doc_preserve_line_breaks = true 126 | ij_java_doc_use_throws_not_exception_tag = true 127 | ij_java_else_on_new_line = false 128 | ij_java_entity_dd_suffix = EJB 129 | ij_java_entity_eb_suffix = Bean 130 | ij_java_entity_hi_suffix = Home 131 | ij_java_entity_lhi_prefix = Local 132 | ij_java_entity_lhi_suffix = Home 133 | ij_java_entity_li_prefix = Local 134 | ij_java_entity_pk_class = java.lang.String 135 | ij_java_entity_vo_suffix = VO 136 | ij_java_enum_constants_wrap = off 137 | ij_java_extends_keyword_wrap = normal 138 | ij_java_extends_list_wrap = normal 139 | ij_java_field_annotation_wrap = on_every_item 140 | ij_java_finally_on_new_line = false 141 | ij_java_for_brace_force = always 142 | ij_java_for_statement_new_line_after_left_paren = false 143 | ij_java_for_statement_right_paren_on_new_line = false 144 | ij_java_for_statement_wrap = off 145 | ij_java_generate_final_locals = true 146 | ij_java_generate_final_parameters = true 147 | ij_java_if_brace_force = always 148 | ij_java_imports_layout = $*, |, java.**, |, javax.**, |, net.**, |, org.**, |, com.**, |, *, | 149 | ij_java_indent_case_from_switch = true 150 | ij_java_insert_inner_class_imports = true 151 | ij_java_insert_override_annotation = true 152 | ij_java_keep_blank_lines_before_right_brace = 0 153 | ij_java_keep_blank_lines_between_package_declaration_and_header = 2 154 | ij_java_keep_blank_lines_in_code = 1 155 | ij_java_keep_blank_lines_in_declarations = 1 156 | ij_java_keep_control_statement_in_one_line = false 157 | ij_java_keep_first_column_comment = false 158 | ij_java_keep_indents_on_empty_lines = false 159 | ij_java_keep_line_breaks = true 160 | ij_java_keep_multiple_expressions_in_one_line = false 161 | ij_java_keep_simple_blocks_in_one_line = false 162 | ij_java_keep_simple_classes_in_one_line = true 163 | ij_java_keep_simple_lambdas_in_one_line = true 164 | ij_java_keep_simple_methods_in_one_line = true 165 | ij_java_label_indent_absolute = false 166 | ij_java_label_indent_size = 0 167 | ij_java_lambda_brace_style = end_of_line 168 | ij_java_layout_static_imports_separately = true 169 | ij_java_line_comment_add_space = true 170 | ij_java_line_comment_at_first_column = false 171 | ij_java_message_dd_suffix = EJB 172 | ij_java_message_eb_suffix = Bean 173 | ij_java_method_annotation_wrap = split_into_lines 174 | ij_java_method_brace_style = end_of_line 175 | ij_java_method_call_chain_wrap = on_every_item 176 | ij_java_method_parameters_new_line_after_left_paren = true 177 | ij_java_method_parameters_right_paren_on_new_line = false 178 | ij_java_method_parameters_wrap = split_into_lines 179 | ij_java_modifier_list_wrap = false 180 | ij_java_names_count_to_use_import_on_demand = 4 181 | ij_java_new_line_after_lparen_in_record_header = false 182 | ij_java_packages_to_use_import_on_demand = java.awt.*, javax.swing.* 183 | ij_java_parameter_annotation_wrap = on_every_item 184 | ij_java_parentheses_expression_new_line_after_left_paren = false 185 | ij_java_parentheses_expression_right_paren_on_new_line = false 186 | ij_java_place_assignment_sign_on_next_line = false 187 | ij_java_prefer_longer_names = true 188 | ij_java_prefer_parameters_wrap = true 189 | ij_java_record_components_wrap = normal 190 | ij_java_repeat_synchronized = true 191 | ij_java_replace_instanceof_and_cast = true 192 | ij_java_replace_null_check = true 193 | ij_java_replace_sum_lambda_with_method_ref = true 194 | ij_java_resource_list_new_line_after_left_paren = false 195 | ij_java_resource_list_right_paren_on_new_line = false 196 | ij_java_resource_list_wrap = on_every_item 197 | ij_java_rparen_on_new_line_in_record_header = false 198 | ij_java_session_dd_suffix = EJB 199 | ij_java_session_eb_suffix = Bean 200 | ij_java_session_hi_suffix = Home 201 | ij_java_session_lhi_prefix = Local 202 | ij_java_session_lhi_suffix = Home 203 | ij_java_session_li_prefix = Local 204 | ij_java_session_si_suffix = Service 205 | ij_java_space_after_closing_angle_bracket_in_type_argument = false 206 | ij_java_space_after_colon = true 207 | ij_java_space_after_comma = true 208 | ij_java_space_after_comma_in_type_arguments = true 209 | ij_java_space_after_for_semicolon = true 210 | ij_java_space_after_quest = true 211 | ij_java_space_after_type_cast = true 212 | ij_java_space_before_annotation_array_initializer_left_brace = false 213 | ij_java_space_before_annotation_parameter_list = false 214 | ij_java_space_before_array_initializer_left_brace = true 215 | ij_java_space_before_catch_keyword = true 216 | ij_java_space_before_catch_left_brace = true 217 | ij_java_space_before_catch_parentheses = true 218 | ij_java_space_before_class_left_brace = true 219 | ij_java_space_before_colon = true 220 | ij_java_space_before_colon_in_foreach = true 221 | ij_java_space_before_comma = false 222 | ij_java_space_before_do_left_brace = true 223 | ij_java_space_before_else_keyword = true 224 | ij_java_space_before_else_left_brace = true 225 | ij_java_space_before_finally_keyword = true 226 | ij_java_space_before_finally_left_brace = true 227 | ij_java_space_before_for_left_brace = true 228 | ij_java_space_before_for_parentheses = true 229 | ij_java_space_before_for_semicolon = false 230 | ij_java_space_before_if_left_brace = true 231 | ij_java_space_before_if_parentheses = true 232 | ij_java_space_before_method_call_parentheses = false 233 | ij_java_space_before_method_left_brace = true 234 | ij_java_space_before_method_parentheses = false 235 | ij_java_space_before_opening_angle_bracket_in_type_parameter = false 236 | ij_java_space_before_quest = true 237 | ij_java_space_before_switch_left_brace = true 238 | ij_java_space_before_switch_parentheses = true 239 | ij_java_space_before_synchronized_left_brace = true 240 | ij_java_space_before_synchronized_parentheses = true 241 | ij_java_space_before_try_left_brace = true 242 | ij_java_space_before_try_parentheses = true 243 | ij_java_space_before_type_parameter_list = false 244 | ij_java_space_before_while_keyword = true 245 | ij_java_space_before_while_left_brace = true 246 | ij_java_space_before_while_parentheses = true 247 | ij_java_space_inside_one_line_enum_braces = false 248 | ij_java_space_within_empty_array_initializer_braces = false 249 | ij_java_space_within_empty_method_call_parentheses = false 250 | ij_java_space_within_empty_method_parentheses = false 251 | ij_java_spaces_around_additive_operators = true 252 | ij_java_spaces_around_assignment_operators = true 253 | ij_java_spaces_around_bitwise_operators = true 254 | ij_java_spaces_around_equality_operators = true 255 | ij_java_spaces_around_lambda_arrow = true 256 | ij_java_spaces_around_logical_operators = true 257 | ij_java_spaces_around_method_ref_dbl_colon = false 258 | ij_java_spaces_around_multiplicative_operators = true 259 | ij_java_spaces_around_relational_operators = true 260 | ij_java_spaces_around_shift_operators = true 261 | ij_java_spaces_around_type_bounds_in_type_parameters = true 262 | ij_java_spaces_around_unary_operator = false 263 | ij_java_spaces_within_angle_brackets = false 264 | ij_java_spaces_within_annotation_parentheses = false 265 | ij_java_spaces_within_array_initializer_braces = false 266 | ij_java_spaces_within_braces = false 267 | ij_java_spaces_within_brackets = false 268 | ij_java_spaces_within_cast_parentheses = false 269 | ij_java_spaces_within_catch_parentheses = false 270 | ij_java_spaces_within_for_parentheses = false 271 | ij_java_spaces_within_if_parentheses = false 272 | ij_java_spaces_within_method_call_parentheses = false 273 | ij_java_spaces_within_method_parentheses = false 274 | ij_java_spaces_within_parentheses = false 275 | ij_java_spaces_within_switch_parentheses = false 276 | ij_java_spaces_within_synchronized_parentheses = false 277 | ij_java_spaces_within_try_parentheses = false 278 | ij_java_spaces_within_while_parentheses = false 279 | ij_java_special_else_if_treatment = true 280 | ij_java_subclass_name_suffix = Impl 281 | ij_java_ternary_operation_signs_on_next_line = true 282 | ij_java_ternary_operation_wrap = on_every_item 283 | ij_java_test_name_suffix = Test 284 | ij_java_throws_keyword_wrap = normal 285 | ij_java_throws_list_wrap = normal 286 | ij_java_use_external_annotations = false 287 | ij_java_use_fq_class_names = false 288 | ij_java_use_relative_indents = false 289 | ij_java_use_single_class_imports = true 290 | ij_java_variable_annotation_wrap = split_into_lines 291 | ij_java_visibility = private 292 | ij_java_while_brace_force = always 293 | ij_java_while_on_new_line = false 294 | ij_java_wrap_comments = true 295 | ij_java_wrap_first_method_in_call_chain = false 296 | ij_java_wrap_long_lines = false 297 | 298 | [*.less] 299 | indent_size = 2 300 | indent_style = space 301 | tab_width = 4 302 | ij_smart_tabs = false 303 | ij_less_align_closing_brace_with_properties = false 304 | ij_less_blank_lines_around_nested_selector = 1 305 | ij_less_blank_lines_between_blocks = 1 306 | ij_less_brace_placement = 0 307 | ij_less_enforce_quotes_on_format = false 308 | ij_less_hex_color_long_format = false 309 | ij_less_hex_color_lower_case = false 310 | ij_less_hex_color_short_format = false 311 | ij_less_hex_color_upper_case = false 312 | ij_less_keep_blank_lines_in_code = 2 313 | ij_less_keep_indents_on_empty_lines = false 314 | ij_less_keep_single_line_blocks = false 315 | 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 316 | ij_less_space_after_colon = true 317 | ij_less_space_before_opening_brace = true 318 | ij_less_use_double_quotes = true 319 | ij_less_value_alignment = 0 320 | 321 | [*.sass] 322 | indent_size = 2 323 | indent_style = space 324 | tab_width = 4 325 | ij_smart_tabs = false 326 | ij_sass_align_closing_brace_with_properties = false 327 | ij_sass_blank_lines_around_nested_selector = 1 328 | ij_sass_blank_lines_between_blocks = 1 329 | ij_sass_brace_placement = 0 330 | ij_sass_enforce_quotes_on_format = false 331 | ij_sass_hex_color_long_format = false 332 | ij_sass_hex_color_lower_case = false 333 | ij_sass_hex_color_short_format = false 334 | ij_sass_hex_color_upper_case = false 335 | ij_sass_keep_blank_lines_in_code = 2 336 | ij_sass_keep_indents_on_empty_lines = false 337 | ij_sass_keep_single_line_blocks = false 338 | 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 339 | ij_sass_space_after_colon = true 340 | ij_sass_space_before_opening_brace = true 341 | ij_sass_use_double_quotes = true 342 | ij_sass_value_alignment = 0 343 | 344 | [*.scss] 345 | indent_size = 2 346 | indent_style = space 347 | tab_width = 4 348 | ij_smart_tabs = false 349 | ij_scss_align_closing_brace_with_properties = false 350 | ij_scss_blank_lines_around_nested_selector = 1 351 | ij_scss_blank_lines_between_blocks = 1 352 | ij_scss_brace_placement = 0 353 | ij_scss_enforce_quotes_on_format = false 354 | ij_scss_hex_color_long_format = false 355 | ij_scss_hex_color_lower_case = false 356 | ij_scss_hex_color_short_format = false 357 | ij_scss_hex_color_upper_case = false 358 | ij_scss_keep_blank_lines_in_code = 2 359 | ij_scss_keep_indents_on_empty_lines = false 360 | ij_scss_keep_single_line_blocks = false 361 | 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 362 | ij_scss_space_after_colon = true 363 | ij_scss_space_before_opening_brace = true 364 | ij_scss_use_double_quotes = true 365 | ij_scss_value_alignment = 0 366 | 367 | [.editorconfig] 368 | ij_editorconfig_align_group_field_declarations = false 369 | ij_editorconfig_space_after_colon = false 370 | ij_editorconfig_space_after_comma = true 371 | ij_editorconfig_space_before_colon = false 372 | ij_editorconfig_space_before_comma = false 373 | ij_editorconfig_spaces_around_assignment_operators = true 374 | 375 | [{*.ant, *.bpmn, *.fxml, *.jhm, *.jnlp, *.jrxml, *.pom, *.rng, *.tld, *.wadl, *.wsdd, *.wsdl, *.xjb, *.xml, *.xsd, *.xsl, *.xslt, *.xul}] 376 | indent_size = 2 377 | indent_style = space 378 | max_line_length = 120 379 | tab_width = 2 380 | ij_continuation_indent_size = 4 381 | ij_xml_align_attributes = true 382 | ij_xml_align_text = false 383 | ij_xml_attribute_wrap = normal 384 | ij_xml_block_comment_at_first_column = true 385 | ij_xml_keep_blank_lines = 1 386 | ij_xml_keep_indents_on_empty_lines = false 387 | ij_xml_keep_line_breaks = true 388 | ij_xml_keep_line_breaks_in_text = true 389 | ij_xml_keep_whitespaces = false 390 | ij_xml_keep_whitespaces_around_cdata = preserve 391 | ij_xml_keep_whitespaces_inside_cdata = false 392 | ij_xml_line_comment_at_first_column = true 393 | ij_xml_space_after_tag_name = false 394 | ij_xml_space_around_equals_in_attribute = false 395 | ij_xml_space_inside_empty_tag = true 396 | ij_xml_text_wrap = normal 397 | 398 | [{*.ats, *.ts}] 399 | indent_size = 4 400 | indent_style = space 401 | tab_width = 4 402 | ij_continuation_indent_size = 4 403 | ij_smart_tabs = false 404 | ij_typescript_align_imports = false 405 | ij_typescript_align_multiline_array_initializer_expression = false 406 | ij_typescript_align_multiline_binary_operation = false 407 | ij_typescript_align_multiline_chained_methods = false 408 | ij_typescript_align_multiline_extends_list = false 409 | ij_typescript_align_multiline_for = true 410 | ij_typescript_align_multiline_parameters = true 411 | ij_typescript_align_multiline_parameters_in_calls = false 412 | ij_typescript_align_multiline_ternary_operation = false 413 | ij_typescript_align_object_properties = 0 414 | ij_typescript_align_union_types = false 415 | ij_typescript_align_var_statements = 0 416 | ij_typescript_array_initializer_new_line_after_left_brace = false 417 | ij_typescript_array_initializer_right_brace_on_new_line = false 418 | ij_typescript_array_initializer_wrap = off 419 | ij_typescript_assignment_wrap = off 420 | ij_typescript_binary_operation_sign_on_next_line = false 421 | ij_typescript_binary_operation_wrap = off 422 | ij_typescript_blacklist_imports = rxjs/Rx, node_modules/**, **/node_modules/**, @angular/material, @angular/material/typings/** 423 | ij_typescript_blank_lines_after_imports = 1 424 | ij_typescript_blank_lines_around_class = 1 425 | ij_typescript_blank_lines_around_field = 0 426 | ij_typescript_blank_lines_around_field_in_interface = 0 427 | ij_typescript_blank_lines_around_function = 1 428 | ij_typescript_blank_lines_around_method = 1 429 | ij_typescript_blank_lines_around_method_in_interface = 1 430 | ij_typescript_block_brace_style = end_of_line 431 | ij_typescript_call_parameters_new_line_after_left_paren = false 432 | ij_typescript_call_parameters_right_paren_on_new_line = false 433 | ij_typescript_call_parameters_wrap = off 434 | ij_typescript_catch_on_new_line = false 435 | ij_typescript_chained_call_dot_on_new_line = true 436 | ij_typescript_class_brace_style = end_of_line 437 | ij_typescript_comma_on_new_line = false 438 | ij_typescript_do_while_brace_force = never 439 | ij_typescript_else_on_new_line = false 440 | ij_typescript_enforce_trailing_comma = keep 441 | ij_typescript_extends_keyword_wrap = off 442 | ij_typescript_extends_list_wrap = off 443 | ij_typescript_field_prefix = _ 444 | ij_typescript_file_name_style = relaxed 445 | ij_typescript_finally_on_new_line = false 446 | ij_typescript_for_brace_force = never 447 | ij_typescript_for_statement_new_line_after_left_paren = false 448 | ij_typescript_for_statement_right_paren_on_new_line = false 449 | ij_typescript_for_statement_wrap = off 450 | ij_typescript_force_quote_style = false 451 | ij_typescript_force_semicolon_style = false 452 | ij_typescript_function_expression_brace_style = end_of_line 453 | ij_typescript_if_brace_force = never 454 | ij_typescript_import_merge_members = global 455 | ij_typescript_import_prefer_absolute_path = global 456 | ij_typescript_import_sort_members = true 457 | ij_typescript_import_sort_module_name = false 458 | ij_typescript_import_use_node_resolution = true 459 | ij_typescript_imports_wrap = on_every_item 460 | ij_typescript_indent_case_from_switch = true 461 | ij_typescript_indent_chained_calls = true 462 | ij_typescript_indent_package_children = 0 463 | ij_typescript_jsdoc_include_types = false 464 | ij_typescript_jsx_attribute_value = braces 465 | ij_typescript_keep_blank_lines_in_code = 2 466 | ij_typescript_keep_first_column_comment = true 467 | ij_typescript_keep_indents_on_empty_lines = false 468 | ij_typescript_keep_line_breaks = true 469 | ij_typescript_keep_simple_blocks_in_one_line = false 470 | ij_typescript_keep_simple_methods_in_one_line = false 471 | ij_typescript_line_comment_add_space = true 472 | ij_typescript_line_comment_at_first_column = false 473 | ij_typescript_method_brace_style = end_of_line 474 | ij_typescript_method_call_chain_wrap = off 475 | ij_typescript_method_parameters_new_line_after_left_paren = false 476 | ij_typescript_method_parameters_right_paren_on_new_line = false 477 | ij_typescript_method_parameters_wrap = off 478 | ij_typescript_object_literal_wrap = on_every_item 479 | ij_typescript_parentheses_expression_new_line_after_left_paren = false 480 | ij_typescript_parentheses_expression_right_paren_on_new_line = false 481 | ij_typescript_place_assignment_sign_on_next_line = false 482 | ij_typescript_prefer_as_type_cast = false 483 | ij_typescript_prefer_explicit_types_function_expression_returns = false 484 | ij_typescript_prefer_explicit_types_function_returns = false 485 | ij_typescript_prefer_explicit_types_vars_fields = false 486 | ij_typescript_prefer_parameters_wrap = false 487 | ij_typescript_reformat_c_style_comments = false 488 | ij_typescript_space_after_colon = true 489 | ij_typescript_space_after_comma = true 490 | ij_typescript_space_after_dots_in_rest_parameter = false 491 | ij_typescript_space_after_generator_mult = true 492 | ij_typescript_space_after_property_colon = true 493 | ij_typescript_space_after_quest = true 494 | ij_typescript_space_after_type_colon = true 495 | ij_typescript_space_after_unary_not = false 496 | ij_typescript_space_before_async_arrow_lparen = true 497 | ij_typescript_space_before_catch_keyword = true 498 | ij_typescript_space_before_catch_left_brace = true 499 | ij_typescript_space_before_catch_parentheses = true 500 | ij_typescript_space_before_class_lbrace = true 501 | ij_typescript_space_before_class_left_brace = true 502 | ij_typescript_space_before_colon = true 503 | ij_typescript_space_before_comma = false 504 | ij_typescript_space_before_do_left_brace = true 505 | ij_typescript_space_before_else_keyword = true 506 | ij_typescript_space_before_else_left_brace = true 507 | ij_typescript_space_before_finally_keyword = true 508 | ij_typescript_space_before_finally_left_brace = true 509 | ij_typescript_space_before_for_left_brace = true 510 | ij_typescript_space_before_for_parentheses = true 511 | ij_typescript_space_before_for_semicolon = false 512 | ij_typescript_space_before_function_left_parenth = true 513 | ij_typescript_space_before_generator_mult = false 514 | ij_typescript_space_before_if_left_brace = true 515 | ij_typescript_space_before_if_parentheses = true 516 | ij_typescript_space_before_method_call_parentheses = false 517 | ij_typescript_space_before_method_left_brace = true 518 | ij_typescript_space_before_method_parentheses = false 519 | ij_typescript_space_before_property_colon = false 520 | ij_typescript_space_before_quest = true 521 | ij_typescript_space_before_switch_left_brace = true 522 | ij_typescript_space_before_switch_parentheses = true 523 | ij_typescript_space_before_try_left_brace = true 524 | ij_typescript_space_before_type_colon = false 525 | ij_typescript_space_before_unary_not = false 526 | ij_typescript_space_before_while_keyword = true 527 | ij_typescript_space_before_while_left_brace = true 528 | ij_typescript_space_before_while_parentheses = true 529 | ij_typescript_spaces_around_additive_operators = true 530 | ij_typescript_spaces_around_arrow_function_operator = true 531 | ij_typescript_spaces_around_assignment_operators = true 532 | ij_typescript_spaces_around_bitwise_operators = true 533 | ij_typescript_spaces_around_equality_operators = true 534 | ij_typescript_spaces_around_logical_operators = true 535 | ij_typescript_spaces_around_multiplicative_operators = true 536 | ij_typescript_spaces_around_relational_operators = true 537 | ij_typescript_spaces_around_shift_operators = true 538 | ij_typescript_spaces_around_unary_operator = false 539 | ij_typescript_spaces_within_array_initializer_brackets = false 540 | ij_typescript_spaces_within_brackets = false 541 | ij_typescript_spaces_within_catch_parentheses = false 542 | ij_typescript_spaces_within_for_parentheses = false 543 | ij_typescript_spaces_within_if_parentheses = false 544 | ij_typescript_spaces_within_imports = false 545 | ij_typescript_spaces_within_interpolation_expressions = false 546 | ij_typescript_spaces_within_method_call_parentheses = false 547 | ij_typescript_spaces_within_method_parentheses = false 548 | ij_typescript_spaces_within_object_literal_braces = false 549 | ij_typescript_spaces_within_object_type_braces = true 550 | ij_typescript_spaces_within_parentheses = false 551 | ij_typescript_spaces_within_switch_parentheses = false 552 | ij_typescript_spaces_within_type_assertion = false 553 | ij_typescript_spaces_within_union_types = true 554 | ij_typescript_spaces_within_while_parentheses = false 555 | ij_typescript_special_else_if_treatment = true 556 | ij_typescript_ternary_operation_signs_on_next_line = false 557 | ij_typescript_ternary_operation_wrap = off 558 | ij_typescript_union_types_wrap = on_every_item 559 | ij_typescript_use_chained_calls_group_indents = false 560 | ij_typescript_use_double_quotes = true 561 | ij_typescript_use_explicit_js_extension = global 562 | ij_typescript_use_path_mapping = always 563 | ij_typescript_use_public_modifier = false 564 | ij_typescript_use_semicolon_after_statement = true 565 | ij_typescript_var_declaration_wrap = normal 566 | ij_typescript_while_brace_force = never 567 | ij_typescript_while_on_new_line = false 568 | ij_typescript_wrap_comments = false 569 | 570 | [{*.bash, *.sh, *.zsh}] 571 | indent_size = 2 572 | indent_style = space 573 | tab_width = 2 574 | ij_shell_binary_ops_start_line = false 575 | ij_shell_keep_column_alignment_padding = false 576 | ij_shell_minify_program = false 577 | ij_shell_redirect_followed_by_space = false 578 | ij_shell_switch_cases_indented = false 579 | 580 | [{*.cfc, *.cfm, *.cfml}] 581 | indent_size = 4 582 | indent_style = space 583 | tab_width = 4 584 | ij_smart_tabs = false 585 | ij_cfml_align_multiline_binary_operation = false 586 | ij_cfml_align_multiline_for = true 587 | ij_cfml_align_multiline_parameters = true 588 | ij_cfml_align_multiline_parameters_in_calls = false 589 | ij_cfml_align_multiline_ternary_operation = false 590 | ij_cfml_assignment_wrap = off 591 | ij_cfml_binary_operation_sign_on_next_line = false 592 | ij_cfml_binary_operation_wrap = off 593 | ij_cfml_block_brace_style = end_of_line 594 | ij_cfml_call_parameters_new_line_after_left_paren = false 595 | ij_cfml_call_parameters_right_paren_on_new_line = false 596 | ij_cfml_call_parameters_wrap = off 597 | ij_cfml_catch_on_new_line = false 598 | ij_cfml_else_on_new_line = false 599 | ij_cfml_for_statement_new_line_after_left_paren = false 600 | ij_cfml_for_statement_right_paren_on_new_line = false 601 | ij_cfml_for_statement_wrap = off 602 | ij_cfml_keep_blank_lines_in_code = 2 603 | ij_cfml_keep_first_column_comment = true 604 | ij_cfml_keep_indents_on_empty_lines = false 605 | ij_cfml_keep_line_breaks = true 606 | ij_cfml_method_brace_style = next_line 607 | ij_cfml_method_parameters_new_line_after_left_paren = false 608 | ij_cfml_method_parameters_right_paren_on_new_line = false 609 | ij_cfml_method_parameters_wrap = off 610 | ij_cfml_parentheses_expression_new_line_after_left_paren = false 611 | ij_cfml_parentheses_expression_right_paren_on_new_line = false 612 | ij_cfml_place_assignment_sign_on_next_line = false 613 | ij_cfml_space_after_colon = true 614 | ij_cfml_space_after_comma = true 615 | ij_cfml_space_after_for_semicolon = true 616 | ij_cfml_space_after_quest = true 617 | ij_cfml_space_before_catch_keyword = true 618 | ij_cfml_space_before_catch_left_brace = true 619 | ij_cfml_space_before_catch_parentheses = true 620 | ij_cfml_space_before_colon = true 621 | ij_cfml_space_before_comma = false 622 | ij_cfml_space_before_else_keyword = true 623 | ij_cfml_space_before_else_left_brace = true 624 | ij_cfml_space_before_for_left_brace = true 625 | ij_cfml_space_before_for_parentheses = true 626 | ij_cfml_space_before_for_semicolon = false 627 | ij_cfml_space_before_if_left_brace = true 628 | ij_cfml_space_before_if_parentheses = true 629 | ij_cfml_space_before_method_call_parentheses = false 630 | ij_cfml_space_before_method_left_brace = true 631 | ij_cfml_space_before_method_parentheses = false 632 | ij_cfml_space_before_quest = true 633 | ij_cfml_space_before_switch_left_brace = true 634 | ij_cfml_space_before_switch_parentheses = true 635 | ij_cfml_space_before_try_left_brace = true 636 | ij_cfml_space_before_while_keyword = true 637 | ij_cfml_space_before_while_left_brace = true 638 | ij_cfml_space_before_while_parentheses = true 639 | ij_cfml_spaces_around_additive_operators = true 640 | ij_cfml_spaces_around_assignment_operators = true 641 | ij_cfml_spaces_around_equality_operators = true 642 | ij_cfml_spaces_around_logical_operators = true 643 | ij_cfml_spaces_around_multiplicative_operators = true 644 | ij_cfml_spaces_around_relational_operators = true 645 | ij_cfml_spaces_around_unary_operator = false 646 | ij_cfml_spaces_within_catch_parentheses = false 647 | ij_cfml_spaces_within_for_parentheses = false 648 | ij_cfml_spaces_within_if_parentheses = false 649 | ij_cfml_spaces_within_method_call_parentheses = false 650 | ij_cfml_spaces_within_method_parentheses = false 651 | ij_cfml_spaces_within_switch_parentheses = false 652 | ij_cfml_spaces_within_while_parentheses = false 653 | ij_cfml_special_else_if_treatment = false 654 | ij_cfml_ternary_operation_signs_on_next_line = false 655 | ij_cfml_ternary_operation_wrap = off 656 | ij_cfml_while_on_new_line = false 657 | 658 | [{*.cjs, *.js}] 659 | ij_continuation_indent_size = 3 660 | ij_smart_tabs = false 661 | ij_javascript_align_imports = false 662 | ij_javascript_align_multiline_array_initializer_expression = false 663 | ij_javascript_align_multiline_binary_operation = false 664 | ij_javascript_align_multiline_chained_methods = false 665 | ij_javascript_align_multiline_extends_list = false 666 | ij_javascript_align_multiline_for = true 667 | ij_javascript_align_multiline_parameters = true 668 | ij_javascript_align_multiline_parameters_in_calls = false 669 | ij_javascript_align_multiline_ternary_operation = false 670 | ij_javascript_align_object_properties = 0 671 | ij_javascript_align_union_types = false 672 | ij_javascript_align_var_statements = 0 673 | ij_javascript_array_initializer_new_line_after_left_brace = false 674 | ij_javascript_array_initializer_right_brace_on_new_line = false 675 | ij_javascript_array_initializer_wrap = off 676 | ij_javascript_assignment_wrap = off 677 | ij_javascript_binary_operation_sign_on_next_line = false 678 | ij_javascript_binary_operation_wrap = off 679 | ij_javascript_blacklist_imports = rxjs/Rx, node_modules/**, **/node_modules/**, @angular/material, @angular/material/typings/** 680 | ij_javascript_blank_lines_after_imports = 1 681 | ij_javascript_blank_lines_around_class = 1 682 | ij_javascript_blank_lines_around_field = 0 683 | ij_javascript_blank_lines_around_function = 1 684 | ij_javascript_blank_lines_around_method = 1 685 | ij_javascript_block_brace_style = end_of_line 686 | ij_javascript_call_parameters_new_line_after_left_paren = false 687 | ij_javascript_call_parameters_right_paren_on_new_line = false 688 | ij_javascript_call_parameters_wrap = off 689 | ij_javascript_catch_on_new_line = false 690 | ij_javascript_chained_call_dot_on_new_line = true 691 | ij_javascript_class_brace_style = end_of_line 692 | ij_javascript_comma_on_new_line = false 693 | ij_javascript_do_while_brace_force = never 694 | ij_javascript_else_on_new_line = false 695 | ij_javascript_enforce_trailing_comma = remove 696 | ij_javascript_extends_keyword_wrap = off 697 | ij_javascript_extends_list_wrap = off 698 | ij_javascript_field_prefix = _ 699 | ij_javascript_file_name_style = relaxed 700 | ij_javascript_finally_on_new_line = false 701 | ij_javascript_for_brace_force = never 702 | ij_javascript_for_statement_new_line_after_left_paren = false 703 | ij_javascript_for_statement_right_paren_on_new_line = false 704 | ij_javascript_for_statement_wrap = off 705 | ij_javascript_force_quote_style = false 706 | ij_javascript_force_semicolon_style = true 707 | ij_javascript_function_expression_brace_style = end_of_line 708 | ij_javascript_if_brace_force = never 709 | ij_javascript_import_merge_members = global 710 | ij_javascript_import_prefer_absolute_path = global 711 | ij_javascript_import_sort_members = true 712 | ij_javascript_import_sort_module_name = false 713 | ij_javascript_import_use_node_resolution = true 714 | ij_javascript_imports_wrap = on_every_item 715 | ij_javascript_indent_case_from_switch = true 716 | ij_javascript_indent_chained_calls = true 717 | ij_javascript_indent_package_children = 0 718 | ij_javascript_jsx_attribute_value = braces 719 | ij_javascript_keep_blank_lines_in_code = 1 720 | ij_javascript_keep_first_column_comment = false 721 | ij_javascript_keep_indents_on_empty_lines = false 722 | ij_javascript_keep_line_breaks = true 723 | ij_javascript_keep_simple_blocks_in_one_line = false 724 | ij_javascript_keep_simple_methods_in_one_line = false 725 | ij_javascript_line_comment_add_space = true 726 | ij_javascript_line_comment_at_first_column = false 727 | ij_javascript_method_brace_style = end_of_line 728 | ij_javascript_method_call_chain_wrap = off 729 | ij_javascript_method_parameters_new_line_after_left_paren = false 730 | ij_javascript_method_parameters_right_paren_on_new_line = false 731 | ij_javascript_method_parameters_wrap = off 732 | ij_javascript_object_literal_wrap = on_every_item 733 | ij_javascript_parentheses_expression_new_line_after_left_paren = false 734 | ij_javascript_parentheses_expression_right_paren_on_new_line = false 735 | ij_javascript_place_assignment_sign_on_next_line = false 736 | ij_javascript_prefer_as_type_cast = false 737 | ij_javascript_prefer_explicit_types_function_expression_returns = false 738 | ij_javascript_prefer_explicit_types_function_returns = false 739 | ij_javascript_prefer_explicit_types_vars_fields = false 740 | ij_javascript_prefer_parameters_wrap = false 741 | ij_javascript_reformat_c_style_comments = true 742 | ij_javascript_space_after_colon = true 743 | ij_javascript_space_after_comma = true 744 | ij_javascript_space_after_dots_in_rest_parameter = false 745 | ij_javascript_space_after_generator_mult = true 746 | ij_javascript_space_after_property_colon = true 747 | ij_javascript_space_after_quest = true 748 | ij_javascript_space_after_type_colon = true 749 | ij_javascript_space_after_unary_not = false 750 | ij_javascript_space_before_async_arrow_lparen = true 751 | ij_javascript_space_before_catch_keyword = true 752 | ij_javascript_space_before_catch_left_brace = true 753 | ij_javascript_space_before_catch_parentheses = true 754 | ij_javascript_space_before_class_lbrace = true 755 | ij_javascript_space_before_class_left_brace = true 756 | ij_javascript_space_before_colon = true 757 | ij_javascript_space_before_comma = false 758 | ij_javascript_space_before_do_left_brace = true 759 | ij_javascript_space_before_else_keyword = true 760 | ij_javascript_space_before_else_left_brace = true 761 | ij_javascript_space_before_finally_keyword = true 762 | ij_javascript_space_before_finally_left_brace = true 763 | ij_javascript_space_before_for_left_brace = true 764 | ij_javascript_space_before_for_parentheses = true 765 | ij_javascript_space_before_for_semicolon = false 766 | ij_javascript_space_before_function_left_parenth = true 767 | ij_javascript_space_before_generator_mult = false 768 | ij_javascript_space_before_if_left_brace = true 769 | ij_javascript_space_before_if_parentheses = true 770 | ij_javascript_space_before_method_call_parentheses = false 771 | ij_javascript_space_before_method_left_brace = true 772 | ij_javascript_space_before_method_parentheses = false 773 | ij_javascript_space_before_property_colon = false 774 | ij_javascript_space_before_quest = true 775 | ij_javascript_space_before_switch_left_brace = true 776 | ij_javascript_space_before_switch_parentheses = true 777 | ij_javascript_space_before_try_left_brace = true 778 | ij_javascript_space_before_type_colon = false 779 | ij_javascript_space_before_unary_not = false 780 | ij_javascript_space_before_while_keyword = true 781 | ij_javascript_space_before_while_left_brace = true 782 | ij_javascript_space_before_while_parentheses = true 783 | ij_javascript_spaces_around_additive_operators = true 784 | ij_javascript_spaces_around_arrow_function_operator = true 785 | ij_javascript_spaces_around_assignment_operators = true 786 | ij_javascript_spaces_around_bitwise_operators = true 787 | ij_javascript_spaces_around_equality_operators = true 788 | ij_javascript_spaces_around_logical_operators = true 789 | ij_javascript_spaces_around_multiplicative_operators = true 790 | ij_javascript_spaces_around_relational_operators = true 791 | ij_javascript_spaces_around_shift_operators = true 792 | ij_javascript_spaces_around_unary_operator = false 793 | ij_javascript_spaces_within_array_initializer_brackets = false 794 | ij_javascript_spaces_within_brackets = false 795 | ij_javascript_spaces_within_catch_parentheses = false 796 | ij_javascript_spaces_within_for_parentheses = false 797 | ij_javascript_spaces_within_if_parentheses = false 798 | ij_javascript_spaces_within_imports = false 799 | ij_javascript_spaces_within_interpolation_expressions = false 800 | ij_javascript_spaces_within_method_call_parentheses = false 801 | ij_javascript_spaces_within_method_parentheses = false 802 | ij_javascript_spaces_within_object_literal_braces = false 803 | ij_javascript_spaces_within_object_type_braces = true 804 | ij_javascript_spaces_within_parentheses = false 805 | ij_javascript_spaces_within_switch_parentheses = false 806 | ij_javascript_spaces_within_type_assertion = false 807 | ij_javascript_spaces_within_union_types = true 808 | ij_javascript_spaces_within_while_parentheses = false 809 | ij_javascript_special_else_if_treatment = true 810 | ij_javascript_ternary_operation_signs_on_next_line = false 811 | ij_javascript_ternary_operation_wrap = off 812 | ij_javascript_union_types_wrap = on_every_item 813 | ij_javascript_use_chained_calls_group_indents = false 814 | ij_javascript_use_double_quotes = true 815 | ij_javascript_use_explicit_js_extension = global 816 | ij_javascript_use_path_mapping = always 817 | ij_javascript_use_public_modifier = false 818 | ij_javascript_use_semicolon_after_statement = true 819 | ij_javascript_var_declaration_wrap = normal 820 | ij_javascript_while_brace_force = never 821 | ij_javascript_while_on_new_line = false 822 | ij_javascript_wrap_comments = true 823 | 824 | [{*.gant, *.gradle, *.groovy, *.gy}] 825 | indent_size = 4 826 | indent_style = space 827 | tab_width = 4 828 | ij_smart_tabs = false 829 | ij_groovy_align_group_field_declarations = false 830 | ij_groovy_align_multiline_array_initializer_expression = false 831 | ij_groovy_align_multiline_assignment = false 832 | ij_groovy_align_multiline_binary_operation = false 833 | ij_groovy_align_multiline_chained_methods = false 834 | ij_groovy_align_multiline_extends_list = false 835 | ij_groovy_align_multiline_for = true 836 | ij_groovy_align_multiline_list_or_map = true 837 | ij_groovy_align_multiline_method_parentheses = false 838 | ij_groovy_align_multiline_parameters = true 839 | ij_groovy_align_multiline_parameters_in_calls = false 840 | ij_groovy_align_multiline_resources = true 841 | ij_groovy_align_multiline_ternary_operation = false 842 | ij_groovy_align_multiline_throws_list = false 843 | ij_groovy_align_named_args_in_map = true 844 | ij_groovy_align_throws_keyword = false 845 | ij_groovy_array_initializer_new_line_after_left_brace = false 846 | ij_groovy_array_initializer_right_brace_on_new_line = false 847 | ij_groovy_array_initializer_wrap = off 848 | ij_groovy_assert_statement_wrap = off 849 | ij_groovy_assignment_wrap = off 850 | ij_groovy_binary_operation_wrap = off 851 | ij_groovy_blank_lines_after_class_header = 0 852 | ij_groovy_blank_lines_after_imports = 1 853 | ij_groovy_blank_lines_after_package = 1 854 | ij_groovy_blank_lines_around_class = 1 855 | ij_groovy_blank_lines_around_field = 0 856 | ij_groovy_blank_lines_around_field_in_interface = 0 857 | ij_groovy_blank_lines_around_method = 1 858 | ij_groovy_blank_lines_around_method_in_interface = 1 859 | ij_groovy_blank_lines_before_imports = 1 860 | ij_groovy_blank_lines_before_method_body = 0 861 | ij_groovy_blank_lines_before_package = 0 862 | ij_groovy_block_brace_style = end_of_line 863 | ij_groovy_block_comment_at_first_column = true 864 | ij_groovy_call_parameters_new_line_after_left_paren = false 865 | ij_groovy_call_parameters_right_paren_on_new_line = false 866 | ij_groovy_call_parameters_wrap = off 867 | ij_groovy_catch_on_new_line = false 868 | ij_groovy_class_annotation_wrap = split_into_lines 869 | ij_groovy_class_brace_style = end_of_line 870 | ij_groovy_class_count_to_use_import_on_demand = 5 871 | ij_groovy_do_while_brace_force = never 872 | ij_groovy_else_on_new_line = false 873 | ij_groovy_enum_constants_wrap = off 874 | ij_groovy_extends_keyword_wrap = off 875 | ij_groovy_extends_list_wrap = off 876 | ij_groovy_field_annotation_wrap = split_into_lines 877 | ij_groovy_finally_on_new_line = false 878 | ij_groovy_for_brace_force = never 879 | ij_groovy_for_statement_new_line_after_left_paren = false 880 | ij_groovy_for_statement_right_paren_on_new_line = false 881 | ij_groovy_for_statement_wrap = off 882 | ij_groovy_if_brace_force = never 883 | ij_groovy_import_annotation_wrap = 2 884 | ij_groovy_indent_case_from_switch = true 885 | ij_groovy_indent_label_blocks = true 886 | ij_groovy_insert_inner_class_imports = false 887 | ij_groovy_keep_blank_lines_before_right_brace = 2 888 | ij_groovy_keep_blank_lines_in_code = 2 889 | ij_groovy_keep_blank_lines_in_declarations = 2 890 | ij_groovy_keep_control_statement_in_one_line = true 891 | ij_groovy_keep_first_column_comment = true 892 | ij_groovy_keep_indents_on_empty_lines = false 893 | ij_groovy_keep_line_breaks = true 894 | ij_groovy_keep_multiple_expressions_in_one_line = false 895 | ij_groovy_keep_simple_blocks_in_one_line = false 896 | ij_groovy_keep_simple_classes_in_one_line = true 897 | ij_groovy_keep_simple_lambdas_in_one_line = true 898 | ij_groovy_keep_simple_methods_in_one_line = true 899 | ij_groovy_label_indent_absolute = false 900 | ij_groovy_label_indent_size = 0 901 | ij_groovy_lambda_brace_style = end_of_line 902 | ij_groovy_layout_static_imports_separately = true 903 | ij_groovy_line_comment_add_space = false 904 | ij_groovy_line_comment_at_first_column = true 905 | ij_groovy_method_annotation_wrap = split_into_lines 906 | ij_groovy_method_brace_style = end_of_line 907 | ij_groovy_method_call_chain_wrap = off 908 | ij_groovy_method_parameters_new_line_after_left_paren = false 909 | ij_groovy_method_parameters_right_paren_on_new_line = false 910 | ij_groovy_method_parameters_wrap = off 911 | ij_groovy_modifier_list_wrap = false 912 | ij_groovy_names_count_to_use_import_on_demand = 3 913 | ij_groovy_parameter_annotation_wrap = off 914 | ij_groovy_parentheses_expression_new_line_after_left_paren = false 915 | ij_groovy_parentheses_expression_right_paren_on_new_line = false 916 | ij_groovy_prefer_parameters_wrap = false 917 | ij_groovy_resource_list_new_line_after_left_paren = false 918 | ij_groovy_resource_list_right_paren_on_new_line = false 919 | ij_groovy_resource_list_wrap = off 920 | ij_groovy_space_after_assert_separator = true 921 | ij_groovy_space_after_colon = true 922 | ij_groovy_space_after_comma = true 923 | ij_groovy_space_after_comma_in_type_arguments = true 924 | ij_groovy_space_after_for_semicolon = true 925 | ij_groovy_space_after_quest = true 926 | ij_groovy_space_after_type_cast = true 927 | ij_groovy_space_before_annotation_parameter_list = false 928 | ij_groovy_space_before_array_initializer_left_brace = false 929 | ij_groovy_space_before_assert_separator = false 930 | ij_groovy_space_before_catch_keyword = true 931 | ij_groovy_space_before_catch_left_brace = true 932 | ij_groovy_space_before_catch_parentheses = true 933 | ij_groovy_space_before_class_left_brace = true 934 | ij_groovy_space_before_closure_left_brace = true 935 | ij_groovy_space_before_colon = true 936 | ij_groovy_space_before_comma = false 937 | ij_groovy_space_before_do_left_brace = true 938 | ij_groovy_space_before_else_keyword = true 939 | ij_groovy_space_before_else_left_brace = true 940 | ij_groovy_space_before_finally_keyword = true 941 | ij_groovy_space_before_finally_left_brace = true 942 | ij_groovy_space_before_for_left_brace = true 943 | ij_groovy_space_before_for_parentheses = true 944 | ij_groovy_space_before_for_semicolon = false 945 | ij_groovy_space_before_if_left_brace = true 946 | ij_groovy_space_before_if_parentheses = true 947 | ij_groovy_space_before_method_call_parentheses = false 948 | ij_groovy_space_before_method_left_brace = true 949 | ij_groovy_space_before_method_parentheses = false 950 | ij_groovy_space_before_quest = true 951 | ij_groovy_space_before_switch_left_brace = true 952 | ij_groovy_space_before_switch_parentheses = true 953 | ij_groovy_space_before_synchronized_left_brace = true 954 | ij_groovy_space_before_synchronized_parentheses = true 955 | ij_groovy_space_before_try_left_brace = true 956 | ij_groovy_space_before_try_parentheses = true 957 | ij_groovy_space_before_while_keyword = true 958 | ij_groovy_space_before_while_left_brace = true 959 | ij_groovy_space_before_while_parentheses = true 960 | ij_groovy_space_in_named_argument = true 961 | ij_groovy_space_in_named_argument_before_colon = false 962 | ij_groovy_space_within_empty_array_initializer_braces = false 963 | ij_groovy_space_within_empty_method_call_parentheses = false 964 | ij_groovy_spaces_around_additive_operators = true 965 | ij_groovy_spaces_around_assignment_operators = true 966 | ij_groovy_spaces_around_bitwise_operators = true 967 | ij_groovy_spaces_around_equality_operators = true 968 | ij_groovy_spaces_around_lambda_arrow = true 969 | ij_groovy_spaces_around_logical_operators = true 970 | ij_groovy_spaces_around_multiplicative_operators = true 971 | ij_groovy_spaces_around_regex_operators = true 972 | ij_groovy_spaces_around_relational_operators = true 973 | ij_groovy_spaces_around_shift_operators = true 974 | ij_groovy_spaces_within_annotation_parentheses = false 975 | ij_groovy_spaces_within_array_initializer_braces = false 976 | ij_groovy_spaces_within_braces = true 977 | ij_groovy_spaces_within_brackets = false 978 | ij_groovy_spaces_within_cast_parentheses = false 979 | ij_groovy_spaces_within_catch_parentheses = false 980 | ij_groovy_spaces_within_for_parentheses = false 981 | ij_groovy_spaces_within_gstring_injection_braces = false 982 | ij_groovy_spaces_within_if_parentheses = false 983 | ij_groovy_spaces_within_list_or_map = false 984 | ij_groovy_spaces_within_method_call_parentheses = false 985 | ij_groovy_spaces_within_method_parentheses = false 986 | ij_groovy_spaces_within_parentheses = false 987 | ij_groovy_spaces_within_switch_parentheses = false 988 | ij_groovy_spaces_within_synchronized_parentheses = false 989 | ij_groovy_spaces_within_try_parentheses = false 990 | ij_groovy_spaces_within_tuple_expression = false 991 | ij_groovy_spaces_within_while_parentheses = false 992 | ij_groovy_special_else_if_treatment = true 993 | ij_groovy_ternary_operation_wrap = off 994 | ij_groovy_throws_keyword_wrap = off 995 | ij_groovy_throws_list_wrap = off 996 | ij_groovy_use_flying_geese_braces = false 997 | ij_groovy_use_fq_class_names = false 998 | ij_groovy_use_fq_class_names_in_javadoc = true 999 | ij_groovy_use_relative_indents = false 1000 | ij_groovy_use_single_class_imports = true 1001 | ij_groovy_variable_annotation_wrap = off 1002 | ij_groovy_while_brace_force = never 1003 | ij_groovy_while_on_new_line = false 1004 | ij_groovy_wrap_long_lines = false 1005 | 1006 | [{*.gradle.kts, *.kt, *.kts, *.main.kts}] 1007 | indent_size = 2 1008 | indent_style = space 1009 | max_line_length = 110 1010 | tab_width = 2 1011 | ij_continuation_indent_size = 4 1012 | ij_smart_tabs = false 1013 | ij_kotlin_align_in_columns_case_branch = false 1014 | ij_kotlin_align_multiline_binary_operation = true 1015 | ij_kotlin_align_multiline_extends_list = true 1016 | ij_kotlin_align_multiline_method_parentheses = false 1017 | ij_kotlin_align_multiline_parameters = true 1018 | ij_kotlin_align_multiline_parameters_in_calls = false 1019 | ij_kotlin_allow_trailing_comma = true 1020 | ij_kotlin_assignment_wrap = normal 1021 | ij_kotlin_blank_lines_after_class_header = 0 1022 | ij_kotlin_blank_lines_around_block_when_branches = 0 1023 | ij_kotlin_block_comment_at_first_column = false 1024 | ij_kotlin_call_parameters_new_line_after_left_paren = true 1025 | ij_kotlin_call_parameters_right_paren_on_new_line = false 1026 | ij_kotlin_call_parameters_wrap = on_every_item 1027 | ij_kotlin_catch_on_new_line = false 1028 | ij_kotlin_class_annotation_wrap = split_into_lines 1029 | ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL 1030 | ij_kotlin_continuation_indent_for_chained_calls = false 1031 | ij_kotlin_continuation_indent_for_expression_bodies = false 1032 | ij_kotlin_continuation_indent_in_argument_lists = false 1033 | ij_kotlin_continuation_indent_in_elvis = false 1034 | ij_kotlin_continuation_indent_in_if_conditions = true 1035 | ij_kotlin_continuation_indent_in_parameter_lists = true 1036 | ij_kotlin_continuation_indent_in_supertype_lists = true 1037 | ij_kotlin_else_on_new_line = false 1038 | ij_kotlin_enum_constants_wrap = off 1039 | ij_kotlin_extends_list_wrap = normal 1040 | ij_kotlin_field_annotation_wrap = on_every_item 1041 | ij_kotlin_finally_on_new_line = false 1042 | ij_kotlin_if_rparen_on_new_line = false 1043 | ij_kotlin_import_nested_classes = true 1044 | ij_kotlin_insert_whitespaces_in_simple_one_line_method = true 1045 | ij_kotlin_keep_blank_lines_before_right_brace = 1 1046 | ij_kotlin_keep_blank_lines_in_code = 1 1047 | ij_kotlin_keep_blank_lines_in_declarations = 1 1048 | ij_kotlin_keep_first_column_comment = true 1049 | ij_kotlin_keep_indents_on_empty_lines = false 1050 | ij_kotlin_keep_line_breaks = true 1051 | ij_kotlin_lbrace_on_next_line = false 1052 | ij_kotlin_line_comment_add_space = false 1053 | ij_kotlin_line_comment_at_first_column = false 1054 | ij_kotlin_method_annotation_wrap = split_into_lines 1055 | ij_kotlin_method_call_chain_wrap = on_every_item 1056 | ij_kotlin_method_parameters_new_line_after_left_paren = true 1057 | ij_kotlin_method_parameters_right_paren_on_new_line = false 1058 | ij_kotlin_method_parameters_wrap = on_every_item 1059 | ij_kotlin_name_count_to_use_star_import = 5 1060 | ij_kotlin_name_count_to_use_star_import_for_members = 3 1061 | ij_kotlin_parameter_annotation_wrap = off 1062 | ij_kotlin_space_after_comma = true 1063 | ij_kotlin_space_after_extend_colon = true 1064 | ij_kotlin_space_after_type_colon = true 1065 | ij_kotlin_space_before_catch_parentheses = true 1066 | ij_kotlin_space_before_comma = false 1067 | ij_kotlin_space_before_extend_colon = true 1068 | ij_kotlin_space_before_for_parentheses = true 1069 | ij_kotlin_space_before_if_parentheses = true 1070 | ij_kotlin_space_before_lambda_arrow = true 1071 | ij_kotlin_space_before_type_colon = false 1072 | ij_kotlin_space_before_when_parentheses = true 1073 | ij_kotlin_space_before_while_parentheses = true 1074 | ij_kotlin_spaces_around_additive_operators = true 1075 | ij_kotlin_spaces_around_assignment_operators = true 1076 | ij_kotlin_spaces_around_equality_operators = true 1077 | ij_kotlin_spaces_around_function_type_arrow = true 1078 | ij_kotlin_spaces_around_logical_operators = true 1079 | ij_kotlin_spaces_around_multiplicative_operators = true 1080 | ij_kotlin_spaces_around_range = false 1081 | ij_kotlin_spaces_around_relational_operators = true 1082 | ij_kotlin_spaces_around_unary_operator = false 1083 | ij_kotlin_spaces_around_when_arrow = true 1084 | ij_kotlin_variable_annotation_wrap = off 1085 | ij_kotlin_while_on_new_line = false 1086 | ij_kotlin_wrap_elvis_expressions = 1 1087 | ij_kotlin_wrap_expression_body_functions = 1 1088 | ij_kotlin_wrap_first_method_in_call_chain = false 1089 | 1090 | [{*.har, *.jsb2, *.jsb3, *.json, .babelrc, .eslintrc, .stylelintrc, bowerrc, jest.config}] 1091 | indent_size = 2 1092 | indent_style = space 1093 | max_line_length = 200 1094 | tab_width = 2 1095 | ij_continuation_indent_size = 2 1096 | ij_smart_tabs = false 1097 | ij_visual_guides = 101 1098 | ij_json_keep_blank_lines_in_code = 0 1099 | ij_json_keep_indents_on_empty_lines = false 1100 | ij_json_keep_line_breaks = true 1101 | ij_json_space_after_colon = true 1102 | ij_json_space_after_comma = true 1103 | ij_json_space_before_colon = true 1104 | ij_json_space_before_comma = false 1105 | ij_json_spaces_within_braces = false 1106 | ij_json_spaces_within_brackets = false 1107 | ij_json_wrap_long_lines = false 1108 | 1109 | [{*.htm, *.html, *.ng, *.sht, *.shtm, *.shtml}] 1110 | indent_size = 2 1111 | indent_style = space 1112 | tab_width = 2 1113 | ij_continuation_indent_size = 4 1114 | ij_smart_tabs = false 1115 | ij_html_add_new_line_before_tags = body, div, p, form, h1, h2, h3 1116 | ij_html_align_attributes = true 1117 | ij_html_align_text = false 1118 | ij_html_attribute_wrap = normal 1119 | ij_html_block_comment_at_first_column = true 1120 | ij_html_do_not_align_children_of_min_lines = 0 1121 | ij_html_do_not_break_if_inline_tags = title, h1, h2, h3, h4, h5, h6, p 1122 | ij_html_enforce_quotes = false 1123 | 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 1124 | ij_html_keep_blank_lines = 2 1125 | ij_html_keep_indents_on_empty_lines = false 1126 | ij_html_keep_line_breaks = true 1127 | ij_html_keep_line_breaks_in_text = true 1128 | ij_html_keep_whitespaces = false 1129 | ij_html_keep_whitespaces_inside = span, pre, textarea 1130 | ij_html_line_comment_at_first_column = true 1131 | ij_html_new_line_after_last_attribute = never 1132 | ij_html_new_line_before_first_attribute = never 1133 | ij_html_quote_style = double 1134 | ij_html_remove_new_line_before_tags = br 1135 | ij_html_space_after_tag_name = false 1136 | ij_html_space_around_equality_in_attribute = false 1137 | ij_html_space_inside_empty_tag = false 1138 | ij_html_text_wrap = normal 1139 | 1140 | [{*.jsf, *.jsp, *.jspf, *.tag, *.tagf, *.xjsp}] 1141 | indent_size = 4 1142 | indent_style = space 1143 | tab_width = 4 1144 | ij_smart_tabs = false 1145 | ij_jsp_jsp_prefer_comma_separated_import_list = false 1146 | ij_jsp_keep_indents_on_empty_lines = false 1147 | 1148 | [{*.jspx, *.tagx}] 1149 | indent_size = 4 1150 | indent_style = space 1151 | tab_width = 4 1152 | ij_smart_tabs = false 1153 | ij_jspx_keep_indents_on_empty_lines = false 1154 | 1155 | [{*.properties, spring.handlers, spring.schemas}] 1156 | ij_properties_align_group_field_declarations = false 1157 | ij_properties_keep_blank_lines = true 1158 | ij_properties_key_value_delimiter = equals 1159 | ij_properties_spaces_around_key_value_delimiter = false 1160 | 1161 | [{*.yaml, *.yml}] 1162 | indent_size = 2 1163 | ij_yaml_keep_indents_on_empty_lines = false 1164 | ij_yaml_keep_line_breaks = true 1165 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ###################### 2 | # Node 3 | ###################### 4 | /node/ 5 | node_tmp/ 6 | node_modules/ 7 | npm-debug.log.* 8 | /.awcache/* 9 | /.cache-loader/* 10 | 11 | ###################### 12 | # SASS 13 | ###################### 14 | .sass-cache/ 15 | 16 | ###################### 17 | # Eclipse 18 | ###################### 19 | *.pydevproject 20 | .project 21 | .metadata 22 | tmp/ 23 | tmp/**/* 24 | *.tmp 25 | *.bak 26 | *.swp 27 | *~.nib 28 | local.properties 29 | .classpath 30 | .settings/ 31 | .loadpath 32 | .factorypath 33 | 34 | # External tool builders 35 | .externalToolBuilders/** 36 | 37 | # Locally stored "Eclipse launch configurations" 38 | *.launch 39 | 40 | # CDT-specific 41 | .cproject 42 | 43 | # PDT-specific 44 | .buildpath 45 | 46 | ###################### 47 | # Intellij 48 | ###################### 49 | .idea/* 50 | !.idea/codeStyles 51 | !.idea/dictionaries 52 | !.idea/inspectionProfiles 53 | 54 | *.iml 55 | *.iws 56 | *.ipr 57 | *.ids 58 | *.orig 59 | classes/ 60 | out/ 61 | 62 | ###################### 63 | # Visual Studio Code 64 | ###################### 65 | .vscode/ 66 | 67 | ###################### 68 | # Maven 69 | ###################### 70 | /log/ 71 | /target/ 72 | 73 | ###################### 74 | # Gradle 75 | ###################### 76 | .gradle/ 77 | /build/ 78 | 79 | ###################### 80 | # Package Files 81 | ###################### 82 | *.jar 83 | *.war 84 | *.ear 85 | *.db 86 | 87 | ###################### 88 | # Windows 89 | ###################### 90 | # Windows image file caches 91 | Thumbs.db 92 | 93 | # Folder config file 94 | Desktop.ini 95 | 96 | ###################### 97 | # Mac OSX 98 | ###################### 99 | .DS_Store 100 | .svn 101 | 102 | # Thumbnails 103 | ._* 104 | 105 | # Files that might appear on external disk 106 | .Spotlight-V100 107 | .Trashes 108 | 109 | ###################### 110 | # Directories 111 | ###################### 112 | /bin/ 113 | /deploy/ 114 | 115 | ###################### 116 | # Logs 117 | ###################### 118 | *.log* 119 | 120 | ###################### 121 | # Others 122 | ###################### 123 | *.class 124 | *.*~ 125 | *~ 126 | .directory 127 | .merge_file* 128 | 129 | ###################### 130 | # Gradle Wrapper 131 | ###################### 132 | !gradle/wrapper/gradle-wrapper.jar 133 | 134 | ###################### 135 | # Maven Wrapper 136 | ###################### 137 | !.mvn/wrapper/maven-wrapper.jar 138 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 886 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/dictionaries/Edoardo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | commitlint 5 | commitlintrc 6 | edoardo 7 | jetbrains 8 | lppedd 9 | luppi 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 346 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Edoardo Luppi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Plugin logo 2 | 3 | # Commitlint Conventional Commit 4 | 5 | ### Available @ [JetBrains Plugins Repository][1] 6 | 7 | Looking for the latest **plugin binaries**? Get them [here][2] as `.zip` 8 | Supported IDE versions **from 0.1.3**: `202.6397` to `222.*` (both inclusive) 9 | Supported IDE versions **upto 0.1.2**: `192.****` to `203.*` (both inclusive) 10 | 11 | ----- 12 | 13 | This plugin extends the functionality of [Conventional Commit][3] to provide commit 14 | types and scopes via Commitlint rules. The only requisite is to have a `.commitlintrc.json` file 15 | in the project's root directory. 16 | 17 | The considered rules are **type-enum** and **scope-enum**. 18 | 19 |
20 | Completion example 21 | 22 | ----- 23 | 24 | ## Author 25 | 26 | - Edoardo Luppi () 27 | 28 | [1]: https://plugins.jetbrains.com/plugin/14046-commitlint-conventional-commit 29 | [2]: https://github.com/lppedd/idea-conventional-commit-commitlint/releases 30 | [3]: https://github.com/lppedd/idea-conventional-commit 31 | -------------------------------------------------------------------------------- /build.gradle.kts: -------------------------------------------------------------------------------- 1 | @file:Suppress("ConvertLambdaToReference") 2 | 3 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 4 | 5 | fun properties(key: String) = project.findProperty(key).toString() 6 | 7 | plugins { 8 | id("org.jetbrains.intellij") version "1.6.0" 9 | kotlin("jvm") version "1.7.0-RC2" 10 | } 11 | 12 | group = "com.github.lppedd" 13 | 14 | repositories { 15 | mavenCentral() 16 | } 17 | 18 | intellij { 19 | type.set(properties("platformType")) 20 | version.set(properties("platformVersion")) 21 | downloadSources.set(true) 22 | pluginName.set("idea-conventional-commit-commitlint") 23 | plugins.set(listOf("com.github.lppedd.idea-conventional-commit:0.21.0")) 24 | } 25 | 26 | dependencies { 27 | implementation("org.json", "json", "20220320") 28 | compileOnly(kotlin("stdlib-jdk8", "1.7.0-RC2")) 29 | } 30 | 31 | tasks { 32 | val kotlinOptions: KotlinCompile.() -> Unit = { 33 | kotlinOptions.jvmTarget = "11" 34 | kotlinOptions.apiVersion = "1.5" 35 | kotlinOptions.freeCompilerArgs += listOf( 36 | "-Xno-param-assertions", 37 | "-Xjvm-default=enable" 38 | ) 39 | } 40 | 41 | compileKotlin(kotlinOptions) 42 | compileTestKotlin(kotlinOptions) 43 | 44 | patchPluginXml { 45 | version.set(project.version.toString()) 46 | sinceBuild.set(properties("pluginSinceBuild")) 47 | untilBuild.set(properties("pluginUntilBuild")) 48 | 49 | val projectPath = projectDir.path 50 | pluginDescription.set((File("$projectPath/plugin-description.html").readText(Charsets.UTF_8))) 51 | changeNotes.set((File("$projectPath/change-notes/${version.get().replace('.', '_')}.html").readText(Charsets.UTF_8))) 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /change-notes/0_1_0.html: -------------------------------------------------------------------------------- 1 |

0.1.0 (01/04/2020)

2 |

3 | Initial alpha release. 4 |

5 | -------------------------------------------------------------------------------- /change-notes/0_1_1.html: -------------------------------------------------------------------------------- 1 |

0.1.1 (02/10/2020)

2 |

3 | Second alpha release. 4 |

5 | 8 | -------------------------------------------------------------------------------- /change-notes/0_1_2.html: -------------------------------------------------------------------------------- 1 |

0.1.2 (10/11/2020)

2 |

3 | Third alpha release. 4 |

5 | 8 | -------------------------------------------------------------------------------- /change-notes/0_1_3.html: -------------------------------------------------------------------------------- 1 |

0.1.3 (08/06/2022)

2 |

3 | Fourth alpha release. 4 |

5 | 8 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | version=0.1.3 2 | platformType=IU 3 | platformVersion=202.6397.94 4 | pluginSinceBuild=202.6397 5 | pluginUntilBuild=222.* 6 | kotlin.code.style=official 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lppedd/idea-conventional-commit-commitlint/b7237bfeeb6b7e2f65069dcdd312820a015ec7b1/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 84 | 85 | APP_NAME="Gradle" 86 | APP_BASE_NAME=${0##*/} 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | MAX_FD=$( ulimit -H -n ) || 147 | warn "Could not query maximum file descriptor limit" 148 | esac 149 | case $MAX_FD in #( 150 | '' | soft) :;; #( 151 | *) 152 | ulimit -n "$MAX_FD" || 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" 154 | esac 155 | fi 156 | 157 | # Collect all arguments for the java command, stacking in reverse order: 158 | # * args from the command line 159 | # * the main class name 160 | # * -classpath 161 | # * -D...appname settings 162 | # * --module-path (only if needed) 163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 164 | 165 | # For Cygwin or MSYS, switch paths to Windows format before running java 166 | if "$cygwin" || "$msys" ; then 167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 169 | 170 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 171 | 172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 173 | for arg do 174 | if 175 | case $arg in #( 176 | -*) false ;; # don't mess with options #( 177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 178 | [ -e "$t" ] ;; #( 179 | *) false ;; 180 | esac 181 | then 182 | arg=$( cygpath --path --ignore --mixed "$arg" ) 183 | fi 184 | # Roll the args list around exactly as many times as the number of 185 | # args, so each arg winds up back in the position where it started, but 186 | # possibly modified. 187 | # 188 | # NB: a `for` loop captures its iteration list before it begins, so 189 | # changing the positional parameters here affects neither the number of 190 | # iterations, nor the values presented in `arg`. 191 | shift # remove old arg 192 | set -- "$@" "$arg" # push replacement arg 193 | done 194 | fi 195 | 196 | # Collect all arguments for the java command; 197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 198 | # shell script including quotes and variable substitutions, so put them in 199 | # double quotes to make sure that they get re-expanded; and 200 | # * put everything else in single quotes, so that it's not re-expanded. 201 | 202 | set -- \ 203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 204 | -classpath "$CLASSPATH" \ 205 | org.gradle.wrapper.GradleWrapperMain \ 206 | "$@" 207 | 208 | # Use "xargs" to parse quoted args. 209 | # 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 211 | # 212 | # In Bash we could simply go: 213 | # 214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 215 | # set -- "${ARGS[@]}" "$@" 216 | # 217 | # but POSIX shell has neither arrays nor command substitution, so instead we 218 | # post-process each arg (as a line of input to sed) to backslash-escape any 219 | # character that might be a shell metacharacter, then use eval to reverse 220 | # that process (while maintaining the separation between arguments), and wrap 221 | # the whole thing up as a single "set" statement. 222 | # 223 | # This will of course break if any of these variables contains a newline or 224 | # an unmatched quote. 225 | # 226 | 227 | eval "set -- $( 228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 229 | xargs -n1 | 230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 231 | tr '\n' ' ' 232 | )" '"$@"' 233 | 234 | exec "$JAVACMD" "$@" 235 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /images/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lppedd/idea-conventional-commit-commitlint/b7237bfeeb6b7e2f65069dcdd312820a015ec7b1/images/example.png -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lppedd/idea-conventional-commit-commitlint/b7237bfeeb6b7e2f65069dcdd312820a015ec7b1/images/logo.png -------------------------------------------------------------------------------- /plugin-description.html: -------------------------------------------------------------------------------- 1 |

2 | This plugin extends the functionality of 3 | Conventional Commit 4 | to provide commit types and scopes 5 | via Commitlint rules. 6 | The only requisite is to have a .commitlintrc.json file in the project's root 7 | directory. 8 |

9 |

The considered rules are type-enum and scope-enum.

10 |
11 |

12 | Read additional details 13 | at GitHub. 14 |

15 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | @file:Suppress("ConvertLambdaToReference") 2 | 3 | pluginManagement { 4 | repositories { 5 | gradlePluginPortal() 6 | } 7 | } 8 | 9 | rootProject.name = "idea-conventional-commit-commitlint" 10 | -------------------------------------------------------------------------------- /src/main/kotlin/com/github/lppedd/cc/commitlint/CommitlintConstants.kt: -------------------------------------------------------------------------------- 1 | package com.github.lppedd.cc.commitlint 2 | 3 | /** 4 | * @author Edoardo Luppi 5 | */ 6 | object CommitlintConstants { 7 | const val ConfigFileName: String = ".commitlintrc.json" 8 | } 9 | -------------------------------------------------------------------------------- /src/main/kotlin/com/github/lppedd/cc/commitlint/CommitlintIcons.kt: -------------------------------------------------------------------------------- 1 | package com.github.lppedd.cc.commitlint 2 | 3 | import com.intellij.openapi.util.IconLoader 4 | import javax.swing.Icon 5 | 6 | /** 7 | * @author Edoardo Luppi 8 | */ 9 | object CommitlintIcons { 10 | @JvmField val Logo: Icon = IconLoader.getIcon("/icons/commitlint.svg") 11 | } 12 | -------------------------------------------------------------------------------- /src/main/kotlin/com/github/lppedd/cc/commitlint/CommitlintTokensProvider.kt: -------------------------------------------------------------------------------- 1 | package com.github.lppedd.cc.commitlint 2 | 3 | import com.github.lppedd.cc.api.* 4 | import com.intellij.openapi.project.Project 5 | import com.intellij.openapi.project.guessProjectDir 6 | import org.json.JSONArray 7 | import org.json.JSONObject 8 | import org.json.JSONTokener 9 | import java.nio.charset.StandardCharsets.UTF_8 10 | import java.nio.file.Files 11 | import java.nio.file.Paths 12 | import javax.swing.Icon 13 | 14 | /** 15 | * @author Edoardo Luppi 16 | */ 17 | @Suppress("UnstableApiUsage") 18 | internal class CommitlintTokensProvider(private val project: Project) : 19 | CommitTypeProvider, 20 | CommitScopeProvider { 21 | companion object { 22 | const val ID: String = "37415b03-9388-4c55-b949-8c4526f6934d" 23 | } 24 | 25 | override fun getId(): String = 26 | ID 27 | 28 | override fun getPresentation(): ProviderPresentation = 29 | CommitlintProviderPresentation 30 | 31 | override fun getCommitTypes(prefix: String): Collection = 32 | readRuleValuesFromConfigFile("type-enum") 33 | .map(::CommitlintCommitToken) 34 | .toList() 35 | 36 | override fun getCommitScopes(commitType: String): Collection = 37 | readRuleValuesFromConfigFile("scope-enum") 38 | .map(::CommitlintCommitToken) 39 | .toList() 40 | 41 | private fun readRuleValuesFromConfigFile(ruleName: String): Sequence { 42 | val configFilePath = getConfigFilePath() ?: return emptySequence() 43 | return Files.newBufferedReader(Paths.get(configFilePath), UTF_8).use { 44 | val jsonRoot = noException { JSONObject(JSONTokener(it)) } 45 | val jsonRule = jsonRoot 46 | ?.optJSONObject("rules") 47 | ?.optJSONArray(ruleName) 48 | getRuleValues(jsonRule ?: return emptySequence()) 49 | } 50 | } 51 | 52 | private fun getRuleValues(jsonRuleConfig: JSONArray): Sequence { 53 | // We check if the rule is disabled, or if it's inverted, 54 | // which means the rule's values are not valid 55 | return if (jsonRuleConfig.optNumber(0, 0) == 0 || 56 | jsonRuleConfig.optString(1, "never") == "never") { 57 | emptySequence() 58 | } else { 59 | val values = jsonRuleConfig.optJSONArray(2) ?: JSONArray() 60 | values.asSequence().filterIsInstance() 61 | } 62 | } 63 | 64 | private fun getConfigFilePath(): String? = 65 | project.guessProjectDir() 66 | ?.findChild(CommitlintConstants.ConfigFileName) 67 | ?.path 68 | 69 | private inline fun noException(block: () -> T): T? = 70 | try { 71 | block() 72 | } catch (ignored: Exception) { 73 | null 74 | } 75 | 76 | private object CommitlintProviderPresentation : ProviderPresentation { 77 | override fun getName(): String = 78 | "Commitlint" 79 | 80 | override fun getIcon(): Icon = 81 | CommitlintIcons.Logo 82 | } 83 | 84 | private object CommitlintTokenPresentation : TokenPresentation { 85 | override fun getIcon(): Icon = 86 | CommitlintIcons.Logo 87 | } 88 | 89 | private class CommitlintCommitToken(private val text: String) : CommitType, CommitScope { 90 | override fun getText(): String = 91 | text 92 | 93 | override fun getValue(): String = 94 | getText() 95 | 96 | override fun getDescription(): String = 97 | "" 98 | 99 | override fun getPresentation(): TokenPresentation = 100 | CommitlintTokenPresentation 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | com.github.lppedd.idea-conventional-commit-commitlint 3 | Commitlint Conventional Commit 4 | 7 | Edoardo Luppi 8 | 9 | 10 | com.intellij.modules.platform 11 | com.github.lppedd.idea-conventional-commit 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/pluginIcon.svg: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 29 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/pluginIcon_dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 29 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/resources/icons/commitlint.svg: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | --------------------------------------------------------------------------------