PMD Java source analyzer insights in code insights section
Hi
I was trying to see if it's possible to use pmd and display the error as a highlight like intellij ones .
I found for vs code
https://medium.com/@arindam-karmakar/getting-started-with-apex-pmd-analysis-7401185b5ba6
Also ,there's an unanswered issue on github for this :
https://github.com/amitdev/PMD-Intellij/issues/177
GitHub
Showing PMD results in the code as coloured lines? · Issue #177 · a...
Hi, thank you for your work on embedding PMD with IntelliJ! Is it possible to show the output of PMD (live) in the IDE code with coloured lines? Similar to how other code-issues are visualised: I a...
10 Replies
⌛
This post has been reserved for your question.
Hey @CJ__47! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Which IDE are you using?
And do you want it as an error or as a warning (both would be underlined in most IDEs)
Intellij
Either of error-warning highlight will do,just need a reference docs .
I was thinking like this in intellij too
Are you able to automatically run PMD on save or can you currently only run it manually?
though if the issue is still open, I guess there isn't much you can do
there's also https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003375460-Can-PMD-plugin-highlight-the-issues-in-the-editor but no response there either
As of now,it's like a gradle task which generates html report ,I only found this on vscode/eclipse availability
Does it need to be underlined?
Or is it fine if you e.g. automatically get a warning every time you run the program?
or whenever you save it?
(Note: As I don't use IJ, I might not exactly know how things work but I can still try)
warnings are easier , by adding pmd as a pretask ,adding on ui is indeed the tough part
yeah idk whether that's possible without changing the plugin
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.