I have a Kotlin JVM project configured with Gradle, that I want TeamCity to run IntelliJ inspections on. The inspection step succeds, but does not find/analyze any Kotlin source files (other files, such as resources in src/main/resources are detected and analyzed). I have verified through the IDE that there should be warnings.
The step is configured with the "Inspections (IntelliJ IDEA)" runner, as a Gradle project referencing the build.gradle file. The .idea/inspectionProfiles directory is committed to VCS, and the profile is detected by TeamCity under the Inspection Profile Name setting.
If I launch IDEA inspections from the command line or through the IDE directly, with the same profiles, it has no problem finding and analyzing the Kotlin files - the problem seems to be limited to TeamCity.
Things I've tried without luck:
- Committing the misc.xml and compiler.xml files to VCS
- Explicitly including +:src/main/kotlin in the runner's Include/Exclude Patterns section
- Changing the Inspection Profile to explicitly include all Kotlin inspections
- Tried with various IntelliJ Inspections and Duplicates Engines
Does anyone have any advice on how I get this correctly set up, or other things I could try?
Running TeamCity 2018.2.4 (build 61678) via Docker