How to emit errors or warnings from my Tuist config

Is there any way to emit errors or warnings from my Tuist project description? I’d like to add some additional validation.

Specifically, I want to add an optional list of disallowed transitive dependencies to each of my targets, then check that list against the actual list of transitive dependencies. I have something working that calls fatalError, but the output isn’t pretty. It would be great to just emit an error and have Tuist nicely report it.

1 Like

Hey @hiltonc :wave:

No, there’s no way to emit warnings from running project manifests and we generally don’t recommend putting any business logic like that there.

You can build extra automation using the tuist graph output instead. You can see an example of a customer linter using the XcodeGraph library here. You can then run such a script as part of your CI workflow.

1 Like

Ah, that makes sense. Thank you!