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

Using plugin rulesets in Android project #545

Closed
anna-yn opened this issue Nov 14, 2017 · 3 comments
Closed

Using plugin rulesets in Android project #545

anna-yn opened this issue Nov 14, 2017 · 3 comments

Comments

@anna-yn
Copy link
Contributor

anna-yn commented Nov 14, 2017

Hi!

I've setup detekt like this in my Android project's project level build.gradle, with gradle 3.0:

detekt {
  version = "1.0.0.RC5-3"
  profile("main") {
    input = "$project.projectDir/app"
    config = "$project.projectDir/app/detekt.yml"
    filters = ".*Test.*;.*Factory.*"
    plugins = "$project.projectDir/app/rulesets.jar"
  }
}

But I get this err:

Error:(66, 0) Cannot set the value of read-only property 'plugins' for root project 'android' of type org.gradle.api.Project.

Is this feature not available in Android projects?

Thank you!

@arturbosch
Copy link
Member

Wow. Your right. The ProfileExtension does not have the plugins parameter which is a shame. This needs to be fixed asap. Thanks for reporting.

@anna-yn
Copy link
Contributor Author

anna-yn commented Nov 14, 2017

Thank you!

@arturbosch arturbosch added this to the RC5-5 milestone Nov 19, 2017
@lock
Copy link

lock bot commented Jun 20, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants