-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promote certain failures to fail the build (was "Fail build when using Unreferenced shapes") #856
Comments
I could see this as fitting nicely as a smithy-build.json configuration setting. Putting it in model metadata alongside
Not sure if "elevate" is the right word. The use of an object rather than just a list of strings allows us to add more features too (like if we want to limit the elevation to specific namespaces or to specific selectors). Edit: I like "severityOverrides" for this now, and if we require a namespace predicate, then it can live in metadata without issue. |
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes #856
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes #856
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes #856
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes #856
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes smithy-lang#856
severityOverride cannot set an event to SUPPRESSED. Use suppressions for that. It cannot lower the severity of an event, only elevate. This prevents a backdoor for disabling built-in validation or ignoring ERROR events. Closes smithy-lang#856
HI all,
Is it possible to fail the build when discovering Unreferenced shape in the model?
For example, instead of receiving this note in the build logs, I would have it as
Error
and fail the whole build.I personally sometimes miss those notes from the build logs. Then I waste time on finding the root cause for the errors in the service, only to find out that I forgot to reference the shape properly. If I had an option to enable this flag and fail my builds, it would save me some time during implementation.
The text was updated successfully, but these errors were encountered: