Skip to content
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

Extract package module filtering code? #139

Open
jackfirth opened this issue Aug 31, 2017 · 2 comments
Open

Extract package module filtering code? #139

jackfirth opened this issue Aug 31, 2017 · 2 comments

Comments

@jackfirth
Copy link

I'm working on a project that needs to do something similar to cover, where it finds lists of modules given packages or collections and filters the list based on info.rkt settings. Would it be worthwhile to try and extract cover's implementation of this logic into a package I could reuse?

@jackfirth jackfirth changed the title Extract package modules code? Extract package module filtering code? Aug 31, 2017
@florence
Copy link
Owner

Are you refering to https://github.com/florence/cover/blob/master/cover/raco.rkt#L326 or to the horrible mess of https://github.com/florence/cover/blob/master/cover/raco.rkt#L200?

I think the answer is yes to both, but more so for the second one. I know raco test needs to implement something similar (Some bits of this code were cargo-culted from raco test at some point, but I can't remember which is and which isn't anymore...)

@jackfirth
Copy link
Author

The horrible mess :)

There's also the syntax-sloc package which has a raco sloc command that could use this, see AlexKnauth/syntax-sloc#8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants