feat: Write suppressions to default file#19
Merged
Conversation
--write-suppressions becomes an optional-value flag with three modes:
bare writes .dbt-lint-suppressions.yml next to your config (or in cwd
if none); =PATH writes to that path; =- writes to stdout.
File writes overwrite without prompt and emit a confirmation to
stderr ("Wrote N suppressions to <path>"). Stdout mode is unchanged.
Use =, not a space, since the flag takes an optional value.
Earlier copy said "Use =, not a space" as a flat rule. The actual constraint is narrower: the bare form must be placed last on the command line so Click doesn't consume the manifest path as the option's value. The =PATH and =- forms can appear in any position, including with a space separator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--write-suppressions(bare) writes.dbt-lint-suppressions.ymlnext to your config, or in cwd if no config is discovered.--write-suppressions=PATHwrites to an explicit path;--write-suppressions=-writes to stdout (unchanged from prior behavior).Wrote N suppressions to <path>to stderr; the=form is required when the option precedes the manifest positional.