very basic code convention. no licensing/stripping yet.
authorjprocter <Jim Procter>
Tue, 7 Jun 2005 13:20:11 +0000 (13:20 +0000)
committerjprocter <Jim Procter>
Tue, 7 Jun 2005 13:20:11 +0000 (13:20 +0000)
jalview-jalopy.xml [new file with mode: 0755]

diff --git a/jalview-jalopy.xml b/jalview-jalopy.xml
new file mode 100755 (executable)
index 0000000..7008872
--- /dev/null
@@ -0,0 +1,376 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<jalopy>\r
+    <general>\r
+        <compliance>\r
+            <version>14</version>\r
+        </compliance>\r
+        <style>\r
+            <description>Sun Java Coding Convention</description>\r
+            <name>Sun</name>\r
+        </style>\r
+    </general>\r
+    <inspector>\r
+        <enable>true</enable>\r
+        <naming>\r
+            <classes>\r
+                <abstract>[A-Z][a-zA-Z0-9]+</abstract>\r
+                <general>[A-Z][a-zA-Z0-9]+</general>\r
+            </classes>\r
+            <fields>\r
+                <default>[a-z][\w]+</default>\r
+                <defaultStatic>[a-z][\w]+</defaultStatic>\r
+                <defaultStaticFinal>[a-zA-Z][\w]+</defaultStaticFinal>\r
+                <private>[a-z][\w]+</private>\r
+                <privateStatic>[a-z][\w]+</privateStatic>\r
+                <privateStaticFinal>[a-zA-Z][\w]+</privateStaticFinal>\r
+                <protected>[a-z][\w]+</protected>\r
+                <protectedStatic>[a-z][\w]+</protectedStatic>\r
+                <protectedStaticFinal>[a-zA-Z][\w]+</protectedStaticFinal>\r
+                <public>[a-z][\w]+</public>\r
+                <publicStatic>[a-z][\w]+</publicStatic>\r
+                <publicStaticFinal>[a-zA-Z][\w]+</publicStaticFinal>\r
+            </fields>\r
+            <interfaces>[A-Z][a-zA-Z0-9]+</interfaces>\r
+            <labels>\w+</labels>\r
+            <methods>\r
+                <default>[a-z][\w]+</default>\r
+                <defaultStatic>[a-z][\w]+</defaultStatic>\r
+                <defaultStaticFinal>[a-z][\w]+</defaultStaticFinal>\r
+                <private>[a-z][\w]+</private>\r
+                <privateStatic>[a-z][\w]+</privateStatic>\r
+                <privateStaticFinal>[a-z][\w]+</privateStaticFinal>\r
+                <protected>[a-z][\w]+</protected>\r
+                <protectedStatic>[a-z][\w]+</protectedStatic>\r
+                <protectedStaticFinal>[a-z][\w]+</protectedStaticFinal>\r
+                <public>[a-z][\w]+</public>\r
+                <publicStatic>[a-z][\w]+</publicStatic>\r
+                <publicStaticFinal>[a-z][\w]+</publicStaticFinal>\r
+            </methods>\r
+            <packages>[a-z]+(?:\.[a-z]+)*</packages>\r
+            <parameters>\r
+                <default>[a-z][\w]+</default>\r
+                <final>[a-z][\w]+</final>\r
+            </parameters>\r
+            <variables>[a-z][\w]*</variables>\r
+        </naming>\r
+        <tips>\r
+            <adhereToNamingConvention>false</adhereToNamingConvention>\r
+            <alwaysOverrideHashCode>false</alwaysOverrideHashCode>\r
+            <avoidThreadGroups>false</avoidThreadGroups>\r
+            <declareCollectionComment>false</declareCollectionComment>\r
+            <dontIgnoreExceptions>false</dontIgnoreExceptions>\r
+            <dontSubstituteObjectEquals>false</dontSubstituteObjectEquals>\r
+            <neverDeclareException>false</neverDeclareException>\r
+            <neverDeclareThrowable>false</neverDeclareThrowable>\r
+            <neverInvokeWaitOutsideLoop>false</neverInvokeWaitOutsideLoop>\r
+            <neverReturnZeroArrays>false</neverReturnZeroArrays>\r
+            <neverUseEmptyFinally>false</neverUseEmptyFinally>\r
+            <obeyContractEquals>false</obeyContractEquals>\r
+            <overrideToString>false</overrideToString>\r
+            <referToObjectsByInterface>false</referToObjectsByInterface>\r
+            <replaceStructureWithClass>false</replaceStructureWithClass>\r
+            <stringLiterallI18n>false</stringLiterallI18n>\r
+            <useInterfaceOnlyForTypes>false</useInterfaceOnlyForTypes>\r
+            <wrongCollectionComment>false</wrongCollectionComment>\r
+        </tips>\r
+    </inspector>\r
+    <internal>\r
+        <version>6</version>\r
+    </internal>\r
+    <messages>\r
+        <priority>\r
+            <general>30000</general>\r
+            <parser>30000</parser>\r
+            <parserJavadoc>30000</parserJavadoc>\r
+            <printer>30000</printer>\r
+            <printerJavadoc>30000</printerJavadoc>\r
+            <transform>30000</transform>\r
+        </priority>\r
+        <showErrorStackTrace>true</showErrorStackTrace>\r
+    </messages>\r
+    <misc>\r
+        <threadCount>1</threadCount>\r
+    </misc>\r
+    <printer>\r
+        <alignment>\r
+            <methodCallChain>true</methodCallChain>\r
+            <parameterMethodDeclaration>false</parameterMethodDeclaration>\r
+            <ternaryOperator>true</ternaryOperator>\r
+            <variableAssignment>false</variableAssignment>\r
+            <variableIdentifier>false</variableIdentifier>\r
+        </alignment>\r
+        <backup>\r
+            <directory>bak</directory>\r
+            <level>1</level>\r
+        </backup>\r
+        <blanklines>\r
+            <after>\r
+                <block>1</block>\r
+                <braceLeft>0</braceLeft>\r
+                <class>1</class>\r
+                <declaration>0</declaration>\r
+                <footer>1</footer>\r
+                <header>0</header>\r
+                <interface>1</interface>\r
+                <lastImport>2</lastImport>\r
+                <method>1</method>\r
+                <package>1</package>\r
+            </after>\r
+            <before>\r
+                <block>1</block>\r
+                <braceRight>0</braceRight>\r
+                <caseBlock>1</caseBlock>\r
+                <comment>\r
+                    <javadoc>1</javadoc>\r
+                    <multiline>1</multiline>\r
+                    <singleline>1</singleline>\r
+                </comment>\r
+                <controlStatement>1</controlStatement>\r
+                <declaration>1</declaration>\r
+                <footer>0</footer>\r
+                <header>0</header>\r
+            </before>\r
+            <keepUpTo>1</keepUpTo>\r
+        </blanklines>\r
+        <braces>\r
+            <empty>\r
+                <cuddle>false</cuddle>\r
+                <insertStatement>false</insertStatement>\r
+            </empty>\r
+            <insert>\r
+                <dowhile>false</dowhile>\r
+                <for>false</for>\r
+                <ifelse>true</ifelse>\r
+                <while>false</while>\r
+            </insert>\r
+            <remove>\r
+                <block>true</block>\r
+                <dowhile>false</dowhile>\r
+                <for>false</for>\r
+                <ifelse>false</ifelse>\r
+                <while>false</while>\r
+            </remove>\r
+            <treatDifferent>\r
+                <methodClass>false</methodClass>\r
+                <methodClassIfWrapped>false</methodClassIfWrapped>\r
+            </treatDifferent>\r
+        </braces>\r
+        <chunks>\r
+            <blanklines>true</blanklines>\r
+            <comments>true</comments>\r
+        </chunks>\r
+        <comments>\r
+            <format>\r
+                <multiline>false</multiline>\r
+            </format>\r
+            <javadoc>\r
+                <check>\r
+                    <innerclass>true</innerclass>\r
+                    <tags>true</tags>\r
+                    <throwsTags>true</throwsTags>\r
+                </check>\r
+                <fieldsShort>true</fieldsShort>\r
+                <generate>\r
+                    <class>5</class>\r
+                    <constructor>5</constructor>\r
+                    <field>5</field>\r
+                    <method>5</method>\r
+                </generate>\r
+                <parseComments>false</parseComments>\r
+                <tags>\r
+                    <in-line />\r
+                    <standard />\r
+                </tags>\r
+                <templates>\r
+                    <method>\r
+                        <bottom> */</bottom>\r
+                        <exception> * @throws $exceptionType$ TODO: DOCUMENT ME!</exception>\r
+                        <param> * @param $paramType$ TODO: DOCUMENT ME!</param>\r
+                        <return> * @return TODO: DOCUMENT ME!</return>\r
+                        <top>/**| * TODO: DOCUMENT ME!</top>\r
+                    </method>\r
+                </templates>\r
+            </javadoc>\r
+            <remove>\r
+                <javadoc>false</javadoc>\r
+                <multiline>false</multiline>\r
+                <singleline>false</singleline>\r
+            </remove>\r
+            <separator>\r
+                <fillCharacter>-</fillCharacter>\r
+                <insert>false</insert>\r
+                <insertRecursive>false</insertRecursive>\r
+                <text>\r
+                    <class>Inner Classes</class>\r
+                    <constructor>Constructors</constructor>\r
+                    <field>Instance fields</field>\r
+                    <initializer>Instance initializers</initializer>\r
+                    <interface>Inner Interfaces</interface>\r
+                    <method>Methods</method>\r
+                    <static>Static fields/initializers</static>\r
+                </text>\r
+            </separator>\r
+        </comments>\r
+        <environment />\r
+        <footer>\r
+            <keys />\r
+            <smartMode>0</smartMode>\r
+            <use>false</use>\r
+        </footer>\r
+        <header>\r
+            <keys />\r
+            <smartMode>0</smartMode>\r
+            <use>false</use>\r
+        </header>\r
+        <history>\r
+            <policy>disabled</policy>\r
+        </history>\r
+        <imports>\r
+            <grouping>\r
+                <defaultDepth>3</defaultDepth>\r
+                <packages>*:0|gnu:2|java:2|javax:2</packages>\r
+            </grouping>\r
+            <policy>disabled</policy>\r
+            <sort>true</sort>\r
+        </imports>\r
+        <indentation>\r
+            <caseFromSwitch>true</caseFromSwitch>\r
+            <continuation>\r
+                <block>true</block>\r
+                <operator>false</operator>\r
+            </continuation>\r
+            <firstColumnComments>true</firstColumnComments>\r
+            <label>false</label>\r
+            <policy>\r
+                <deep>false</deep>\r
+            </policy>\r
+            <sizes>\r
+                <braceCuddled>1</braceCuddled>\r
+                <braceLeft>1</braceLeft>\r
+                <braceRight>0</braceRight>\r
+                <braceRightAfter>1</braceRightAfter>\r
+                <continuation>4</continuation>\r
+                <deep>55</deep>\r
+                <extends>-1</extends>\r
+                <general>4</general>\r
+                <implements>-1</implements>\r
+                <leading>0</leading>\r
+                <tabs>8</tabs>\r
+                <throws>-1</throws>\r
+                <trailingComment>1</trailingComment>\r
+            </sizes>\r
+            <tabs>\r
+                <enable>false</enable>\r
+                <onlyLeading>false</onlyLeading>\r
+            </tabs>\r
+        </indentation>\r
+        <misc>\r
+            <arrayBracketsAfterIdent>false</arrayBracketsAfterIdent>\r
+            <forceFormatting>false</forceFormatting>\r
+            <insertExpressionParentheses>true</insertExpressionParentheses>\r
+            <insertLoggingConditional>false</insertLoggingConditional>\r
+            <insertTrailingNewline>true</insertTrailingNewline>\r
+            <insertUID>false</insertUID>\r
+        </misc>\r
+        <sorting>\r
+            <declaration>\r
+                <class>false</class>\r
+                <constructor>false</constructor>\r
+                <enable>false</enable>\r
+                <interface>false</interface>\r
+                <method>false</method>\r
+                <order>static|field|initializer|constructor|method|interface|class</order>\r
+                <variable>false</variable>\r
+            </declaration>\r
+            <modifier>\r
+                <enable>false</enable>\r
+                <order>public|protected|private|abstract|static|final|synchronized|transient|volatile|native|strictfp</order>\r
+            </modifier>\r
+        </sorting>\r
+        <whitespace>\r
+            <after>\r
+                <comma>true</comma>\r
+                <semicolon>true</semicolon>\r
+                <typeCast>true</typeCast>\r
+            </after>\r
+            <before>\r
+                <braces>true</braces>\r
+                <brackets>false</brackets>\r
+                <bracketsTypes>false</bracketsTypes>\r
+                <caseColon>false</caseColon>\r
+                <operator>\r
+                    <not>false</not>\r
+                </operator>\r
+                <parentheses>\r
+                    <methodCall>false</methodCall>\r
+                    <methodDeclaration>false</methodDeclaration>\r
+                    <statement>true</statement>\r
+                </parentheses>\r
+            </before>\r
+            <padding>\r
+                <braces>true</braces>\r
+                <brackets>false</brackets>\r
+                <operator>\r
+                    <assignment>true</assignment>\r
+                    <bitwise>true</bitwise>\r
+                    <logical>true</logical>\r
+                    <mathematical>true</mathematical>\r
+                    <relational>true</relational>\r
+                    <shift>true</shift>\r
+                </operator>\r
+                <parenthesis>false</parenthesis>\r
+                <typeCast>false</typeCast>\r
+            </padding>\r
+        </whitespace>\r
+        <wrapping>\r
+            <always>\r
+                <after>\r
+                    <arrayElement>0</arrayElement>\r
+                    <braceRight>false</braceRight>\r
+                    <extendsTypes>false</extendsTypes>\r
+                    <implementsTypes>false</implementsTypes>\r
+                    <label>true</label>\r
+                    <methodCallChained>false</methodCallChained>\r
+                    <ternaryOperator>\r
+                        <first>false</first>\r
+                        <second>false</second>\r
+                    </ternaryOperator>\r
+                    <throwsTypes>false</throwsTypes>\r
+                </after>\r
+                <before>\r
+                    <braceLeft>false</braceLeft>\r
+                    <extends>false</extends>\r
+                    <implements>false</implements>\r
+                    <throws>false</throws>\r
+                </before>\r
+                <parameter>\r
+                    <methodCall>false</methodCall>\r
+                    <methodCallNested>false</methodCallNested>\r
+                    <methodDeclaration>false</methodDeclaration>\r
+                </parameter>\r
+            </always>\r
+            <general>\r
+                <beforeOperator>true</beforeOperator>\r
+                <enable>true</enable>\r
+                <lineLength>80</lineLength>\r
+            </general>\r
+            <ondemand>\r
+                <after>\r
+                    <assignment>false</assignment>\r
+                    <leftParenthesis>false</leftParenthesis>\r
+                    <parameter>false</parameter>\r
+                    <types>\r
+                        <extends>false</extends>\r
+                        <implements>false</implements>\r
+                        <throws>false</throws>\r
+                    </types>\r
+                </after>\r
+                <before>\r
+                    <rightParenthesis>false</rightParenthesis>\r
+                </before>\r
+                <groupingParentheses>false</groupingParentheses>\r
+            </ondemand>\r
+        </wrapping>\r
+    </printer>\r
+</jalopy>\r
+\r