-
Notifications
You must be signed in to change notification settings - Fork 0
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
Discussion: Syntax for controlling mixing of linter sources #1
Comments
Yeah special constructor also works well I guess. |
A couple thoughts inspired by the
|
Thanks @dgkf yeah that looks nice! Yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is one of the more complex behaviors of the package. I'll start with background. There are a number of ways that linters can be added:
roxylint
provides its own default linters (that follow the tidyverse style guide for documentation).roxytypes
) can register linters as well. They'll be registered when they load or whenroxytypes
loads (if it wasn't already loaded)So, given a tag (let's say
@param
), there might be some default value, some additional linters provided by other packages, and some user-defined linters.With this, a user should be able to specify whether they want to add to or overwrite existing linters, and assert that new linters should or shouldn't be allowed on top of the ones they've defined.
For now, providing a linter always overwrites existing linters and
NULL
is used as a sentinel value that says "do not allow more linters for this tag".However, this isn't very pretty, is a bit unintuitive, and does not provide the ability to add to existing linters. Instead, we might imagine a special constructor:
The text was updated successfully, but these errors were encountered: