-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
yamllinter: raise if actual patch files are not coherent with conandata.yml #14912
Conversation
…ta.yml It can happen if: -conadata.yml patches section reference some files which do not exist - or if some patches exist in patches subfolder, but not in conandata.yml
New detections:
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still alive, back off ! |
This comment was marked as resolved.
This comment was marked as resolved.
Because this inspect the contents of the recipe is more appropriate for the hooks https://github.com/conan-io/hooks/blob/2e7cac85494fd4ec5134aae5af504ed35174c0d7/hooks/conan-center.py#L465 Linters should focused on specific files and syntax correctness but the structure or files are the hooks. That being said it's unclear how these will evolve so I am not sure if this should be put on hold. EDIT: I put this on our weekly discussion list |
ok. I tend to go to linters by default, because the way errors show-up in github is way more convenient and efficient than hooks errors and (even worse) hooks warning. That said we could start using a fixed format reporting errors and warnings in hooks, add a github workflow which exports the recipes, and code a problem-matcher. Then hooks error would show-up on github UI too.
I had no idea about this "1 file" inspection rule. genuine question: what makes the number of files inspected relevant in choosing to implement a check as a hook as opposed to a linter ? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still alive, you bot |
It can happen if: