Interface CpdTextFileReport

All Superinterfaces:
org.gradle.util.Configurable<org.gradle.api.reporting.Report>, org.gradle.api.reporting.ConfigurableReport, org.gradle.api.reporting.Report, org.gradle.api.reporting.SingleFileReport
All Known Implementing Classes:
CpdTextFileReportImpl

public interface CpdTextFileReport extends org.gradle.api.reporting.SingleFileReport
The single file simple text report for code/paste (= duplication) detection.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.reporting.Report

    org.gradle.api.reporting.Report.OutputType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default line separator
    static final boolean
    Default setting if the leading common whitespace of a source code snipped should be trimmed or not.

    Fields inherited from interface org.gradle.api.reporting.Report

    NAMER
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    void
    setLineSeparator(String lineSeparator)
     
    void
    setTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces)
     

    Methods inherited from interface org.gradle.util.Configurable

    configure

    Methods inherited from interface org.gradle.api.reporting.Report

    getDisplayName, getName, getRequired

    Methods inherited from interface org.gradle.api.reporting.SingleFileReport

    getOutputLocation, getOutputType
  • Field Details

    • DEFAULT_LINE_SEPARATOR

      static final String DEFAULT_LINE_SEPARATOR
      Default line separator
      See Also:
    • DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE

      static final boolean DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE
      Default setting if the leading common whitespace of a source code snipped should be trimmed or not.
      See Also:
  • Method Details

    • getTrimLeadingCommonSourceWhitespaces

      @Input boolean getTrimLeadingCommonSourceWhitespaces()
      Returns:
      if the common leading whitespace of a source code snippet should be trimmed (= true) or not (= false); defaults to DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
    • setTrimLeadingCommonSourceWhitespaces

      void setTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces)
      Parameters:
      trimLeadingCommonSourceWhitespaces - set to true if the leading common whitespaces of a single source code snippet should be trimmed, otherwise false; defaults to DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
    • getLineSeparator

      @Input String getLineSeparator()
      Returns:
      the line separator String used to generate text report; defaults to DEFAULT_LINE_SEPARATOR.
    • setLineSeparator

      void setLineSeparator(String lineSeparator)
      Parameters:
      lineSeparator - to be used when generating the text report; defaults to DEFAULT_LINE_SEPARATOR.