Moved Report and ReportID to their own sub-package

This commit is contained in:
Erik C. Thauvin 2024-06-22 17:23:46 -07:00
parent be15297cc5
commit 4b101bb183
Signed by: erik
GPG key ID: 776702A6A2DA330E
4 changed files with 12 additions and 10 deletions

View file

@ -617,7 +617,7 @@ public class DetektOperation extends AbstractProcessOperation<DetektOperation> {
* @param reports one or more reports
* @return this operation instance
*/
public DetektOperation report(DetektReport... reports) {
public DetektOperation report(Report... reports) {
report_.addAll(List.of(reports));
return this;
}

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package rife.bld.extension;
package rife.bld.extension.detekt;
/**
* Defines a report for the given report-id to be stored on the given path.
@ -24,5 +24,5 @@ package rife.bld.extension;
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
* @since 1.0
*/
public record DetektReport(DetektReportId id, String path) {
public record Report(ReportId id, String path) {
}

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package rife.bld.extension;
package rife.bld.extension.detekt;
/**
* The report-id values.
@ -22,6 +22,6 @@ package rife.bld.extension;
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
* @since 1.0
*/
public enum DetektReportId {
public enum ReportId {
TXT, XML, HTML, MD, SARIF
}