forked from biojava/biojava
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some code style suggestions and a short document detailing the setup on eclipse Signed-off-by: Hannes Brandstätter-Müller <hannes.mueller@gmail.com>
- Loading branch information
1 parent
d0f553d
commit 0b11b10
Showing
5 changed files
with
563 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
|
||
<!-- | ||
This configuration file was written by the eclipse-cs plugin configuration editor | ||
--> | ||
<!-- | ||
Checkstyle-Configuration: biojava | ||
Description: | ||
Checkstyle configuration that checks the biojava coding conventions. | ||
--> | ||
<module name="Checker"> | ||
<property name="severity" value="warning"/> | ||
<module name="TreeWalker"> | ||
<module name="JavadocMethod"> | ||
<property name="suppressLoadErrors" value="true"/> | ||
</module> | ||
<module name="JavadocType"/> | ||
<module name="JavadocVariable"/> | ||
<module name="JavadocStyle"/> | ||
<module name="ConstantName"/> | ||
<module name="LocalFinalVariableName"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MemberName"/> | ||
<module name="MethodName"/> | ||
<module name="PackageName"/> | ||
<module name="ParameterName"/> | ||
<module name="StaticVariableName"/> | ||
<module name="TypeName"/> | ||
<module name="AvoidStarImport"/> | ||
<module name="IllegalImport"/> | ||
<module name="RedundantImport"/> | ||
<module name="UnusedImports"/> | ||
<module name="MethodLength"/> | ||
<module name="ParameterNumber"/> | ||
<module name="LineLength"> | ||
<property name="max" value="120"/> | ||
<property name="tabWidth" value="4"/> | ||
</module> | ||
<module name="EmptyForIteratorPad"/> | ||
<module name="MethodParamPad"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="OperatorWrap"/> | ||
<module name="ParenPad"/> | ||
<module name="TypecastParenPad"/> | ||
<module name="WhitespaceAfter"/> | ||
<module name="WhitespaceAround"/> | ||
<module name="ModifierOrder"/> | ||
<module name="RedundantModifier"/> | ||
<module name="AvoidNestedBlocks"/> | ||
<module name="EmptyBlock"/> | ||
<module name="LeftCurly"/> | ||
<module name="NeedBraces"/> | ||
<module name="RightCurly"/> | ||
<module name="AvoidInlineConditionals"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="HiddenField"/> | ||
<module name="IllegalInstantiation"/> | ||
<module name="InnerAssignment"/> | ||
<module name="MagicNumber"/> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="RedundantThrows"> | ||
<property name="suppressLoadErrors" value="true"/> | ||
</module> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="SimplifyBooleanReturn"/> | ||
<module name="DesignForExtension"/> | ||
<module name="FinalClass"/> | ||
<module name="HideUtilityClassConstructor"/> | ||
<module name="InterfaceIsType"/> | ||
<module name="VisibilityModifier"/> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="FinalParameters"/> | ||
<module name="TodoComment"/> | ||
<module name="UpperEll"/> | ||
<module name="OperatorWrap"/> | ||
<module name="OperatorWrap"/> | ||
</module> | ||
<module name="JavadocPackage"/> | ||
<module name="NewlineAtEndOfFile"/> | ||
<module name="Translation"/> | ||
<module name="FileLength"/> | ||
<module name="FileTabCharacter"/> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<profiles version="2"> | ||
<profile kind="CleanUpProfile" name="biojava" version="2"> | ||
<setting id="cleanup.remove_unused_private_fields" value="true"/> | ||
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/> | ||
<setting id="cleanup.never_use_blocks" value="false"/> | ||
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/> | ||
<setting id="cleanup.remove_unused_private_methods" value="true"/> | ||
<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/> | ||
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/> | ||
<setting id="cleanup.sort_members" value="false"/> | ||
<setting id="cleanup.remove_unused_local_variables" value="false"/> | ||
<setting id="cleanup.remove_unused_private_members" value="false"/> | ||
<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/> | ||
<setting id="cleanup.remove_unnecessary_casts" value="true"/> | ||
<setting id="cleanup.make_parameters_final" value="true"/> | ||
<setting id="cleanup.use_this_for_non_static_field_access" value="true"/> | ||
<setting id="cleanup.use_blocks" value="true"/> | ||
<setting id="cleanup.remove_private_constructors" value="true"/> | ||
<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/> | ||
<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/> | ||
<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/> | ||
<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/> | ||
<setting id="cleanup.add_default_serial_version_id" value="true"/> | ||
<setting id="cleanup.make_type_abstract_if_missing_method" value="false"/> | ||
<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/> | ||
<setting id="cleanup.make_variable_declarations_final" value="true"/> | ||
<setting id="cleanup.add_missing_nls_tags" value="false"/> | ||
<setting id="cleanup.format_source_code" value="true"/> | ||
<setting id="cleanup.add_missing_override_annotations" value="true"/> | ||
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/> | ||
<setting id="cleanup.remove_unused_private_types" value="true"/> | ||
<setting id="cleanup.make_local_variable_final" value="true"/> | ||
<setting id="cleanup.add_missing_methods" value="true"/> | ||
<setting id="cleanup.add_missing_override_annotations_interface_methods" value="true"/> | ||
<setting id="cleanup.correct_indentation" value="true"/> | ||
<setting id="cleanup.remove_unused_imports" value="true"/> | ||
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/> | ||
<setting id="cleanup.make_private_fields_final" value="true"/> | ||
<setting id="cleanup.add_generated_serial_version_id" value="false"/> | ||
<setting id="cleanup.organize_imports" value="true"/> | ||
<setting id="cleanup.sort_members_all" value="false"/> | ||
<setting id="cleanup.remove_trailing_whitespaces" value="true"/> | ||
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/> | ||
<setting id="cleanup.use_parentheses_in_expressions" value="false"/> | ||
<setting id="cleanup.add_missing_annotations" value="true"/> | ||
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/> | ||
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/> | ||
<setting id="cleanup.use_this_for_non_static_method_access" value="true"/> | ||
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/> | ||
<setting id="cleanup.add_serial_version_id" value="true"/> | ||
<setting id="cleanup.always_use_blocks" value="true"/> | ||
<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/> | ||
<setting id="cleanup.format_source_code_changes_only" value="false"/> | ||
</profile> | ||
</profiles> |
Oops, something went wrong.