Skip to content

lint: add W74 to detect 'pin-depends' packages that are not present in 'depends' nor in 'depopts'#6317

Merged
kit-ty-kate merged 1 commit intoocaml:masterfrom
rjbou:lint-pin-depends
Feb 22, 2025
Merged

lint: add W74 to detect 'pin-depends' packages that are not present in 'depends' nor in 'depopts'#6317
kit-ty-kate merged 1 commit intoocaml:masterfrom
rjbou:lint-pin-depends

Conversation

@rjbou
Copy link
Copy Markdown
Collaborator

@rjbou rjbou commented Nov 28, 2024

fix #5795
This lint doesn't detect when the versions mismatch.

@rjbou rjbou added this to the 2.4.0~alpha1 milestone Nov 28, 2024
kit-ty-kate
kit-ty-kate previously approved these changes Nov 28, 2024
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code can be improved by eliminating 3 out of the 6 datatypes traverses.
The gain is small in this particular case but out of principle it feels weird to not do better if the code is as short and maybe even more understandable

@rjbou
Copy link
Copy Markdown
Collaborator Author

rjbou commented Dec 3, 2024

I find the set transformation by pipe more human understandable (you just follow the function name, not read the code of the function given to fold). But agree on the optim part.

@kit-ty-kate
Copy link
Copy Markdown
Member

Thanks!

@kit-ty-kate kit-ty-kate merged commit 7f62f01 into ocaml:master Feb 22, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

should pin-depends imply depends ?

2 participants