New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bugspots

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugspots

Port of ruby gem bugspots

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

bugspots

bugspots is a port of the ruby gem bugspots, which in turn is based on a Google blog post. The gist of it is that files in which commit messages containing fix/close usually signify that the file is prone to having bugs.

install

npm install bugspots

documentation

Bugspots

#scan(opts, callback)

opts is an object containing the following:

{
  repo: <repo>, // this is the location of the repo.
  branch: <branch>, // this is the branch you want to scan.
  depth: <depth>, // not implemented, as it is not implemented in the gem.
  regex: <regex> // regular expression to use to match commits to use.
}

callback pass in a function with the signature (err, hotspots), where hotspots returns an array of hotspot objects containing the filename and the score of the file in sorted order.

license

MIT

author

Shuan Wang (shuanwang@gmail.com)

Keywords

FAQs

Package last updated on 22 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc