-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for knip 3.x #9
Comments
Thanks for reporting, i'll look into it, likely will release a v2 to support this |
There have been some changes to how the generated report is structured so working through those slowly. Should be able to finish it up on Monday :) |
Supported with v2, try it and let me know if you have any issues :) |
hi @codex - thank you! I started using v2 and unfortunately cannot not get annotations to be shown. I am pasting GitHub action log with debugs enabled.
I suspected this is due to level 'failure' selected when it should be 'warning' in 'Begin pushing annotations' : knip-reporter/src/tasks/check.ts Line 54 in 62f7968
with ignoreResults: false This works the other way round as expected, when ignore_results are false, it means we do not want to ignore warnings and show annotations. On the other hand when I switched to ignore_results to true, the annotations were not collected as well.
the same pull request with my forked implementation on knip 2.43.0 collects 15 annotations
Now I am pretty confused, I would be grateful if you had a look on this, perhaps knip v3 with |
@Codex- after a few hours of debugging I found the culprit - project used typescript 4.9 and knip 3.x does not output annotations in json then. Problem was solved after I upgraded dev dependencies. |
That's actually really helpful to know, thanks for tracking that down |
With the latest 3.x version it doesn't run because jsonExt is renamed to json:
https://github.com/graphcommerce-org/graphcommerce/actions/runs/7046140595/job/19177328305#step:5:29
The text was updated successfully, but these errors were encountered: