2017 © Pedro Peláez
 

library bugreport

Get a bug report on a project's dependencies.

image

robertbasic/bugreport

Get a bug report on a project's dependencies.

  • Wednesday, May 24, 2017
  • by robertbasic
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

bugreport

Build Status Coverage Status Latest Stable Version License, (*1)

Get a bug report on a project's dependencies., (*2)

Looks at a GitHub repository and reports on:, (*3)

  • number of open issues,
  • average age of open issues,
  • age of oldest open issue,
  • age of newest open issue,
  • number of open pull requests,
  • average age of open pull requests.

Current version is: 0.1.0, (*4)

This is a PHP 7+ project., (*5)

installation

Install it with composer as a --dev dependency:, (*6)

composer require --dev robertbasic/bugreport:0.1.0

usage

Running:, (*7)

./bin/bugreport

will search for a composer.lock file in the current directory and go through all the dependencies of the project., (*8)

You can also pass a path to the composer.lock file you want to check:, (*9)

./bin/bugreport /path/to/composer.lock

To check for a single dependency, provide a user/repository combination:, (*10)

./bin/bugreport user/repository

Passing in --html as a command line option, will tell bugreport to create an HTML report, instead of a text one., (*11)

configuration

By default bugreport will generate a bugreport.txt file in the current working directory with the entire report. You can configure that by:, (*12)

  • copy bugreport.json.dist to bugreport.json
  • add bugreport.json to .gitignore
  • edit bugreport.json, change the value of bugreport_filename to the path and filename where you want the report to be saved.

github api rate limit

If you run bugreport too much, or against a project with lots of dependencies, the github api rate limit might kick in. In that case, you need to create a GitHub personal access token., (*13)

The ONLY scope bugreport requires is public_repo, nothing else., (*14)

Once you have the token do the following:, (*15)

  • copy bugreport.json.dist to bugreport.json
  • add bugreport.json to .gitignore
  • edit bugreport.json, change the value ofgithub_personal_access_token to your token.

html report

The HTML report looks something like this:, (*16)

HTML bugreport, (*17)

contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us., (*18)

versioning

We use SemVer for versioning. For the versions available, see the tags on this repository., (*19)

changelog

Please read the changelog., (*20)

todo

  • [ ] interactive configuration
  • [x] write report as html
  • [ ] phar for distribution
  • [ ] is the project deprecated?
  • [ ] did the project move?
  • [ ] number of contributors (regular vs. occasional)
  • [ ] age of last release
  • [ ] activity in the last 30 days (opened vs. closed issues/PRs)
  • [ ] get project name from composer.json
  • [ ] level of dependency to check (1st, 2nd, other)

authors

See also the list of contributors who participated in this project., (*21)

license

This project is licensed under the MIT License - see the LICENSE.md file for details., (*22)

The Versions