From 07cfa170afcb317b106ad693691c565e91d0288a Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:23:24 +0100 Subject: [PATCH 1/8] Current "Task Tags" configuration --- ...t_general_editors_structured-text-editors_task-tags.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclipse/j8unit_general_editors_structured-text-editors_task-tags.md b/eclipse/j8unit_general_editors_structured-text-editors_task-tags.md index 4ccaf52..74afee7 100644 --- a/eclipse/j8unit_general_editors_structured-text-editors_task-tags.md +++ b/eclipse/j8unit_general_editors_structured-text-editors_task-tags.md @@ -1,5 +1,9 @@ ### Eclipse -> General -> Editors -> Structured Editors -> Task Tags [x] Enable searching for Task Tags - TODO Normal - FIXME High + + | Tag | Priority | + | ----- | -------- | + | TODO | Normal | + | FIXME | High | + | XXX | Normal | From 349f8239d231ea3d11977a93260a2f9cd273c6e0 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:27:25 +0100 Subject: [PATCH 2/8] Additional Clean-Up configurations --- eclipse/j8unit_java_code-style_clean-up.xml | 122 ++++++++++---------- 1 file changed, 64 insertions(+), 58 deletions(-) diff --git a/eclipse/j8unit_java_code-style_clean-up.xml b/eclipse/j8unit_java_code-style_clean-up.xml index 2067578..d2aed32 100644 --- a/eclipse/j8unit_java_code-style_clean-up.xml +++ b/eclipse/j8unit_java_code-style_clean-up.xml @@ -1,61 +1,67 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d64d8eb71c7f9835a68d8716f40eae693bf8d7a3 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:30:33 +0100 Subject: [PATCH 3/8] Current "Formatter" configuration --- eclipse/j8unit_java_code-style_formatter.xml | 675 ++++++++++--------- 1 file changed, 363 insertions(+), 312 deletions(-) diff --git a/eclipse/j8unit_java_code-style_formatter.xml b/eclipse/j8unit_java_code-style_formatter.xml index b274e50..92c107c 100644 --- a/eclipse/j8unit_java_code-style_formatter.xml +++ b/eclipse/j8unit_java_code-style_formatter.xml @@ -1,314 +1,365 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 494e018a23629241601ab9cb69213f0c54d250fd Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:39:58 +0100 Subject: [PATCH 4/8] Current "Organize Imports" configuration --- ...unit_java_code-style_organize_imports.importorder | 12 ++++++------ eclipse/j8unit_java_code-style_organize_imports.md | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 eclipse/j8unit_java_code-style_organize_imports.md diff --git a/eclipse/j8unit_java_code-style_organize_imports.importorder b/eclipse/j8unit_java_code-style_organize_imports.importorder index 12a6cd9..c2e0ea9 100644 --- a/eclipse/j8unit_java_code-style_organize_imports.importorder +++ b/eclipse/j8unit_java_code-style_organize_imports.importorder @@ -1,8 +1,8 @@ #Organize Import Order -#Fri Jul 28 23:40:20 CEST 2017 -5=org.j8unit -4=org -3=de -2=com -1=javax +#Thu Jan 30 17:39:17 CET 2020 0=java +1=javax +2=com +3=de +4=org +5=org.j8unit diff --git a/eclipse/j8unit_java_code-style_organize_imports.md b/eclipse/j8unit_java_code-style_organize_imports.md new file mode 100644 index 0000000..be1a83a --- /dev/null +++ b/eclipse/j8unit_java_code-style_organize_imports.md @@ -0,0 +1,6 @@ +For import order click on "Import" and refer to [this file](j8unit_java_code-style_organize_imports.importorder). + +Number of imports needed for import .*: [99] +Number of static imports needed for import .*: [99] + +[x] Do not create imports for types starting with a lowercase letter From 903c800c8ad86110a6fce152ef310feb81c3b812 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:44:59 +0100 Subject: [PATCH 5/8] Current "Save Actions" configuration --- eclipse/j8unit_java_editor_save-actions.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eclipse/j8unit_java_editor_save-actions.md b/eclipse/j8unit_java_editor_save-actions.md index d24abf5..410dce9 100644 --- a/eclipse/j8unit_java_editor_save-actions.md +++ b/eclipse/j8unit_java_editor_save-actions.md @@ -63,5 +63,10 @@ "Unnecessary Code" -> "Unnecessary code" [x] Remove unnecessary casts [ ] Remove unnecessary '$NON-NL$' tags - [x] Remove redundant type Arguments (1.7 or highter) - + [x] Remove redundant type Arguments (1.7 or higher) + [ ] Use Autoboxing (1.5 or higher) + [ ] Use Unboxing (1.5 or higher) + [ ] Push down negation + [ ] Remove redundant modifiers + [x] Remove redundant semicolons + [x] Remove unnecessary array creation (1.5 or higher) From 6f5c2a6383685d75ea26b12e63c35e26178c304a Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:49:59 +0100 Subject: [PATCH 6/8] These are *further* settings --- README.md | 1 + eclipse/j8unit_java_code-style_organize_imports.md | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 16cf727..aeceb8a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ However, these are the rules which we think are fine for us: - Import the [J8Unit Code Formatter Profile](./eclipse/j8unit_java_code-style_formatter.xml) - Window -> Preference -> Java -> Code Style -> Organize Imports - Import the [J8Unit Import Order](./eclipse/j8unit_java_code-style_organize_imports.importorder) + - Further settings according to [J8Unit Organize Imports](j8unit_java_code-style_organize_imports.md) - Window -> Preference -> Java -> Editor -> Save Actions - Settings according to [J8Unit Save Actions](./eclipse/j8unit_java_editor_save-actions.md) - Window -> Preference -> XML -> XML Files -> Editor diff --git a/eclipse/j8unit_java_code-style_organize_imports.md b/eclipse/j8unit_java_code-style_organize_imports.md index be1a83a..e83d846 100644 --- a/eclipse/j8unit_java_code-style_organize_imports.md +++ b/eclipse/j8unit_java_code-style_organize_imports.md @@ -1,5 +1,3 @@ -For import order click on "Import" and refer to [this file](j8unit_java_code-style_organize_imports.importorder). - Number of imports needed for import .*: [99] Number of static imports needed for import .*: [99] From 916f7222e40e2600a912fc1e6a8972eef3925f59 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:50:19 +0100 Subject: [PATCH 7/8] Current "XML Files -> Editor" configuration --- README.md | 2 +- eclipse/j8unit_xml_xml-files_editor.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aeceb8a..7179c68 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ However, these are the rules which we think are fine for us: - Window -> Preference -> Java -> Editor -> Save Actions - Settings according to [J8Unit Save Actions](./eclipse/j8unit_java_editor_save-actions.md) - Window -> Preference -> XML -> XML Files -> Editor - - Settings according to [J8Unit Save Actions](./eclipse/j8unit_xml_xml-files_editor.md) + - Settings according to [J8Unit XML Files](./eclipse/j8unit_xml_xml-files_editor.md) ## Maven diff --git a/eclipse/j8unit_xml_xml-files_editor.md b/eclipse/j8unit_xml_xml-files_editor.md index 72bacd9..876c7ad 100644 --- a/eclipse/j8unit_xml_xml-files_editor.md +++ b/eclipse/j8unit_xml_xml-files_editor.md @@ -1,13 +1,14 @@ -### Eclipse -> XML -> XML Files +### Eclipse -> XML -> XML Files -> Editor "Formatting": Line width: [120] [ ] Split multiple attributes each on a new line [ ] Align final bracket in multi-line element tags -[x] Preserv whitespace in tags with PCDATA content +[x] Preserve whitespace in tags with PCDATA content [ ] Clear blank lines [ ] Format comments + [ ] Join lines [x] Insert whitespace before closing empty end-tags ( ) Indent using tabs (o) Indent using spaces From ff3558bf50640684ef5cff0d4d79cb3b132cc4ae Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 30 Jan 2020 17:51:51 +0100 Subject: [PATCH 8/8] Update to currently used Eclipse Version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7179c68..b7bda50 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ to avoid arguing over syntax, naming standards, and style preferences Avowedly, good style is a subjective matter and the perception of beauty is subjective. However, these are the rules which we think are fine for us: -## Eclipse ([Oxygen](https://projects.eclipse.org/releases/oxygen)) +## Eclipse ([2019-12](https://projects.eclipse.org/releases/2019-12)) - Window -> Preference -> General -> Editors -> Structured Text Editors -> Task Tags - Settings according to [J8Unit Task Tags](./eclipse/j8unit_general_editors_structured-text-editors_task-tags.md)