Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 9f0b417

Browse files
Run default inspections when parsing DSL.
1 parent e124444 commit 9f0b417

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/structurizr/cli/AbstractCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.structurizr.Workspace;
44
import com.structurizr.dsl.Features;
55
import com.structurizr.dsl.StructurizrDslParser;
6+
import com.structurizr.inspection.DefaultInspector;
67
import com.structurizr.util.WorkspaceUtils;
78
import com.structurizr.validation.WorkspaceScopeValidatorFactory;
89
import com.structurizr.view.Styles;
@@ -104,6 +105,9 @@ protected Workspace loadWorkspace(String workspacePathAsString) throws Exception
104105
// validate workspace scope
105106
WorkspaceScopeValidatorFactory.getValidator(workspace).validate(workspace);
106107

108+
// run default inspections
109+
new DefaultInspector(workspace);
110+
107111
return workspace;
108112
}
109113

0 commit comments

Comments
 (0)