All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backbase.oss.boat.quay.model.BoatLintReport Maven / Gradle / Ivy

There is a newer version: 0.17.37
Show newest version
package com.backbase.oss.boat.quay.model;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class BoatLintReport {

    private String title;
    private String version;

    private String filePath;

    private String openApi;
    private List violations = new ArrayList<>();
    private List availableRules = new ArrayList<>();

    public boolean hasViolations() {
        return !violations.isEmpty();
    }

    public String getFileName() {
        return StringUtils.substringBeforeLast(StringUtils.substringAfterLast(filePath, File.separator), ".");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy