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

Custom reports in gradle plugin #1598

Merged
merged 4 commits into from
Apr 27, 2019
Merged

Custom reports in gradle plugin #1598

merged 4 commits into from
Apr 27, 2019

Conversation

marschwar
Copy link
Contributor

Replacement of #1596. Closes #1583

This allows users to use their custom reports with the gradle plugin.

detekt {
    reports {
        custom {
            reportId = "CustomJsonReport"
            destination = file("build/reports/detekt.json")
        }
    }
}

@RiccardoM
Copy link

Great job! Thanks for the time you've put into this! I really appreciate it! Hope that @arturbosch approves this 😁

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.

Looks awesome, thanks!

@arturbosch arturbosch added this to the RC15 milestone Apr 27, 2019
@arturbosch arturbosch merged commit a0df2b7 into detekt:master Apr 27, 2019
@neugaojin
Copy link

but in my project, there is nothing output when i use custom report, hope give me some advices

@arturbosch
Copy link
Member

You have implemented a custom OutputReport or ConsoleReport?
What were your steps integrating a custom report?
Sorry we need more details to help you. Please consider opening a new issue for this.

@marschwar marschwar deleted the custom-report-gradle branch June 15, 2019 20:39
@neugaojin
Copy link

You have implemented a custom OutputReport or ConsoleReport?
What were your steps integrating a custom report?
Sorry we need more details to help you. Please consider opening a new issue for this.

sorry, It was careless of me
I hava implemented OutputReport, and declare it with Java SPI, it's work fine
but i have to add code:
detekt 'io.gitlab.arturbosch.detekt:detekt-cli:1.0.0-RC15'
I found Similar problem with this issue: #1143
is it right?

@arturbosch
Copy link
Member

Yes I think you are getting the same problem. Try using detektPlugins which is meant to be extended by plugins.

@neugaojin
Copy link

ok,it's work fine! thank you!

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.

Using custom output inside Gradle plugin
4 participants