ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1056913 - /ofbiz/trunk/ofbiz.aptana.js.format.xml
Date Sun, 09 Jan 2011 11:05:41 GMT
Author: jleroux
Date: Sun Jan  9 11:05:41 2011
New Revision: 1056913

URL: http://svn.apache.org/viewvc?rev=1056913&view=rev
Log:
As suggested by Andrew on dev ML, I put this Aptana formatting template in root repo.

It's also available as an attachment of OFBiz Contributors Best Practices page in wiki. It
needs Eclipse/Aptana for editing Javascript files and notably to format them correctly. I
suggest also to not use tabs in *our* javascript files but 4 spaces (like in Java)

Added:
    ofbiz/trunk/ofbiz.aptana.js.format.xml   (with props)

Added: ofbiz/trunk/ofbiz.aptana.js.format.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/ofbiz.aptana.js.format.xml?rev=1056913&view=auto
==============================================================================
--- ofbiz/trunk/ofbiz.aptana.js.format.xml (added)
+++ ofbiz/trunk/ofbiz.aptana.js.format.xml Sun Jan  9 11:05:41 2011
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<profiles version="1">
+<profile kind="" name="OFBiz" version="1">
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_if_statement"
value="insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.indent_statements_compare_to_block"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.preserve_extra_carriage_returns2"
value=""/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.indent_statements_compare_to_body"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_in_empty_type_declaration"
value="a,span,i,b,em,strong,h1,h2,h3,h4,h5,h6,title,option"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_space_between_empty_parens_in_enum_constant"
value=""/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_finally_in_try_statement"
value="insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.keep_empty_array_initializer_on_one_line"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration"
value="false"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.preserve_extra_carriage_returns"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.compact_else_if" value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_in_empty_enum_declaration"
value="doctype,br,link,meta"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.brace_position_for_method_declaration"
value="end_of_line"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.preserveWhitespaceinCDATA" value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.format_guardian_clause_on_one_line"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_catch_in_try_statement"
value="insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.tabulation.size" value="4"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_space_after_and_in_type_parameter"
value=""/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.brace_position_for_switch" value="end_of_line"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.keep_else_statement_on_same_line"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_while_in_do_statement"
value="insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.indent_switchstatements_compare_to_cases"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.blank_lines_before_method" value="1"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_return_statement"
value="insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.tabulation.char" value=" "/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.brace_position_for_array_initializer"
value="end_of_line"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.indent_breaks_compare_to_cases"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.brace_position_for_block" value="end_of_line"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.blank_lines_before_imports" value="5"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_space_after_closing_brace_in_block"
value="false"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.brace_position_for_block_in_case"
value="end_of_line"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.keep_imple_if_on_one_line" value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.insert_new_line_before_else_in_if_statement"
value="not-insert"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.keep_then_statement_on_same_line"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.indent_switchstatements_compare_to_switch"
value="true"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.number_of_blank_lines_at_beginning_of_method_body"
value="0"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.alignment_for_multiple_fields"
value="1"/>
+<setting id="com.aptana.ide.editors.codeassist.formatter.wraptags2" value=""/>
+</profile>
+</profiles>

Propchange: ofbiz/trunk/ofbiz.aptana.js.format.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/ofbiz.aptana.js.format.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/ofbiz.aptana.js.format.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message