Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for Violations (0.21 sec)

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

            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
            failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:"))
            failure.assertHasResolutions(SCAN)
            file("build/reports/pmd/main.xml").assertContents(not(containsClass("org.gradle.Class1")))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. testing/architecture-test/src/test/java/org/gradle/architecture/library/freeze/LineNumberIgnoringViolationStore.java

        }
    
        @Override
        public boolean contains(ArchRule rule) {
            return delegate.contains(rule);
        }
    
        @Override
        public void save(ArchRule rule, List<String> violations) {
            List<String> violationsWithoutLineNumbers = violations.stream()
                .map(it -> it.replaceAll("\\.(java|kt):\\d+", ".$1:0"))
                .collect(toList());
            delegate.save(rule, violationsWithoutLineNumbers);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/jvm/jacoco/src/main/java/org/gradle/internal/jacoco/AntJacocoCheck.java

                    } catch (Exception e) {
                        String violations = getViolations(antBuilder);
                        jacocoCheckResult.setSuccess(false);
                        jacocoCheckResult.setFailureMessage(violations != null ? violations : e.getMessage());
                    }
                }
            });
    
            return jacocoCheckResult;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-provider/src/test/kotlin/org/gradle/internal/declarativedsl/settings/SettingsBlockCheckTest.kt

                pluginManagement { }
                plugins { }
                """.trimIndent()
            )
    
            assertTrue(result.isEmpty())
        }
    
        @Test
        fun `reports all order violations for plugins blocks`() {
            val result = pluginsSchema.runChecks(
                """
                foo()
                bar()
                baz()
                pluginManagement { }
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/tasks/JacocoCoverageVerification.java

            violationRules = instantiator.newInstance(JacocoViolationRulesContainerImpl.class, instantiator);
        }
    
        /**
         * Returns the violation rules set for this task.
         *
         * @return Violation rules container
         */
        @Nested
        public JacocoViolationRulesContainer getViolationRules() {
            return violationRules;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ValidateStepTest.groovy

            def validationContext = new DefaultWorkValidationContext(WorkValidationContext.TypeOriginInspector.NO_OP)
            context.getValidationContext() >> validationContext
        }
    
        def "executes work when there are no violations"() {
            boolean validated = false
            when:
            def result = step.execute(work, context)
    
            then:
            result == delegateResult
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. 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()
    
            expect:
            fails(":pmdMain")
            errorOutput.contains("PMD rule violations were found")
        }
    
        private static breakingDefaultRulesCode() {
            """
                package org.gradle.ruleusing;
    
                public final class Class1 {
    
                    void foo() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. testing/architecture-test/src/test/java/org/gradle/architecture/test/FreezeInstructionsPrintingArchRule.java

            try {
                return delegate.evaluate(classes);
            } catch (RuntimeException e) {
                if (e.getMessage().contains("freeze.store")) {
                    throw new RuntimeException("ArchUnit violations changed, please refreeze and check the differences by running ./gradlew architecture-test:test -ParchunitRefreeze", e);
                } else {
                    throw e;
                }
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. testing/smoke-ide-test/src/smokeIdeTest/groovy/org/gradle/ide/sync/IsolatedProjectsJavaProjectSyncTest.groovy

    
    class IsolatedProjectsJavaProjectSyncTest extends AbstractIdeaSyncTest {
    
        private IsolatedProjectsIdeSyncFixture fixture = new IsolatedProjectsIdeSyncFixture(testDirectory)
    
        def "IDEA sync has known IP violations for vanilla Java project"() {
            given:
            simpleJavaProject()
    
            when:
            ideaSync("2024.1")
    
            then:
            fixture.assertHtmlReportHasProblems {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 14:05:00 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDirectoryPluginIntegrationTest.groovy

     */
    
    package org.gradle.internal.cc.impl
    
    class ConfigurationCacheDirectoryPluginIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        def "directory based plugins are instrumented and violations are reported"() {
            generateExternalPlugin("first", "FirstPlugin", "first.property")
            generateExternalPlugin("second", "SecondPlugin", "second.property")
            buildFile.text = """
                buildscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top