Skip to content

Cannot override cli inspection severity for inspection not model related #166

@geemorin

Description

@geemorin

Expected

For example: if I set

workspace {
  model {
    properties {
      structurizr.inspection.views.* warning
      structurizr.inspection.workspace.* warning
    }
  }
}

I expect to see there errors as warnings, not as ERRORS

Actual

ERROR  | workspace.scope               | This workspace has no defined scope. It is recommended that the workspace scope is set to "Landscape" or "SoftwareSystem".
ERROR  | views.view.key                | The view with key "SystemLandscape-001" has an automatically generated view key and this is not guaranteed to be stable over time.
ERROR  | views.styles.element.metadata | The element style for tag "sf-start" has metadata hidden, which may introduce ambiguity on rendered diagrams.
ERROR  | views.styles.element.metadata | The element style for tag "sf-end" has metadata hidden, which may introduce ambiguity on rendered diagrams.

Steps to reproduce

Create a basic workspace with the properties above. Run the docker cli inspection with

inspect -w <workspace.dsl> -severity error

Version/build information

docker pull structurizr/cli:2024.12.07

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions