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

Allow the user to collapse the rules in the html report #1997

Merged
merged 8 commits into from
Oct 10, 2019
Merged

Allow the user to collapse the rules in the html report #1997

merged 8 commits into from
Oct 10, 2019

Conversation

BraisGabin
Copy link
Member

I was tired of scroll to find a rule while I was working on the snippet feature. This PR kind of fix this.

It allows the user to collapse one rule:

Captura de pantalla 2019-10-06 a las 22 01 42

As a previuos step i refacotred the HtmlOutputReport class to avoid the nesting and simplify the code.

I know that this PR will generate conflicts with #1975 but I'm ok with that. The refactor that I did here will help me in the other.

Copy link
Member

@arturbosch arturbosch left a comment

Choose a reason for hiding this comment

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

Very nice addition, thanks!

@arturbosch arturbosch merged commit fa922e2 into detekt:master Oct 10, 2019
@arturbosch arturbosch added this to the 1.2.0 milestone Oct 10, 2019
@BraisGabin BraisGabin deleted the html-report-collapsable branch October 24, 2019 14:15
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Fix tests

* Use kotlinx.html instead of HtmlSnippet

* Use kotlin forEach

* Split code in different functions

* ruleFindings can't be empty

* Use forEach instead of for

* Add summary tag

* Allow the user to collapse the rules
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Fix tests

* Use kotlinx.html instead of HtmlSnippet

* Use kotlin forEach

* Split code in different functions

* ruleFindings can't be empty

* Use forEach instead of for

* Add summary tag

* Allow the user to collapse the rules
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.

2 participants