JetBrains / inspection-plugin

Gradle plugin to launch IDEA inspections
Apache License 2.0
256 stars 27 forks source link

MPP Example #24

Open benasher44 opened 4 years ago

benasher44 commented 4 years ago

Hi! I'm trying to get this plugin working with a mpp project. Here are the additions I've made to my gradle configuration to try to get this setup:

buildscript {
    repositories {
        maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
    }
    dependencies {
        classpath "org.jetbrains.intellij.plugins:inspection-plugin:0.3.2"
    }
}

apply plugin: 'org.jetbrains.intellij.inspections'

inspections {
    inheritFromIdea = true
    idea.version 'ideaIC:2019.1.4'
    plugins.kotlin.version '1.3.50'
}

With this configuration, I'm not seeing any of the sourceSet-specific inspection or check tasks show up. I'm not sure what I'm doing wrong. A sample mpp project that uses this plugin would be helpful. Thanks!

benasher44 commented 4 years ago

Here is a sample project where I've gone through the basic integration steps, and I'm not seeing any inspection*-type tasks that I can use to run inspections. Thanks!

inspectionsmpp.zip