Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for Pmd (0.02 sec)

  1. platforms/documentation/docs/src/snippets/codeQuality/codeQuality/groovy/build.gradle

    // end::customize-checkstyle-report[]
    
    // tag::customize-pmd[]
    pmd {
        consoleOutput = true
        toolVersion = "7.0.0"
        rulesMinimumPriority = 5
        ruleSets = ["category/java/errorprone.xml", "category/java/bestpractices.xml"]
    }
    // end::customize-pmd[]
    
    // tag::pmd-threads[]
    pmd {
        threads = 4
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 14 14:22:49 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginIncrementalAnalysisIntegrationTest.groovy

                apply plugin: "java"
                apply plugin: "pmd"
    
                ${mavenCentralRepository()}
    
                pmd {
                    toolVersion = '$version'
                }
                ${fileLockingIssuesSolved() ? "" : """
                tasks.withType(Pmd) {
                    // clear the classpath to avoid file locking issues on PMD version < 5.5.1
                    classpath = files()
                }"""}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/PmdReports.java

    /**
     * The reporting configuration for the {@link Pmd} task.
     */
    public interface PmdReports extends ReportContainer<SingleFileReport> {
    
        /**
         * The pmd (single file) HTML report
         *
         * @return The pmd (single file) HTML report
         */
        @Internal
        SingleFileReport getHtml();
    
        /**
         * The pmd (single file) XML report
         *
         * @return The pmd (single file) XML report
         */
        @Internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdRelocationIntegrationTest.groovy

                apply plugin: "java"
                apply plugin: "pmd"
    
                ${mavenCentralRepository()}
    
                task pmd(type: Pmd) {
                    source "src/main/java"
                }
            """
        }
    
        @Override
        protected extractResultsFrom(TestFile projectDir) {
            projectDir.file("build/reports/pmd/pmd.xml").text
                .replaceAll(/timestamp=".*?"/, 'timestamp="[NUMBER]"')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/kotlin/build.gradle.kts

    }
    
    // tag::define-classpath[]
    val pmd = configurations.create("pmd")
    
    dependencies {
        pmd(group = "pmd", name = "pmd", version = "4.2.5")
    }
    // end::define-classpath[]
    
    // tag::use-classpath[]
    tasks.register("check") {
        doLast {
            ant.withGroovyBuilder {
                "taskdef"("name" to "pmd",
                          "classname" to "net.sourceforge.pmd.ant.PMDTask",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 800 bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

            then:
            failure.assertHasCause("Incremental analysis only supports PMD 6.0.0 and newer. Please upgrade from PMD 5.1.1 or disable incremental analysis.")
    
            when:
            fails("pmdTest")
    
            then:
            failure.assertHasCause("Incremental analysis only supports PMD 6.0.0 and newer. Please upgrade from PMD 5.1.1 or disable incremental analysis.")
    
            when:
            fails("check")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdCustomRulesIntegrationTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.api.plugins.quality.pmd
    
    class PmdCustomRulesIntegrationTest extends AbstractPmdPluginVersionIntegrationTest {
    
        def "overrides default rules if custom rules are configured"() {
            given:
            buildFile << """
                plugins {
                    id "pmd"
                    id "java-library"
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/PmdExtension.java

        }
    
        /**
         * Whether or not to write PMD results to {@code System.out}.
         */
        public void setConsoleOutput(boolean consoleOutput) {
            this.consoleOutput = consoleOutput;
        }
    
        /**
         * Controls whether to use incremental analysis or not.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/PmdAction.java

    import org.gradle.api.internal.project.antbuilder.AntBuilderDelegate;
    
    /**
     * Action to be run via the Worker API which executes a Pmd Ant task.
     */
    public abstract class PmdAction extends AntWorkAction<PmdActionParameters> {
    
        @Override
        protected String getActionName() {
            return "pmd";
        }
    
        @Override
        protected Action<AntBuilderDelegate> getAntAction() {
            return new PmdInvoker(getParameters());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/PluginConfigurationAttributesIntegrationTest.groovy

            where:
            plugin       | configuration
            'antlr'      | 'antlr'
            'codenarc'   | 'codenarc'
            'jacoco'     | 'jacocoAgent'
            'jacoco'     | 'jacocoAnt'
            'pmd'        | 'pmd'
            'checkstyle' | 'checkstyle'
            'scala'      | 'zinc'
            'war'        | 'providedRuntime'
            'war'        | 'providedCompile'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top