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

Remove duplicate configurations for reports. #1267

Merged
merged 1 commit into from
Oct 20, 2018
Merged

Remove duplicate configurations for reports. #1267

merged 1 commit into from
Oct 20, 2018

Conversation

marschwar
Copy link
Contributor

Right before #1194 was merged @JLLeitschuh commented that the functions that let the user configure reports can be expressed by a single function using an Action.

This replaces the 2 functions to configure reports
fun reports(closure: Closure<*>): DetektReports = ConfigureUtil.configure(closure, reports)
fun reports(configure: DetektReports.() -> Unit) = reports.configure()
with one single function (thank you @JLLeitschuh for the hint) that works for both groovy and kotlin dsl.
@JLLeitschuh
Copy link
Contributor

I commented a bunch of other things too but this was a big one. Hahah. I'm glad you caught that feedback.
Nice job @marschwar!

@arturbosch arturbosch merged commit ce05854 into detekt:master Oct 20, 2018
@marschwar marschwar deleted the remove-overload branch October 22, 2018 19:59
@arturbosch arturbosch added this to the RC10 milestone Nov 2, 2018
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