de.aaschmid.gradle.plugins.cpd.internal.CpdCsvFileReportImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-cpd-plugin Show documentation
Show all versions of gradle-cpd-plugin Show documentation
Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD)
The newest version!
package de.aaschmid.gradle.plugins.cpd.internal;
import javax.inject.Inject;
import de.aaschmid.gradle.plugins.cpd.CpdCsvFileReport;
import org.gradle.api.InvalidUserDataException;
import org.gradle.api.Task;
public abstract class CpdCsvFileReportImpl extends CpdReportInternal implements CpdCsvFileReport {
private char separator = CpdCsvFileReport.DEFAULT_SEPARATOR;
private boolean includeLineCount = CpdCsvFileReport.DEFAULT_INCLUDE_LINE_COUNT;
@Inject
public CpdCsvFileReportImpl(String name, Task task) {
super(name, task);
}
@Override
public Character getSeparator() {
return separator;
}
@Override
public void setSeparator(Character separator) {
if (separator == null) {
throw new InvalidUserDataException("CSV report 'separator' must not be null.");
}
this.separator = separator;
}
@Override
public boolean isIncludeLineCount() {
return includeLineCount;
}
@Override
public void setIncludeLineCount(boolean includeLineCount) {
this.includeLineCount = includeLineCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy