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

Fix missing report file issue. #1767

Merged
merged 3 commits into from
Jul 14, 2019
Merged

Fix missing report file issue. #1767

merged 3 commits into from
Jul 14, 2019

Conversation

marschwar
Copy link
Contributor

@marschwar marschwar commented Jul 11, 2019

Closes #1757 and closes #1685

Consolidation may only be triggered for the 'old' detekt task because they are configured to depend on the detekt tasks of all subprojects. For tasks with type resolution such as detektMain this is not the case.

The issue was not detected in the tests because we did not use the kotlin gradle plugin in the integration tests.

Markus Schwarz added 3 commits July 11, 2019 18:23
Consolidation may only be triggered for the 'old' detekt task because
they are configured to depend on the detekt tasks of all subprojects.
For tasks with type resolution such as detektMain this is not the case.
Since the kotlin plugin is very likely to be present in projects using
detekt and since we use it to add tasks for source sets we should
use it in all tests as well.
Add stdlib to test project dependencies as the check task automatically
builds the sources if kotlin plugin is present.
The goal is to write a test case only once and run it with groovy and
kotlin dsl.
@schalkms
Copy link
Member

How does your PR differ from #1763 ?

@marschwar
Copy link
Contributor Author

marschwar commented Jul 12, 2019

The effect is in most cases going to be the same. I could imagine that with #1763 if you run gradle detektMain followed by gradle detekt the xml reports of both runs would be merged. Have not tried it though.

@schalkms schalkms requested a review from arturbosch July 13, 2019 16:34
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.

Thanks for further investigating this!

@arturbosch arturbosch merged commit 0cd1374 into detekt:master Jul 14, 2019
@arturbosch arturbosch added this to the 1.0.0 milestone Jul 14, 2019
@marschwar marschwar deleted the consolidation-fix branch July 14, 2019 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants