jvanzyl     2002/06/26 14:18:35

  Added:       src/templates/build/plugins/checkstyle plugin.jelly
                        plugin.properties
                        sun-code-conventions-checkstyle.properties
                        turbine-checkstyle.properties
  Log:
  checkstyle plugin
  
  Revision  Changes    Path
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/checkstyle/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project xmlns:j="jelly:core">
  
    <!-- ================================================================== -->
    <!-- C H E C K S T Y L E                                               -->
    <!-- ================================================================== -->
  
    <goal name="checkstyle">
  
      <j:if test="${flags.sourcesPresent}">
  
      <!--
        ignorePublicInInterface="${maven.checkstyle.ignore.public.in.interface}"
      -->
  
      <checkstyle
        lcurlyType="${maven.checkstyle.lcurly.type}"
        lcurlyMethod="${maven.checkstyle.lcurly.method}"
        lcurlyOther="${maven.checkstyle.lcurly.other}"
        rcurly="${maven.checkstyle.rcurly}"
        parenPad="${maven.checkstyle.paren.pad}"
        allowTabs="${maven.checkstyle.allow.tabs}"
        allowProtected="${maven.checkstyle.allow.protected}"
        allowPackage="${maven.checkstyle.allow.package}"
        allowNoAuthor="${maven.checkstyle.allow.no.author}"
        maxLineLen="${maven.checkstyle.max.line.len}"
        tabWidth="${maven.checkstyle.tab.width}"
        ignoreLineLengthPattern="${maven.checkstyle.ignore.line.len.pattern}"
        maxMethodLen="${maven.checkstyle.max.method.len}"
        maxConstructorLen="${maven.checkstyle.max.constructor.len}"
        maxFileLen="${maven.checkstyle.max.file.len}"
        ignoreImportLen="${maven.checkstyle.ignore.import.len}"
        memberPattern="${maven.checkstyle.member.pattern}"
        publicMemberPattern="${maven.checkstyle.public.member.pattern}"
        paramPattern="${maven.checkstyle.param.pattern}"
        constPattern="${maven.checkstyle.const.pattern}"
        staticPattern="${maven.checkstyle.static.pattern}"
        typePattern="${maven.checkstyle.type.pattern}"
        methodPattern="${maven.checkstyle.method.pattern}"
        localVarPattern="${maven.checkstyle.local.var.pattern}"
        headerFile="${maven.checkstyle.header.file}"
        headerLinesRegexp="${maven.checkstyle.header.lines.regexp}"
        headerIgnoreLine="${maven.checkstyle.header.ignore.line}"
        javadocScope="${maven.checkstyle.javadoc.scope}"
        requirePackageHtml="${maven.checkstyle.require.package.html}"
        ignoreImports="${maven.checkstyle.ignore.imports}"
        illegalImports="${maven.checkstyle.illegal.imports}"
        ignoreWhitespace="${maven.checkstyle.ignore.whitespace}"
        ignoreCastWhitespace="${maven.checkstyle.ignore.cast.whitespace}"
        ignoreBraces="${maven.checkstyle.ignore.braces}"
        failOnViolation="${maven.checkstyle.fail.on.violation}"
        cacheFile="${maven.checkstyle.cache.file}" >
        <fileset dir="${maven.build.sourceDirectory}"
          includes="${maven.checkstyle.includes}"
          excludes="${maven.checkstyle.excludes}"/>
        <formatter type="xml" toFile="${maven.build.dir}/checkstyle-raw-report.xml"/>
        <formatter type="plain" toFile="${maven.build.dir}/checkstyle-raw-report.txt"/>
      </checkstyle>
  
      <dvsl
        basedir="${basedir}"
        style="${maven.home}/stylesheets/checkstyle.dvsl"
        toolboxfile="${maven.home}/stylesheets/toolbox.props"
        in="${maven.build.dir}/checkstyle-raw-report.xml"
        out="${maven.gen.docs}/checkstyle-report.xml">
  
        <classpath>
          <path refid="maven-classpath"/>
        </classpath>
      </dvsl>
  
      </j:if>
  
    </goal>
  
  </project>
  
  
  
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/checkstyle/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R I E S
  # -------------------------------------------------------------------
  # Checkstyle plugin
  # -------------------------------------------------------------------
  
  maven.build.dir = ${basedir}/target
  maven.checkstyle.includes = **/*.java
  maven.checkstyle.excludes = 
  maven.checkstyle.properties = 
${maven.home}/plugins/checkstyle/turbine-checkstyle.properties
  maven.checkstyle.fail.on.violation = false
  maven.checkstyle.cache.file = ${maven.build.dir}/checkstyle-cachefile
  
  
  
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/checkstyle/sun-code-conventions-checkstyle.properties
  
  Index: sun-code-conventions-checkstyle.properties
  ===================================================================
  # Sample checkstyle properties file to use with maven to support the
  # sun code conventions
  #
  # To use this file, place the following in your project.properties:
  #
  # 
maven.checkstyle.properties=${maven.home}/plugins/core/sun-code-conventions-checkstyle.properties
  #
  
  
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/checkstyle/turbine-checkstyle.properties
  
  Index: turbine-checkstyle.properties
  ===================================================================
  #
  # Checkstyle settings ... default turbine project code settings, these can be
  # overridden in a project specific properties file.
  #
  checkstyle.lcurly.type = nl
  checkstyle.lcurly.method = nl
  checkstyle.lcurly.other = nl
  checkstyle.rcurly = alone
  #checkstyle.paren.pad = nospace
  #checkstyle.allow.tabs = false
  #checkstyle.allow.protected = false
  #checkstyle.allow.package = false
  #checkstyle.allow.no.author = false
  #checkstyle.max.line.len = 80
  checkstyle.tab.width = 4
  #checkstyle.ignore.maxlinelen = ^$
  #checkstyle.max.method.len = 150
  #checkstyle.max.constructor.len = 150
  checkstyle.maxfilelen = 2000
  #checkstyle.ignore.importlength = false
  #checkstyle.pattern.member = ^[a-z][a-zA-Z0-9]*$
  checkstyle.pattern.publicmember = ^f[A-Z][a-zA-Z0-9]*$
  #checkstyle.pattern.parameter = ^[a-z][a-zA-Z0-9]*$
  #checkstyle.pattern.const = ^[A-Z]([A-Z0-9_]*[A-Z0-9])?$
  #checkstyle.pattern.static = ^[a-z][a-zA-Z0-9]*$
  #checkstyle.pattern.type = ^[A-Z][a-zA-Z0-9]*$
  #checkstyle.pattern.method = ^[a-z][a-zA-Z0-9]*$
  #checkstyle.pattern.localvar = ^[a-z][a-zA-Z0-9]*$
  #checkstyle.javadoc.scope = private
  #checkstyle.require.package.html = false
  #checkstyle.ignore.imports = false
  checkstyle.illegal.imports = 
  #checkstyle.ignore.whitespace = false
  #checkstyle.ignore.cast.whitespace = false
  #checkstyle.ignore.braces = false
  #checkstyle.ignore.public.in.interface = false
  checkstyle.header.file = LICENSE.txt
  #checkstyle.header.regexp = false
  checkstyle.header.ignoreline = 1,6
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to