Skip to content

Commit

Permalink
Updated (Eclipse) codestyle and examples to use newline at end of fil…
Browse files Browse the repository at this point in the history
…e (cf. mail thread "Newline at EOF")
  • Loading branch information
bentmann committed Aug 21, 2014
1 parent 3170fb4 commit 7db97e5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ In addition, html indentation settings are not exported, but can be set to 2 spa

**NO TABS**

Newline at end of file

### Imports

Order:
Expand Down
2 changes: 1 addition & 1 deletion sonatype-eclipse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/>
Expand Down
2 changes: 1 addition & 1 deletion sonatype-javascript-eclipse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<setting id="org.eclipse.wst.jsdt.core.compiler.source" value="1.5"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/>
<setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/Example1.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@ interface TestInterface
void method2()
}

// END Blank lines example
// END Blank lines example
2 changes: 1 addition & 1 deletion src/main/java/Example1.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ private class InnerClass
public void bar() throws E1, E2 {
}
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/Example2.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ void bar() {
}
}

class Example2a {}
class Example2a {}
2 changes: 1 addition & 1 deletion src/main/resources/Example2.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ ClassNamesLikeThis.prototype.privateMethod_ = function() {

/** @protected */
ClassNamesLikeThis.prototype.protectedMethod = function() {
};
};

0 comments on commit 7db97e5

Please sign in to comment.