From c812fd0470efb507e687c84c4318e6b54982db03 Mon Sep 17 00:00:00 2001
From: wyleung <w.y.leung@e-sensei.nl>
Date: Tue, 28 Oct 2014 14:12:01 +0100
Subject: [PATCH] #77 add the scaliform maven plugin to pom and disable the
 checkstyle (for netbeans)

---
 biopet-framework/nb-configuration.xml |  1 -
 biopet-framework/pom.xml              | 34 +++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/biopet-framework/nb-configuration.xml b/biopet-framework/nb-configuration.xml
index 60b959e67..c2f0518e2 100644
--- a/biopet-framework/nb-configuration.xml
+++ b/biopet-framework/nb-configuration.xml
@@ -23,7 +23,6 @@ Any value defined here will override the pom.xml file value but is only applicab
         <com-junichi11-netbeans-changelf.use-project>true</com-junichi11-netbeans-changelf.use-project>
         <com-junichi11-netbeans-changelf.lf-kind>LF</com-junichi11-netbeans-changelf.lf-kind>
         <com-junichi11-netbeans-changelf.use-global>false</com-junichi11-netbeans-changelf.use-global>
-        <netbeans.checkstyle.format>true</netbeans.checkstyle.format>
         <com-junichi11-netbeans-changelf.show-dialog>true</com-junichi11-netbeans-changelf.show-dialog>
         <org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
         <netbeans.hint.jdkPlatform>JDK_1.8</netbeans.hint.jdkPlatform>
diff --git a/biopet-framework/pom.xml b/biopet-framework/pom.xml
index 2b25af4b1..d9c76caa1 100644
--- a/biopet-framework/pom.xml
+++ b/biopet-framework/pom.xml
@@ -211,6 +211,40 @@
                     <showDeprecation>true</showDeprecation>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.scalariform</groupId>
+                <artifactId>scalariform-maven-plugin</artifactId>
+                <version>0.1.4</version>
+                <executions>
+                  <execution>
+                    <phase>process-sources</phase>
+                    <goals>
+                      <goal>format</goal>
+                    </goals>
+                    <configuration>
+                      <rewriteArrowSymbols>false</rewriteArrowSymbols>
+                      <alignParameters>true</alignParameters>
+                      <alignSingleLineCaseStatements_maxArrowIndent>40</alignSingleLineCaseStatements_maxArrowIndent>
+                      <alignSingleLineCaseStatements>true</alignSingleLineCaseStatements>
+                      <compactStringConcatenation>false</compactStringConcatenation>
+                      <compactControlReadability>false</compactControlReadability>
+                      <doubleIndentClassDeclaration>false</doubleIndentClassDeclaration>
+                      <formatXml>true</formatXml>
+                      <indentLocalDefs>false</indentLocalDefs>
+                      <indentPackageBlocks>true</indentPackageBlocks>
+                      <indentSpaces>2</indentSpaces>
+                      <placeScaladocAsterisksBeneathSecondAsterisk>false</placeScaladocAsterisksBeneathSecondAsterisk>
+                      <preserveDanglingCloseParenthesis>true</preserveDanglingCloseParenthesis>
+                      <preserveSpaceBeforeArguments>false</preserveSpaceBeforeArguments>
+                      <rewriteArrowSymbols>false</rewriteArrowSymbols>
+                      <spaceBeforeColon>false</spaceBeforeColon>
+                      <spaceInsideBrackets>false</spaceInsideBrackets>
+                      <spaceInsideParentheses>false</spaceInsideParentheses>
+                      <spacesWithinPatternBinders>true</spacesWithinPatternBinders>
+                    </configuration>
+                  </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>
-- 
GitLab