Interface JacocoViolationRule

  • All Superinterfaces:
    java.io.Serializable

    public interface JacocoViolationRule
    extends java.io.Serializable
    Defines a Jacoco violation rule.
    Since:
    3.4
    • Method Detail

      • setEnabled

        void setEnabled​(boolean enabled)
      • isEnabled

        @Input
        boolean isEnabled()
        Indicates if the rule should be used when checking generated coverage metrics. Defaults to true.
      • setElement

        void setElement​(java.lang.String element)
        Sets element for the rule.
        Parameters:
        element - Element
      • setIncludes

        void setIncludes​(java.util.List<java.lang.String> includes)
        Sets list of elements that should be included in check.
        Parameters:
        includes - Inclusions
      • getIncludes

        @Input
        java.util.List<java.lang.String> getIncludes()
        List of elements that should be included in check. Names can use wildcards (* and ?). If left empty, all elements will be included. Defaults to [*].
      • setExcludes

        void setExcludes​(java.util.List<java.lang.String> excludes)
        Sets list of elements that should be excluded from check.
        Parameters:
        excludes - Exclusions
      • getExcludes

        @Input
        java.util.List<java.lang.String> getExcludes()
        List of elements that should be excluded from check. Names can use wildcards (* and ?). If left empty, no elements will be excluded. Defaults to an empty list.
      • getLimits

        @Input
        java.util.List<JacocoLimit> getLimits()
        Gets all limits defined for this rule. Defaults to an empty list.