Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for checkstyleMain (0.25 sec)

  1. platforms/documentation/docs/src/samples/incubating/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)
  2. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/test/kotlin/com/example/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)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginIntegrationTest.groovy

            file('config/checkstyle/checkstyle.xml') << simpleCheckStyleConfig()
    
            when:
            succeeds 'check'
    
            then:
            executedAndNotSkipped ':checkstyleMain'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/core-plugins/checkstyle_plugin.adoc

    Note that Checkstyle will run with the same Java version used to run Gradle.
    
    [[sec:checkstyle_tasks]]
    == Tasks
    
    The Checkstyle plugin adds the following tasks to the project:
    
    `checkstyleMain` — link:{groovyDslPath}/org.gradle.api.plugins.quality.Checkstyle.html[Checkstyle]::
    _Depends on_: `classes`
    +
    Runs Checkstyle against the production Java source files.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 16:44:32 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginHtmlReportIntegrationTest.groovy

                        return "bar";
                    }
                }
            """
        }
    
        def "generates HTML report with good code"() {
            goodCode()
            when:
            succeeds("checkstyleMain")
            then:
            def html = parseReport()
            def head = html.selectFirst("head")
            // Title of report is Checkstyle Violations
            head.select("title").text() == "Checkstyle Violations"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginClasspathIntegrationTest.groovy

        def setup() {
            writeBuildFiles()
            writeConfigFile()
            goodCode()
        }
    
        def "accepts throwing exception from other project"() {
            expect:
            succeeds("checkstyleMain")
        }
    
        private void writeBuildFiles() {
            file("settings.gradle") << """
    include "api"
    include "client"
            """
    
            file("build.gradle") << """
    subprojects {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. platforms/software/reporting/src/main/java/org/gradle/api/reporting/GenerateBuildDashboard.java

        }
    
        /**
         * Configures which reports are to be aggregated in the build dashboard report generated by this task.
         *
         * <pre>
         * buildDashboard {
         *   aggregate codenarcMain, checkstyleMain
         * }
         * </pre>
         *
         * @param reportings an array of {@link Reporting} instances that are to be aggregated
         */
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:30:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginMultiProjectTest.groovy

            file('src/main/java/Dummy.java') << javaClassWithNewLineAtEnd()
            file('config/checkstyle/checkstyle.xml') << simpleCheckStyleConfig()
    
            expect:
            succeeds('checkstyleMain')
            checkStyleReportFile(testDirectory).assertExists()
        }
    
        def "fails when root project does contain config in default location"() {
            given:
            settingsFile << "include 'child'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 13:39:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/configuration/ExecuteDomainObjectCollectionCallbackBuildOperationTypeIntegrationTest.groovy

            "matching{true}.all" | 'test reports'            | ['java-library']               | 'test.reports'                           | ''
            "matching{true}.all" | 'checkstyle reports'      | ['java-library', 'checkstyle'] | 'checkstyleMain.reports'                 | ''
            "matching{true}.all" | 'pmd reports'             | ['java-library', 'pmd']        | 'pmdMain.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)
Back to top