nbauma109/Java Cleanup with Eclipse JDT (Headless)
Runs Eclipse JDT cleanup rules using a headless refactoring engine
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| project-root | Root directory of the Java project to clean | yes | — |
| source-level | Java source level (e.g. 21) | yes | — |
| extra-classpath | Additional classpath entries (optional) | no | "" |
| cleanup.array_with_curly | — | — | false |
| cleanup.use_autoboxing | — | — | false |
| cleanup.overridden_assignment_move_decl | — | — | false |
| cleanup.always_use_this_for_non_static_method_access | — | — | false |
| cleanup.remove_trailing_whitespaces_ignore_empty | — | — | false |
| cleanup.system_property_javaspecversion | — | — | false |
| cleanup.primitive_comparison | — | — | false |
| cleanup.system_property_file_encoding | — | — | false |
| cleanup.format_source_code_changes_only | — | — | false |
| cleanup.remove_redundant_semicolons | — | — | false |
| cleanup.useless_continue | — | — | false |
| cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class | — | — | false |
| cleanup.remove_redundant_type_arguments | — | — | false |
| cleanup.remove_unused_imports | — | — | false |
| cleanup.break_loop | — | — | false |
| cleanup.pull_up_assignment | — | — | false |
| cleanup.stringbuilder | — | — | false |
| cleanup.arrays_fill | — | — | false |
| cleanup.no_super | — | — | false |
| cleanup.use_lambda | — | — | false |
| cleanup.operand_factorization | — | — | false |
| cleanup.simplify_lambda_expression_and_method_ref | — | — | false |
| cleanup.always_use_blocks | — | — | false |
| cleanup.stringconcat_to_textblock | — | — | false |
| cleanup.sort_members_all | — | — | false |
| cleanup.system_property_path_separator | — | — | false |
| cleanup.instanceof | — | — | false |
| cleanup.precompile_regex | — | — | false |
| cleanup.add_missing_annotations | — | — | false |
| cleanup.always_use_this_for_non_static_field_access | — | — | false |
| cleanup.boolean_literal | — | — | false |
| cleanup.sort_members | — | — | false |
| cleanup.always_use_parentheses_in_expressions | — | — | false |
| cleanup.remove_unused_method_parameters | — | — | false |
| cleanup.remove_unused_local_variables | — | — | false |
| cleanup.add_missing_deprecated_annotations | — | — | false |
| cleanup.no_string_creation | — | — | false |
| cleanup.use_unboxing | — | — | false |
| cleanup.use_blocks_only_for_return_and_throw | — | — | false |
| cleanup.standard_comparison | — | — | false |
| cleanup.if_condition | — | — | false |
| cleanup.system_property_line_separator | — | — | false |
| cleanup.remove_trailing_whitespaces | — | — | false |
| cleanup.map_cloning | — | — | false |
| cleanup.add_serial_version_id | — | — | false |
| cleanup.try_with_resource | — | — | false |
| cleanup.use_this_for_non_static_method_access | — | — | false |
| cleanup.use_this_for_non_static_method_access_only_if_necessary | — | — | false |
| cleanup.single_used_field | — | — | false |
| cleanup.reduce_indentation | — | — | false |
| cleanup.primitive_parsing | — | — | false |
| cleanup.make_local_variable_final | — | — | false |
| cleanup.qualify_static_member_accesses_with_declaring_class | — | — | false |
| cleanup.add_missing_override_annotations | — | — | false |
| cleanup.use_blocks | — | — | false |
| cleanup.multi_catch | — | — | false |
| cleanup.collection_cloning | — | — | false |
| cleanup.pull_out_if_from_if_else | — | — | false |
| cleanup.make_variable_declarations_final | — | — | false |
| cleanup.convert_to_enhanced_for_loop_if_loop_var_used | — | — | false |
| cleanup.redundant_comparator | — | — | false |
| cleanup.remove_unused_private_types | — | — | false |
| cleanup.system_property_boolean | — | — | false |
| cleanup.qualify_static_method_accesses_with_declaring_class | — | — | false |
| cleanup.lazy_logical_operator | — | — | false |
| cleanup.bitwise_conditional_expression | — | — | false |
| cleanup.simplify_boolean_if_else | — | — | false |
| cleanup.add_all | — | — | false |
| cleanup.use_directly_map_method | — | — | false |
| cleanup.system_property_file_separator | — | — | false |
| cleanup.qualify_static_field_accesses_with_declaring_class | — | — | false |
| cleanup.add_generated_serial_version_id | — | — | false |
| cleanup.stringbuilder_for_local_vars | — | — | false |
| cleanup.controlflow_merge | — | — | false |
| cleanup.comparing_on_criteria | — | — | false |
| cleanup.do_while_rather_than_while | — | — | false |
| cleanup.primitive_serialization | — | — | false |
| cleanup.stringbuffer_to_stringbuilder | — | — | false |
| cleanup.extract_increment | — | — | false |
| cleanup.comparison_statement | — | — | false |
| cleanup.insert_inferred_type_arguments | — | — | false |
| cleanup.make_private_fields_final | — | — | false |
| cleanup.remove_unnecessary_suppress_warnings | — | — | false |
| cleanup.useless_return | — | — | false |
| cleanup.instanceof_keyword | — | — | false |
| cleanup.use_this_for_non_static_field_access_only_if_necessary | — | — | false |
| cleanup.one_if_rather_than_duplicate_blocks_that_fall_through | — | — | false |
| cleanup.remove_trailing_whitespaces_all | — | — | false |
| cleanup.valueof_rather_than_instantiation | — | — | false |
| cleanup.plain_replacement | — | — | false |
| cleanup.remove_unnecessary_array_creation | — | — | false |
| cleanup.remove_private_constructors | — | — | false |
| cleanup.make_parameters_final | — | — | false |
| cleanup.substring | — | — | false |
| cleanup.ternary_operator | — | — | false |
| cleanup.replace_deprecated_calls | — | — | false |
| cleanup.merge_conditional_blocks | — | — | false |
| cleanup.return_expression | — | — | false |
| cleanup.system_property | — | — | false |
| cleanup.unlooped_while | — | — | false |
| cleanup.convert_to_enhanced_for_loop | — | — | false |
| cleanup.remove_unused_private_fields | — | — | false |
| cleanup.never_use_blocks | — | — | false |
| cleanup.remove_redundant_modifiers | — | — | false |
| cleanup.unreachable_block | — | — | false |
| cleanup.switch | — | — | false |
| cleanup.redundant_falling_through_block_end | — | — | false |
| cleanup.number_suffix | — | — | false |
| cleanup.also_simplify_lambda | — | — | false |
| cleanup.system_property_javaversion | — | — | false |
| cleanup.replace_deprecated_fields | — | — | false |
| cleanup.remove_unnecessary_nls_tags | — | — | false |
| cleanup.convert_to_switch_expressions | — | — | false |
| cleanup.use_this_for_non_static_field_access | — | — | false |
| cleanup.use_string_is_blank | — | — | false |
| cleanup.static_inner_class | — | — | false |
| cleanup.qualify_static_member_accesses_through_instances_with_declaring_class | — | — | false |
| cleanup.add_missing_nls_tags | — | — | false |
| cleanup.remove_unnecessary_casts | — | — | false |
| cleanup.objects_equals | — | — | false |
| cleanup.convert_functional_interfaces | — | — | false |
| cleanup.else_if | — | — | false |
| cleanup.format_source_code | — | — | false |
| cleanup.boolean_value_rather_than_comparison | — | — | false |
| cleanup.add_default_serial_version_id | — | — | false |
| cleanup.remove_unused_private_methods | — | — | false |
| cleanup.make_type_abstract_if_missing_method | — | — | false |
| cleanup.join | — | — | false |
| cleanup.embedded_if | — | — | false |
| cleanup.use_anonymous_class_creation | — | — | false |
| cleanup.invert_equals | — | — | false |
| cleanup.add_missing_override_annotations_interface_methods | — | — | false |
| cleanup.switch_for_instanceof_pattern | — | — | false |
| cleanup.remove_unused_private_members | — | — | false |
| cleanup.never_use_parentheses_in_expressions | — | — | false |
| cleanup.strictly_equal_or_different | — | — | false |
| cleanup.push_down_negation | — | — | false |
| cleanup.evaluate_nullable | — | — | false |
| cleanup.use_parentheses_in_expressions | — | — | false |
| cleanup.hash | — | — | false |
| cleanup.stringconcat_stringbuffer_stringbuilder | — | — | false |
| cleanup.double_negation | — | — | false |
| cleanup.overridden_assignment | — | — | false |
| cleanup.primitive_rather_than_wrapper | — | — | false |
| cleanup.correct_indentation | — | — | false |
| cleanup.use_var | — | — | false |
Outputs
no outputs