From 244903403ab2a2fc5a9eaa2ccc48f06cd6a824b8 Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Sat, 21 Oct 2023 07:36:12 +0100 Subject: Internal Change: Add .editorconfig (#556) Internal Change: Add .editorconfig #556 --- .editorconfig | 30 ++++++++++++++++++++++++++++++ CONTRIBUTING.md | 3 --- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..28d8209de --- /dev/null +++ b/.editorconfig @@ -0,0 +1,30 @@ +# top-most EditorConfig file +root = true + +# All Files +[*] +# Unix-style newlines with a newline ending every file +end_of_line = lf +insert_final_newline = true + +# Indent styling +indent_size = 4 +indent_style = space + +# Comments styling to add space after comment start +ij_any_block_comment_add_space = true +ij_any_line_comment_add_space = true + +# Max line length +max_line_length = 120 + +# Java Files +[*.java] +# Java files should not use wildcard imports +ij_java_names_count_to_use_import_on_demand = 999 +ij_java_class_count_to_use_import_on_demand = 999 + +[*.kt] +# Kotlin files should not use wildcard imports +ij_kotlin_name_count_to_use_star_import = 999 +ij_kotlin_name_count_to_use_star_import_for_members = 999 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 997a6c68d..c347f761a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,9 +73,6 @@ You can write in the description of the pr the wording for the changelog as well - Don't forget to add `@FeatureToggle` to new standalone features (not options to that feature) in the config. - Do not use `e.printStackTrace()`, use `CopyErrorCommand.logError(e, "explanation for users")` instead. - Do not use `MinecraftForge.EVENT_BUS.post(event)`, use `event.postAndCatch()` instead. -- Do not use wildcards in imports (see the imgae below for setting this up in IntelliJ) -- ![image](https://github.com/hannibal002/SkyHanni/assets/24389977/84c3a640-b39a-407e-a73c-12e548f33e88) - ## Software Used in SkyHanni -- cgit