Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Refactor Gradle extensions to use lazy configuration #36

Merged
merged 6 commits into from
Jan 5, 2021

Conversation

3flex
Copy link
Member

@3flex 3flex commented Jan 2, 2021

Two main changes here:

  1. Change all currently implemented extension properties to use Gradle's lazy configuration API
  2. Add properties to the detekt task extension so individual Kotlin compilation tasks can have their own configuration. This makes filtering out files and having different configs for production vs test files possible.

I also refactored some of the existing code to make things more consistent throughout.

The README needs an update now which I'm going to do in a separate PR.

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 really good!

@3flex 3flex merged commit c4537e9 into detekt:master Jan 5, 2021
@3flex 3flex deleted the lazy branch January 5, 2021 23:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants