Interface JacocoViolationRule

    • 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​(String element)
        Sets element for the rule.
        Parameters:
        element - Element
      • setIncludes

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

        @Input
        List<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​(List<String> excludes)
        Sets list of elements that should be excluded from check.
        Parameters:
        excludes - Exclusions
      • getExcludes

        @Input
        List<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
        List<JacocoLimit> getLimits()
        Gets all limits defined for this rule. Defaults to an empty list.