Correct logic for enabling DevKit inspections only in plugin code
authorDmitry Jemerov <yole@jetbrains.com>
Thu, 13 Aug 2020 14:58:21 +0000 (16:58 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 14:59:26 +0000 (14:59 +0000)
commitb0c0dca9eb869766580a55139d3fdf09a6a95296
treefac71c4e1e601bd38669d4d63d106e9ff5bec886
parent8dbe6d72ab7ce15b0aa197fa5d23e33427152dab
Correct logic for enabling DevKit inspections only in plugin code

PsiUtil.isPluginModule() returns true for most platform modules, so the passed predicate was effectively ignored.

GitOrigin-RevId: db93c20539b72cb80a15b50181a55f3e912e1371
plugins/devkit/devkit-core/src/inspections/DevKitInspectionBase.java