Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.03 KB

File metadata and controls

34 lines (22 loc) · 1.03 KB

FLOWX1005 — Flow inherits from another flow

Severity: Error · Category: FlowX · Since: 0.1.0

What it means

Inheritance hides control flow. A reader of the derived flow cannot see which steps run, and neither can the manifest, flowx graph or impact analysis.

Example that triggers it

[Flow("order.place.express")]
public sealed partial class ExpressOrderFlow : PlaceOrderFlow   // inherits a flow

How to fix it

// Extract the shared part into a sub-flow and compose it explicitly:
flow.SubFlow<SharedValidationFlow, ValidationInput>(ctx => ...)
    .Step<ExpressRouting>()

When to suppress

None. If two flows share steps, the shared part is a sub-flow, and saying so keeps it in the graph.

Any suppression must carry a FLOWX-DEBT marker with an owner and an expiry — see 21-Quality-Gates §6. A suppression without one fails the build.


Back to: diagnostics index · Quality gates