Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: It would be interesting to see the output in machine-readable format (JSON) #12

Closed
etagwerker opened this issue Oct 14, 2020 · 1 comment

Comments

@etagwerker
Copy link
Member

etagwerker commented Oct 14, 2020

Hi there and thanks for maintaining this project! 😄

I'm working on a project that could use this feature:

rake stats --format=json

  [{
  	"name": "Mailers",
  	"lines": "4",
  	"loc": "4",
  	"classes": "1",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Models",
  	"lines": "3",
  	"loc": "3",
  	"classes": "1",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Javascripts",
  	"lines": "27",
  	"loc": "7",
  	"classes": "0",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Jobs",
  	"lines": "7",
  	"loc": "2",
  	"classes": "1",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Controllers",
  	"lines": "3",
  	"loc": "3",
  	"classes": "1",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Helpers",
  	"lines": "3",
  	"loc": "3",
  	"classes": "0",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Channels",
  	"lines": "8",
  	"loc": "8",
  	"classes": "2",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Configuration",
  	"lines": "417",
  	"loc": "111",
  	"classes": "1",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0"
  }, {
  	"name": "Total",
  	"lines": "472",
  	"loc": "141",
  	"classes": "7",
  	"methods": "0",
  	"m_over_c": "0",
  	"loc_over_m": "0",
  	"code_to_test_ratio": "0.0",
  	"total": true
  }]

I could submit a PR to get this started. 😄

@etagwerker etagwerker changed the title Feature: It would be interesting to see the output in machine-readable format (JKS Feature: It would be interesting to see the output in machine-readable format (JSON) Oct 14, 2020
@etagwerker etagwerker linked a pull request Oct 17, 2020 that will close this issue
@bronzdoc
Copy link
Contributor

Closed by #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants