Class CpdTextFileReportImpl
java.lang.Object
de.aaschmid.gradle.plugins.cpd.internal.CpdReportInternal
de.aaschmid.gradle.plugins.cpd.internal.CpdTextFileReportImpl
- All Implemented Interfaces:
CpdTextFileReport,org.gradle.api.reporting.ConfigurableReport,org.gradle.api.reporting.Report,org.gradle.api.reporting.SingleFileReport,org.gradle.util.Configurable<org.gradle.api.reporting.Report>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.reporting.Report
org.gradle.api.reporting.Report.OutputType -
Field Summary
Fields inherited from interface de.aaschmid.gradle.plugins.cpd.CpdTextFileReport
DEFAULT_LINE_SEPARATOR, DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACEFields inherited from interface org.gradle.api.reporting.Report
NAMER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetLineSeparator(String lineSeparator) voidsetTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces) Methods inherited from class de.aaschmid.gradle.plugins.cpd.internal.CpdReportInternal
configure, getDisplayName, getName, getOutputType, getProjectLayoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.util.Configurable
configureMethods inherited from interface org.gradle.api.reporting.Report
getDisplayName, getName, getRequiredMethods inherited from interface org.gradle.api.reporting.SingleFileReport
getOutputLocation, getOutputType
-
Constructor Details
-
CpdTextFileReportImpl
-
-
Method Details
-
getTrimLeadingCommonSourceWhitespaces
public boolean getTrimLeadingCommonSourceWhitespaces()- Specified by:
getTrimLeadingCommonSourceWhitespacesin interfaceCpdTextFileReport- Returns:
- if the common leading whitespace of a source code snippet should be trimmed (=
true) or not (=false); defaults toCpdTextFileReport.DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
-
setTrimLeadingCommonSourceWhitespaces
public void setTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces) - Specified by:
setTrimLeadingCommonSourceWhitespacesin interfaceCpdTextFileReport- Parameters:
trimLeadingCommonSourceWhitespaces- set totrueif the leading common whitespaces of a single source code snippet should be trimmed, otherwisefalse; defaults toCpdTextFileReport.DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
-
getLineSeparator
- Specified by:
getLineSeparatorin interfaceCpdTextFileReport- Returns:
- the line separator
Stringused to generate text report; defaults toCpdTextFileReport.DEFAULT_LINE_SEPARATOR.
-
setLineSeparator
- Specified by:
setLineSeparatorin interfaceCpdTextFileReport- Parameters:
lineSeparator- to be used when generating the text report; defaults toCpdTextFileReport.DEFAULT_LINE_SEPARATOR.
-