New global config: --warn-error-options
#2687
Labels
content
Improvements or additions to content
dbt-core v1.4
Docs impact for the v1.4 release (Jan 2023)
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/reference/global-configs#warnings-as-errors
What part(s) of the page would you like to see updated?
The
warn_error
config (--warn-error
flag,DBT_WARN_ERROR
env var) will remain a simple boolean: treat all warnings as errors, or none.Users can choose the more granular
warn_error_options
config (--warn-error-options
,DBT_WARN_ERROR_OPTIONS
env var) to specify a subset of warnings to treat as errors, via aninclude
/exclude
syntax that we're likely to reuse elsewhere.The names of warnings are determined based on the names of
WarnLevel
events here: https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/events/types.pyThis is a configuration intended for intermediate/advanced users. Specific use cases we've seen requested in past: dbt-labs/dbt-core#4383, dbt-labs/dbt-core#6080
Additional information
dbt-labs/dbt-core#6165
dbt-labs/dbt-core#6520
The text was updated successfully, but these errors were encountered: