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

Add support for multiple report formats in one run #288

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

katafrakt
Copy link
Contributor

When you pass --format option to RubyCritic, it should be possible to use that option more than once and have reports in different formats created without having to run whole analysis twice.

My use case is to run in in CI, then extract some data from JSON report and send it to Slack, but also publish the HTML report, so people can examine it in a friendly way.

I'm not sure if tests I wrote are enough, but it was all that came to mind.

Copy link
Collaborator

@nunosilva800 nunosilva800 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me, thanks!
I'll try to fix the CI in the following days and get this and other PRs merged.

@nunosilva800
Copy link
Collaborator

Mentioning #202

@MarcGrimme
Copy link
Contributor

Great work!! 💯
Looks like we did nearly the same work at the same time. Funny!

@MarcGrimme
Copy link
Contributor

Small nit. I'd add the following to the .gitignore

test/samples/lint.txt
test/samples/overview.html   
test/samples/code_index.html
test/samples/smells_index.html
test/samples/test
test/samples/assets

@nunosilva800
Copy link
Collaborator

I agree. @katafrakt Can you please add those lines to gitignore, and rebase with master? Builds should be working now.

Paweł Świątkowski added 2 commits February 26, 2019 09:57
When you pass --format option to rubycritic, it should be possible to
use that option more than once and have reports in different formats
created without having to run whole analysis twice.
@nunosilva800
Copy link
Collaborator

Wonderful!

@nunosilva800 nunosilva800 merged commit 92253ec into whitesmith:master Feb 26, 2019
@katafrakt katafrakt deleted the multiple-report-formats branch February 26, 2019 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants