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.
@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
schalkms
01/24/2019, 11:24 AM
@Mike
You are right, it doesn't allow to analyze just one file.
👍 1
schalkms
01/24/2019, 11:25 AM
However, one could pass the path of the current file to detekt and create the UI in an IntelliJ plugin for this command.