diff --git a/README.md b/README.md index 16cf727..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) @@ -23,10 +23,11 @@ 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 - - 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_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 | 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..e83d846 --- /dev/null +++ b/eclipse/j8unit_java_code-style_organize_imports.md @@ -0,0 +1,4 @@ +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 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) 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