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

com.structurizr.inspection.view.EmptyViewsInspection Maven / Gradle / Ivy

The newest version!
package com.structurizr.inspection.view;

import com.structurizr.Workspace;
import com.structurizr.inspection.Inspector;
import com.structurizr.inspection.Violation;

public class EmptyViewsInspection extends AbstractViewsInspection {

    public EmptyViewsInspection(Inspector inspector) {
        super(inspector);
    }

    @Override
    protected Violation inspect(Workspace workspace) {
        if (workspace.getViews().isEmpty()) {
            return violation("This workspace has no views.");
        }

        return noViolation();
    }

    @Override
    protected String getType() {
        return "views.empty";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy