Anyone knows whether there’s an IntelliJ plugin fo...
# detekt
t
Anyone knows whether there’s an IntelliJ plugin for detekt which can run check on a specific Kotlin file from the IDE? For example, right click on the file > run detekt. Then we got a report which is only for that file.
s
Have you tried the IntelliJ detekt plugin?
m
@thuytrinh I would recommend also recommend the plugin, although it doesn’t do exactly what you’re looking for. It hooks into IntelliJ’s analysis phase, and highlights issues on-the-fly. Similar to other analysis the IDE does.
👍 1
s
@Mike You are right, it doesn't allow to analyze just one file.
👍 1
However, one could pass the path of the current file to detekt and create the UI in an IntelliJ plugin for this command.
👍 1