Repository navigation
deprecate with_defaults -> linters_with_defaults - #1117
Conversation
- rename the core function to modify_defaults - add deprecation test for with_defaults() - update documentation to refer to linters_with_defaults() instead of with_defaults() where appropriate.
* add use_lintr() * document `type` * add tests, fix minor issues * normalize both paths in test * add more comments to DCF file * test type = "full" as well * reference use_lintr() in vignette and fix broken code * avoid \" * incorporate feedback * document() * reference vignette * split expect_silent() tests and prevent unintentional line breaks Co-authored-by: Michael Chirico <[email protected]>
| old_defaults <- with_defaults(), | ||
| rex::rex("Use linters_with_defaults instead.") | ||
| ) | ||
| expect_equal(defaults, old_defaults) |
There was a problem hiding this comment.
These are currently identical, but not e.g. if using linters_with_tags("default") as a reference, because this constructs new functions with their own environments.
That's why I decided to only test equality.
|
I wonder if |
|
To be fair, the argument is usually not needed, and it would read We could pluralize the argument for better consistency across the two? |
|
I think that's indeed a little better. Let's go with that for now. I am worried I'm overthinking this. |
# Conflicts: # DESCRIPTION # NAMESPACE
Fixes #1029