Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3715

Automate Spring Roo code formatting - Use Google Code Style

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M1
    • Fix Version/s: 2.0.0.M2
    • Component/s: None
    • Labels:
      None

      Description

      Automate formatting of Spring Roo code. This will allow developers to contribute to Spring Roo project and mantain a valid code format.

      Spring Roo will use Eclipse Java Code Format definition based on Google Style:

      To do:

      • Create "devel-resources" folder on Spring Roo project.
      • Include eclipse-java-google-style_no-doc-format.xml on previous folder
      • Include plugin maven-java-formatter-plugin like:
             <plugin>
                  <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                  <artifactId>maven-java-formatter-plugin</artifactId>
                  <version>0.4</version>
                  <configuration>
                      <lineEnding>LF</lineEnding>
                      <configFile>${devel.resources.path}/FORMATTER_NAME.xml</configFile>
                       <excludes>
                          <exclude>org/springframework/roo/bootstrap/Main.java</exclude>
                          <exclude>org/springframework/roo/bootstrap/AutoProcessor.java</exclude>
                      </excludes>
                  </configuration>
                  <executions>
                      <execution>
                          <goals>
                              <goal>format</goal>
                          </goals>
                      </execution>
                  </executions>
              </plugin>
        
      • Update Spring Roo README.adoc indicating Code Style

        Attachments

          Activity

            People

            • Assignee:
              sclares Sergio Clares Martínez
              Reporter:
              jcgarcia Juan Carlos García del Canto
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: