Giter VIP home page Giter VIP logo

Comments (6)

kylefarris avatar kylefarris commented on May 23, 2024

Thanks for the bug report Nicolas! I see you've put in a PR. I'll review it and merge it in if I can.

from clamscan.

kylefarris avatar kylefarris commented on May 23, 2024

I apologize for the state that section of the code is in. It looks like the first bug was caused by the dreaded "this" vs "self" annoyance. Your PR addresses that, so that's good. But, you're right... the rest of the code in that block just doesn't make any sense the way I had it. Looks like I copied it from scan_dir and never got around to making it right for scan_files. It's rather embarrassing, actually.

Once I get your code merged in, I think it's time I wrote some tests for the module.

from clamscan.

nicolaspeixoto avatar nicolaspeixoto commented on May 23, 2024

Yes Kyle, but no problem about it.

I would help you writing some tests if you want.

from clamscan.

kylefarris avatar kylefarris commented on May 23, 2024

Thanks Nicolas. I'm writing some tests right now. I'll push them out to github once they're done and you can add any that you'd like to make it more comprehensive--up to you. I'll be using chai and mocha. After I have the tests up, I will publish the updated module to NPM and close this Issue.

from clamscan.

kylefarris avatar kylefarris commented on May 23, 2024

Thanks for the pull request Nicolas! I've merged it in, written tests, and published a new version (0.7.0) to NPM. See the History file for details.

from clamscan.

kylefarris avatar kylefarris commented on May 23, 2024

Just realized the modifications I made to the script now REQUIRE Node > 0.12. I'm in the process of fixing that now. The version and package file has been bumped to 0.7.1 to reflect the requirement of 0.12.

Sorry about that!

from clamscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.