Categories


Authors:
bodhi
BSD

PMDPlugin

Products: IntelliJ IDEA

Vendor: bodhi

Email: N/A

Website: N/A

SourceCode: https://github.com/amitdev/PMD-Intellij

Bugtracker page

Forum page

Description:

A plugin to run static analysis using PMD in intelliJ.
Downloads: 47052
Rating:
Participated in rating: 11
Version Since Build Until Build File/URL Size (Kb) Date Details
1.7. 133.696. . Download 3883.64 2014-11-12 16:30:23 details
1.5.0. 107.322. . Download 1084.09 2011-08-04 20:40:03 details
1.4.8. 93.13. . Download 1278.23 2010-01-21 19:57:05 details
1.4.7. 75.7941. . Download 1084.13 2009-06-17 20:56:56 details
1.4.3. 50.4267. . Download 1193.07 2008-02-13 14:04:50 details
. .
14 updates are hidden show all updates

Recent change notes:

Updated to support PMD 5.2.0

General usage instructions:

PMD Plugin integrates PMD (http://pmd.sourceforge.com) to intelliJ. It supports all the pre defined rulesets as well as custom rulesets. The user can run pmd on a single or set of files/folders and see the results in intelliJ. To run the predefined rulesets, go to Tools -> PMD -> PreDefined menu. PMD supports custom ruleset file, to configure goto settings -> PMD and add the rule set files that are required.

Comments:

123>
bodhi
2014-04-05 10:01:24
The plugin is updated to work with Idea 13. Please report any issues at https://github.com/amitdev/PMD-Intellij/issues instead of using the comments.
.
Anonymous
2014-02-02 10:51:44
I guess it's about time to update the plugin :) Just ran it on IDEA 13, and that's what I got: java.lang.NullPointerException at com.intellij.plugins.bodhi.pmd.PMDProjectComponent.setupToolWindow(PMDProjectComponent.java:160) at com.intellij.plugins.bodhi.pmd.PMDInvoker.runPMD(PMDInvoker.java:69) at com.intellij.plugins.bodhi.pmd.PMDProjectComponent$1.actionPerformed(PMDProjectComponent.java:99) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:261) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:916) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:231) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104) at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
.
Lessy
2012-02-15 19:41:11
Hi again,

In the window with the PMD-results, I can see the description of the PMD-finding but I need the name if I want to place a @SuppressWarning on it. Now I have to google the description to find the name.

Maybe the name can be showed next to the description or as a tooltip?

Cheers
Lessy
.
Lessy
Rated:
2012-01-11 11:52:48
Thank you for this plugin. It works fine but I have a few points (I have 11.0.1 Ultimate):
- Is ti possible to assign a hotkey to a custom ruleset?
- If I mark a violation in the PMD-Toolwindow, I can doubleclick to get to the sourcefile. However Enter or F4 does not take me there (I prefer to use the keyboard). As workaround I can set \"Autoscroll to source\" but that setting seems not persisted

Regards
Lessy
.
bodhi
2011-08-04 20:37:09
Sorry for the delay - Updated Now to work with Idea 10+
.
fatso83
Rated:
2011-08-03 19:40:58
Has not been updated for a long time - always fails with an Exception. Never managed to run it on IntelliJ 10.
.
cpesch
Rated:
2011-07-28 16:36:32
Same exception here with IntelliJ IDEA 10.5.1
.
Anonymous
Rated:
2011-04-13 17:34:06
Great plugin! It's quite easy to use, and I haven't encountered any errors in it.
.
Anonymous
Rated:
2011-03-02 00:31:58
i have the same exception even after updating to idea 10.0.2
.
Anonymous
Rated:
2011-03-02 00:31:43
i have the same exception even after updating to idea 10.0.2
.
Anonymous
2011-02-17 22:25:04
Looking for an update to avoid the null pointer on IDEA 10.1.

I use this tool as part of my daily workflow. Come on JetBrains, stop breaking plugins with new releases!!

Where the is author?
.
samopal
2011-02-05 13:54:15
same exception here, IDEA 10.0.1
.
Anonymous
2011-01-12 11:15:01
IntelliJ 10.0.1

Install plugin and restart IntelliJ

null
java.lang.NullPointerException
at com.intellij.plugins.bodhi.pmd.OpenApiAdapter.runMethod(OpenApiAdapter.java:127)
at com.intellij.plugins.bodhi.pmd.OpenApiAdapter.createCollapseAllAction(OpenApiAdapter.java:110)
at com.intellij.plugins.bodhi.pmd.PMDResultPanel.createActions(PMDResultPanel.java:247)
at com.intellij.plugins.bodhi.pmd.PMDResultPanel.(PMDResultPanel.java:93)
at com.intellij.plugins.bodhi.pmd.PMDProjectComponent.projectOpened(PMDProjectComponent.java:124)
at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:338)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:72)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:373)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:145)
at com.intellij.openapi.project.impl.ProjectManagerImpl.d(ProjectManagerImpl.java:988)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:382)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:438)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:421)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:162)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:48)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:183)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:175)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:167)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:40)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:106)
at $Proxy34.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.b(IdeaApplication.java:227)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:50)
at com.intellij.idea.IdeaApplication$IdeStarter$3.run(IdeaApplication.java:192)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:505)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
.
Anonymous
Rated:
2010-12-26 13:43:27
null
java.lang.NullPointerException
at com.intellij.plugins.bodhi.pmd.OpenApiAdapter.runMethod(OpenApiAdapter.java:127)
at com.intellij.plugins.bodhi.pmd.OpenApiAdapter.createCollapseAllAction(OpenApiAdapter.java:110)
at com.intellij.plugins.bodhi.pmd.PMDResultPanel.createActions(PMDResultPanel.java:247)
at com.intellij.plugins.bodhi.pmd.PMDResultPanel.(PMDResultPanel.java:93)
at com.intellij.plugins.bodhi.pmd.PMDProjectComponent.projectOpened(PMDProjectComponent.java:124)
at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:338)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:72)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:373)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:145)
at com.intellij.openapi.project.impl.ProjectManagerImpl.d(ProjectManagerImpl.java:988)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:382)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:438)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:421)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:162)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:48)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:183)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:175)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:167)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:40)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:106)
at $Proxy35.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.b(IdeaApplication.java:227)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:50)
at com.intellij.idea.IdeaApplication$IdeStarter$3.run(IdeaApplication.java:192)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:506)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
.
Anonymous
2010-01-12 15:44:18
still exception while using with idea 9.0 ultimate
.
123>