-
Notifications
You must be signed in to change notification settings - Fork 391
Allow to check for mis-typed attributes and accidental AST changes #11538
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
base: main
Are you sure you want to change the base?
Conversation
989db8d to
7ccd068
Compare
7ccd068 to
010c7ad
Compare
|
@tarleb There's a conflict here that I think you're better equipped to merge than I am. When that's sorted out, feel free to merge 🚀 |
Setting the `QUARTO_JOG_CHECK` environment variable will run checks to identify element attributes that have the wrong type, and will also find filters that modify the input object, but don't return it. Both of these can cause issues with jog.
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
|
@cscheid would you do another quick review? I moved code around a little and ended up adding two global table functions. |
|
This looks like a good implementation. It would be helpful to have a document with a known-bad filter, which we want to see fail, and a test that verifies that it indeed fails. We don't have "expect-fail" functionality in |
Setting the
QUARTO_JOG_CHECKenvironment variable will run checks to identify element attributes that have the wrong type, and will also find filters that modify the input object, but don't return it. Both of these can cause issues when switching to a different traversal method.