chore: further suggestions for workflow lint

This commit is contained in:
Gregor Kleen 2020-12-06 20:42:05 +01:00
parent 8c3b334045
commit 403dc37f9a

View File

@ -44,11 +44,11 @@ instance Exception WorkflowGraphLinterIssue where
lintWorkflowGraph :: forall fileid userid. WorkflowGraph fileid userid -> Maybe (NonNull (Set WorkflowGraphLinterIssue)) lintWorkflowGraph :: forall fileid userid. WorkflowGraph fileid userid -> Maybe (NonNull (Set WorkflowGraphLinterIssue))
lintWorkflowGraph graph = fromNullable . Set.fromList $ concatMap ($ graph) lintWorkflowGraph graph = fromNullable . Set.fromList $ concatMap ($ graph)
[ checkEdgesForUnknownGraphNodeLabel [ checkEdgesForUnknownGraphNodeLabel
, checkFormPayloadVisibleInTargetNode , checkFormPayloadVisibleInTargetNode -- TODO: Satisfiability of automatic edges?
, finalMatchesOutgoingEdges , finalMatchesOutgoingEdges
, checkUndefinedFieldOrder , checkUndefinedFieldOrder
, checkNodeUnreachable , checkNodeUnreachable -- TODO: Satisfiability of automatic edges
, checkNodeUnfinalizable , checkNodeUnfinalizable -- TODO: Satisfiability of automatic edges
-- Future ideas: -- Future ideas:
-- - WorkflowRolePayloadReference for unknown payload -- - WorkflowRolePayloadReference for unknown payload
-- - wgePayloadRestriction for unknown payload -- - wgePayloadRestriction for unknown payload