Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for goodCode (2.1 sec)

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

            buildFile << 'pmd { incrementalAnalysis = false }'
            goodCode()
    
            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:
    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/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ProgressCrossVersionSpec.groovy

    class ProgressCrossVersionSpec extends ToolingApiSpecification implements WithOldConfigurationsSupport {
    
        def "receive progress events when requesting a model"() {
            given:
            goodCode()
    
            when: "asking for a model and specifying some task(s) to run first"
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/BuildProgressCrossVersionSpec.groovy

    class BuildProgressCrossVersionSpec extends ToolingApiSpecification implements WithOldConfigurationsSupport {
    
        def "receive build progress events when requesting a model"() {
            given:
            goodCode()
    
            when: "asking for a model and specifying some task(s) to run first"
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

        }
    
        @Override
        String logStatement() {
            "compiler daemon"
        }
    
        def setup() {
            executer.withArguments("-d")
        }
    
        def "respects fork options settings"() {
            goodCode()
            buildFile << """
                import org.gradle.workers.internal.WorkerDaemonClientsManager
                import org.gradle.internal.jvm.Jvm
    
                tasks.withType(JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

            given:
            goodCode()
            writeBuildFile()
    
            when:
            succeeds("pmdMain")
    
            then:
            outputContains("Running pmd with toolchain '${Jvm.current().javaHome.absolutePath}'")
        }
    
        def "uses current jdk if pmd plugin is not applied"() {
            given:
            goodCode()
            setupExecutorForToolchains()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressDaemonErrorsCrossVersionSpec.groovy

        void setup() {
            toolingApi.requireIsolatedDaemons()
        }
    
        def "should received failed event when daemon disappears unexpectedly with TAPI higher 2.4"() {
            given:
            goodCode()
            def sync = server.expectAndBlock('sync')
    
            when:
            def result = []
            withConnection { ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

            given:
            goodCode()
            badJavaCode()
    
            and:
            buildFile << "compileScala.options.failOnError = false\n"
    
            expect:
            succeeds 'compileScala'
        }
    
        def "joint compile bad java code do not fail the build when scalaCompileOptions.failOnError is false"() {
            given:
            goodCode()
            badJavaCode()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginVersionIntegrationTest.groovy

            writeRuleFile()
        }
    
        def "analyze good code"() {
            goodCode()
    
            expect:
            succeeds("check")
            report("main").exists()
            report("test").exists()
        }
    
        @Requires(IntegTestPreconditions.NotParallelExecutor)
        def "is incremental"() {
            given:
            goodCode()
    
            expect:
            succeeds("codenarcMain")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/AbstractToolchainZincScalaCompileIntegrationTest.groovy

            given:
            goodJavaInterfaceCode()
            goodCodeUsingJavaInterface()
    
            expect:
            succeeds 'compileScala', '-s'
        }
    
        def "can generate ScalaDoc"() {
            given:
            goodCode()
    
            expect:
            succeeds("scaladoc")
            file("build/docs/scaladoc/compile/test/Person.html").assertExists()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginHtmlReportIntegrationTest.groovy

    <module name="Checker">
        <module name="TreeWalker">
            <module name="$nameOfCheck"/>
        </module>
    </module>
            """
        }
    
        private void goodCode() {
            file("src/main/java/com/example/Foo.java").java """
                package com.example;
    
                public class Foo {
                    /**
                     * This returns a bar.
                     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top