feat: add ignore-test-warnings config option to suppress test/doctest warnings#474
Open
declanvk wants to merge 1 commit intoBoshen:mainfrom
Open
feat: add ignore-test-warnings config option to suppress test/doctest warnings#474declanvk wants to merge 1 commit intoBoshen:mainfrom
ignore-test-warnings config option to suppress test/doctest warnings#474declanvk wants to merge 1 commit intoBoshen:mainfrom
Conversation
…st warnings Adds `ignore-test-warnings = true` to `[package.metadata.cargo-shear]` or `[workspace.metadata.cargo-shear]` to opt out of `shear/test_enabled_without_tests` and `shear/doctest_enabled_without_doctests` warnings without having to set `test = false` / `doctest = false` in Cargo.toml. Documents the new option in the README under the Configuration section. Closes Boshen#468 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
Hello, thanks for developing We're using it at my job and ran into the issues mentioned in #468 when one of our developers added some unit tests and then those didn't run. They figured it out pretty quick, but I thought it might be better to try and contribute this config so we could disable the warnings and still keep a clean CI. Thanks again! |
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.
Adds
ignore-test-warnings = trueto[package.metadata.cargo-shear]or
[workspace.metadata.cargo-shear]to opt out ofshear/test_enabled_without_testsandshear/doctest_enabled_without_doctestswarnings without having to settest = false/doctest = falsein Cargo.toml.Documents the new option in the README under the Configuration section.
Closes #468
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com