diff options
author | Walker Selby <git@walkerselby.com> | 2023-10-21 07:36:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 08:36:12 +0200 |
commit | 244903403ab2a2fc5a9eaa2ccc48f06cd6a824b8 (patch) | |
tree | deee9a51aac076108f4ca3a2f4fb37b769277348 | |
parent | 68abc8ade546de62aee76e0b786993fc59fbc3cc (diff) | |
download | skyhanni-244903403ab2a2fc5a9eaa2ccc48f06cd6a824b8.tar.gz skyhanni-244903403ab2a2fc5a9eaa2ccc48f06cd6a824b8.tar.bz2 skyhanni-244903403ab2a2fc5a9eaa2ccc48f06cd6a824b8.zip |
Internal Change: Add .editorconfig (#556)
Internal Change: Add .editorconfig #556
-rw-r--r-- | .editorconfig | 30 | ||||
-rw-r--r-- | CONTRIBUTING.md | 3 |
2 files changed, 30 insertions, 3 deletions
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 |