Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for checkstyleMain (0.16 sec)

  1. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginExternalDTDOptionIntegrationTest.groovy

                }
            """
    
            when:
            fails 'checkstyleMain'
    
            then:
            assertFailedWithDtdProcessingError()
        }
    
        def "enable_external_dtd_load feature NOT enabled by default"() {
            when:
            fails 'checkstyleMain'
    
            then:
            assertFailedWithDtdProcessingError()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

            given:
            goodCode()
            succeeds "checkstyleMain"
            when:
            succeeds "checkstyleMain"
            then:
            skipped(":checkstyleMain")
    
            when:
            file("config/checkstyle/suppressions.xml") << "<!-- This is a change -->"
            and:
            succeeds "checkstyleMain"
            then:
            executedAndNotSkipped(":checkstyleMain")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginToolchainsIntegrationTest.groovy

            when:
            succeeds("checkstyleMain")
    
            then:
            outputContains("Running checkstyle with toolchain '${jdk.javaHome.absolutePath}'.")
        }
    
        def "uses current jdk if not specified otherwise"() {
            given:
            goodCode()
            writeDummyConfig()
            writeBuildFile()
    
            when:
            succeeds("checkstyleMain")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/test/kotlin/com/myorg/JavaConventionPluginTest.kt

                class Foo {
                    void bar() {
                    }
                }
            """)
    
            val result = runTaskWithFailure("build")
    
            assertEquals(TaskOutcome.FAILED, result.task(":checkstyleMain")?.outcome)
            assertTrue(result.output.contains("Checkstyle rule violations were found."))
            assertTrue(result.output.contains("Checkstyle violations by severity: [error:1]"))
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/JavaConventionPluginTest.groovy

                class Foo {
                    void bar() {
                    }
                }
            """
    
            when:
            def result = runTaskWithFailure('build')
    
            then:
            result.task(":checkstyleMain").outcome == TaskOutcome.FAILED
            result.output.contains('Checkstyle rule violations were found.')
            result.output.contains('Checkstyle violations by severity: [error:1]')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/test/groovy/org/gradle/api/plugins/quality/CheckstylePluginTest.groovy

                maxWarnings = 1000
            }
    
            expect:
            hasCustomizedSettings("checkstyleMain", project.sourceSets.main)
            hasCustomizedSettings("checkstyleTest", project.sourceSets.test)
            hasCustomizedSettings("checkstyleOther", project.sourceSets.other)
            that(project.check, dependsOn(hasItem('checkstyleMain')))
            that(project.check, dependsOn(not(hasItems('checkstyleTest', 'checkstyleOther'))))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/mavenMigration/basic/groovy/build.gradle

    checkstyle {
        config = resources.text.fromFile('checkstyle.xml', 'UTF-8')
        showViolations = true
        ignoreFailures = false
    }
    // end::checkstyle[]
    
    // tag::depends-on[]
    test.mustRunAfter checkstyleMain, checkstyleTest
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 940 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/mavenMigration/basic/kotlin/build.gradle.kts

        config = resources.text.fromFile("checkstyle.xml", "UTF-8")
        isShowViolations = true
        isIgnoreFailures = false
    }
    // end::checkstyle[]
    
    // tag::depends-on[]
    tasks {
        test {
            mustRunAfter(checkstyleMain, checkstyleTest)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/JavaConventionPluginTest.groovy

                class Foo {
                    void bar() {
                    }
                }
            """
    
            when:
            def result = runTaskWithFailure('build')
    
            then:
            result.task(":checkstyleMain").outcome == TaskOutcome.FAILED
            result.output.contains('Checkstyle rule violations were found.')
            result.output.contains('Checkstyle violations by severity: [error:1]')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/groovy/buildSrc/src/test/groovy/com/example/JavaConventionPluginTest.groovy

                class Foo {
                    void bar() {
                    }
                }
            """
    
            when:
            def result = runTaskWithFailure('build')
    
            then:
            result.task(":checkstyleMain").outcome == TaskOutcome.FAILED
            result.output.contains('Checkstyle rule violations were found.')
            result.output.contains('Checkstyle violations by severity: [error:1]')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top