Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for pmdMain (0.17 sec)

  1. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginIncrementalAnalysisIntegrationTest.groovy

            expect:
            succeeds("check", "-i")
            !file("build/tmp/pmdMain/incremental.cache").exists()
        }
    
        def "incremental analysis can be enabled"() {
            given:
            Assume.assumeTrue(supportIncrementalAnalysis())
            goodCode()
    
            when:
            succeeds("pmdMain")
    
            then:
            file("build/tmp/pmdMain/incremental.cache").exists()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            // pmdMain and pmdTest
            failure.assertHasFailures(2)
        }
    
        def "gets reasonable message when priority level threshold is out of range from task"() {
            goodCode()
            buildFile << """
            pmdMain {
                rulesMinimumPriority = 11
            }
    """
            expect:
            fails("check")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

            when:
            succeeds("pmdMain")
    
            then:
            outputContains("Running pmd with toolchain '${jdk.javaHome.absolutePath}'.")
        }
    
        def "uses current jdk if not specified otherwise"() {
            Assume.assumeTrue(fileLockingIssuesSolved())
            given:
            goodCode()
            writeBuildFile()
    
            when:
            succeeds("pmdMain")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/test/groovy/org/gradle/api/plugins/quality/PmdPluginTest.groovy

                threads = 2
            }
    
            expect:
            hasCustomizedSettings("pmdMain", project.sourceSets.main)
            hasCustomizedSettings("pmdTest", project.sourceSets.test)
            hasCustomizedSettings("pmdOther", project.sourceSets.other)
            that(project.check, dependsOn(hasItem('pmdMain')))
            that(project.check, dependsOn(not(hasItems('pmdTest', 'pmdOther'))))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 14:47:31 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdCustomRulesIntegrationTest.groovy

                }
            """
    
            file("src/main/java/org/gradle/ruleusing/Class1.java") << breakingDefaultRulesCode()
            file("rules.xml") << customRuleSet()
    
            expect:
            succeeds(":pmdMain")
    
            where:
            customRuleSetConfig << [
                'ruleSetConfig = resources.text.fromFile("rules.xml")',
                'ruleSetFiles = files("rules.xml")'
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/core-plugins/pmd_plugin.adoc

    Note that PMD will run with the same Java version used to run Gradle.
    
    [[sec:pmd_tasks]]
    == Tasks
    
    The PMD plugin adds the following tasks to the project:
    
    `pmdMain` — link:{groovyDslPath}/org.gradle.api.plugins.quality.Pmd.html[Pmd]::
    +
    Runs PMD against the production Java source files.
    
    `pmdTest` — link:{groovyDslPath}/org.gradle.api.plugins.quality.Pmd.html[Pmd]::
    +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

            buildFile << """
                dependencies {
                    //downgrade version:
                    pmd "net.sourceforge.pmd:pmd:5.1.1"
                }
            """.stripIndent()
    
            when:
            fails("pmdMain")
    
            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")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginSubtypeParamIntegrationTest.groovy

        }
    
        def "unused code rule not triggered when passing subtype parameter"() {
            assumeTrue(supportsAuxclasspath() && fileLockingIssuesSolved())
    
            expect:
            succeeds "pmdMain"
        }
    
        private underAnalysisCode() {
            """
                package org.gradle.ruleusing;
    
                import ch.qos.logback.contrib.json.JsonLayoutBase;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/configuration/ExecuteDomainObjectCollectionCallbackBuildOperationTypeIntegrationTest.groovy

            "matching{true}.all" | 'checkstyle reports'      | ['java-library', 'checkstyle'] | 'checkstyleMain.reports'                 | ''
            "matching{true}.all" | 'pmd reports'             | ['java-library', 'pmd']        | 'pmdMain.reports'                        | ''
            "matching{true}.all" | 'codenarc reports'        | ['groovy', 'codenarc']         | 'codenarcMain.reports'                   | ''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/test.go

    			pmain.Imports = append(pmain.Imports, pxtest.ImportPath)
    			t.ImportXtest = true
    		}
    
    		// Sort and dedup pmain.Imports.
    		// Only matters for go list -test output.
    		sort.Strings(pmain.Imports)
    		w := 0
    		for _, path := range pmain.Imports {
    			if w == 0 || path != pmain.Imports[w-1] {
    				pmain.Imports[w] = path
    				w++
    			}
    		}
    		pmain.Imports = pmain.Imports[:w]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top