Package de.aaschmid.gradle.plugins.cpd
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
FieldsModifier and TypeFieldDescriptionstatic final StringDefault line separatorstatic final booleanDefault 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 TypeMethodDescriptionbooleanvoidsetLineSeparator(String lineSeparator) voidsetTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces) Methods 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
-
Field Details
-
DEFAULT_LINE_SEPARATOR
Default line separator- See Also:
-
DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE
static final boolean DEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACEDefault 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 toDEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
-
setTrimLeadingCommonSourceWhitespaces
void setTrimLeadingCommonSourceWhitespaces(boolean trimLeadingCommonSourceWhitespaces) - Parameters:
trimLeadingCommonSourceWhitespaces- set totrueif the leading common whitespaces of a single source code snippet should be trimmed, otherwisefalse; defaults toDEFAULT_TRIM_LEADING_COMMON_SOURCE_WHITESPACE.
-
getLineSeparator
- Returns:
- the line separator
Stringused to generate text report; defaults toDEFAULT_LINE_SEPARATOR.
-
setLineSeparator
- Parameters:
lineSeparator- to be used when generating the text report; defaults toDEFAULT_LINE_SEPARATOR.
-