cover icon indicating copy to clipboard operation
cover copied to clipboard

Extract package module filtering code?

Open jackfirth opened this issue 7 years ago • 2 comments

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 avatar Aug 31 '17 19:08 jackfirth

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...)

florence avatar Aug 31 '17 19:08 florence

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.

jackfirth avatar Aug 31 '17 19:08 jackfirth