Closed hqm42 closed 5 years ago
thank you very much for this change @hqm42! i will take a look through shortly
I replaced the custom direcotry traversal with an existing function from extra
.
So this looks like a good change, but when I try it locally it seems like some of my ignores don't actually get picked up now. Are you able to reproduce this?
Hmm it seems to happen why I try to ignore the filename, rather than a directory name.
For instance, adding "Spec.hs" to this project's toodles.yaml, and observe that a TODO from spec.hs shows up in the results
I split up the isValidFile
function so the ignore list is only used during directory traversal. I will fix this.
Also, thanks for making these changes, we'll get this merged soon! :)
Looks good, thanks again!
this prevents crashed due to file permissions
I had a problem with directories in my repository owned by some uid generated by docker. If we add those paths to the
ignore
list and prevent traversal of the directories we can work around this issue.It is not the prettiest fix (I haven't written any haskell in years) but it works. Feedback and improvements are welcome.