Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 288 for Violations (0.48 sec)

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

            // Good code produces no violations
            body.select(".filelist").size() == 0
            def violations = body.selectFirst(".violations")
            violations.selectFirst("p").text() == "No violations were found."
            violations.select(".file-violation").size() == 0
        }
    
        def "generates HTML report with bad code"() {
            badCode()
            when:
            fails("checkstyleMain")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/main/resources/checkstyle-noframes-sorted.xsl

    Checkstyle Violations body { background-color: #fff; color: #02303A; } a { color: #1DA2BD; } a.link { color: #02303A; } p { font-size: 1rem; } h1 a[name] { margin: 0; padding: 0; } tr:nth-child(even) { background: white; } th { font-weight:bold; } tr { background: #efefef; } table th, td, tr { font-size:100%; border: none; text-align: left; vertical-align: top; } Checkstyle Results Summary Total files checked Total violations Files with violations Violations File Total violations No violations...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 17 13:41:41 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. api/api-rules/README.md

    # Existing API Rule Violations
    
    This folder contains the checked-in report file of known API rule violations.
    The file violation\_exceptions.list is used by Make rule during OpenAPI spec generation to make
    sure that no new API rule violation is introduced into our code base.
    
    ## API Rule Violation Format
    
    The report file [violation\_exceptions.list](./violation_exceptions.list) is in format of:
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 04 15:50:30 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginVersionIntegrationTest.groovy

            failure.assertThatCause(both(startsWith("CodeNarc rule violations were found. See the report at:")).and(endsWith("xml")))
        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':codenarcTest'.")
            failure.assertThatCause(startsWith("CodeNarc rule violations were found. See the report at:"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/JavaConventionPluginTest.groovy

            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]')
        }
    
        def "fails on checkstyle warning"() {
            given:
            new File(testProjectDir, 'src/main/java/com/myorg').mkdirs()
    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/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/groovy/buildSrc/src/test/groovy/com/example/JavaConventionPluginTest.groovy

            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]')
        }
    
        def "fails on checkstyle warning"() {
            given:
            new File(testProjectDir, 'src/main/java/com/example').mkdirs()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. cmd/dependencycheck/dependencycheck.go

    			}
    		}
    		if len(importViolations) > 0 {
    			violations[p.ImportPath] = importViolations
    		}
    	}
    
    	if len(violations) > 0 {
    		for k, v := range violations {
    			fmt.Printf("Found dependency violations in package %s:\n", k)
    			for _, a := range v {
    				fmt.Println("--> " + a)
    			}
    		}
    		log.Fatal("Found restricted dependency violations in packages")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/test/kotlin/com/myorg/JavaConventionPluginTest.kt

            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
        fun `fails on checkstyle warning`() {
            testProjectDir.newFolder("src", "main", "java", "com", "myorg")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/test/kotlin/com/example/JavaConventionPluginTest.kt

            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
        fun `fails on checkstyle warning`() {
            testProjectDir.newFolder("src", "main", "java", "com", "example")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

            expect:
            succeeds("check")
            // Issue #881:
            // Checkstyle violations are reported even when build passing with ignoreFailures
            output.contains("Checkstyle rule violations were found. See the report at:")
            output.contains("Checkstyle files with violations: 2")
            output.contains("Checkstyle violations by severity: [error:2]")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
Back to top