Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for reporters (0.2 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

            }
    
            Optional<CtClass> oldClass = member.oldClass
            Optional<CtClass> newClass = member.newClass
            if (!oldClass.isPresent() || !newClass.isPresent()) {
                // breaking change would be reported
                return null
            }
    
            return checkSuperClassChanges(member, oldClass.get(), newClass.get())
        }
    
        protected abstract boolean changed(JApiCompatibility member)
    
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

         * in order to create a changes {@link File} for further use in this class.
         *
         * @param data the report data containing a description to parse
         * @return accepted api changes reported upon, as a file
         */
        private static File getAcceptedApiChangesFile(RichReportData data) {
            def matcher = data.description =~ acceptedChangesRegex
            return new File(matcher[0][1])
        }
    
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

        private setup() {
            docsRoot = new File(projectDir, "docsRoot")
            new File(docsRoot, 'javadoc').mkdirs()
            sampleDoc = new File(docsRoot, "sample.adoc")
            linkErrors = new File(projectDir, "build/reports/dead-internal-links.txt")
    
    
            new File(projectDir, "build.gradle") << """
                plugins {
                    id 'java'
                    id 'checkstyle'
                    id 'gradlebuild.documentation'
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Nov 28 22:01:54 GMT 2022
    - 7.8K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            where:
            apiElement | jApiTypeName
            'method'   | 'jApiMethod'
            'field'    | 'jApiField'
        }
    
        def "new incubating API does not fail the check but is reported"() {
            given:
            def rule = withContext(new NewIncubatingAPIRule([:]))
    
            when:
            jApiMethod.annotations >> [incubatingAnnotation]
            def violation = rule.maybeViolation(jApiMethod)
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        }
    
        def "#member change should not be reported"() {
            expect:
            noViolation(rule)
    
            where:
            member << [Mock(JApiMethod), Mock(JApiField), Mock(JApiImplementedInterface), Mock(JApiConstructor)]
        }
    
        def "nothing should be reported if no changes"() {
            expect:
            noViolation(rule)
        }
    
        def "nothing should be reported if new interface is neither internal nor incubating"() {
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 4K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

            classes['NewSub'].superclass = classes['NewBase']
    
            apiClass.compatibilityChanges >> [JApiCompatibilityChange.METHOD_REMOVED_IN_SUPERCLASS]
        }
    
        def "method removal can be reported if current class is first public class"() {
            given:
            apiClass.oldClass >> Optional.of(classes['OldBase'])
            apiClass.newClass >> Optional.of(classes['NewBase'])
    
            when:
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingSuperclassChangeRule.groovy

    import me.champeau.gradle.japicmp.report.Violation
    
    /**
     * Workaround for <a href="https://github.com/melix/japicmp-gradle-plugin/issues/56">japicmp issue w.r.t. superclass breakage</a>.
     *
     * <p>
     * Reports simple superclass changes (e.g. the removal of a superclass) as a breaking change, as it affects what methods can be
     * called with the given type, even if the methods and fields inherited don't change.
     * </p>
     */
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 1.8K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

                current = classesContainingMethod.get(i)
                if (!isInternal(current)) {
                    // there's another public super class which contains target method
                    // it would be reported somewhere else
                    return false
                }
            }
    
            // I'm the top public class which contains target method
            return true
        }
    
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top