-
Couldn't load subscription status.
- Fork 41
Marker Attributes
Andreas Dangel edited this page Jun 21, 2019
·
1 revision
For each found rule violation PMD creates problem markers. For each priority there are own marker types:
- net.sourceforge.pmd.eclipse.plugin.pmdMarker1 (
net.sourceforge.pmd.eclipse.runtime.PMDRuntimeConstants.PMD_MARKER_1) - net.sourceforge.pmd.eclipse.plugin.pmdMarker2 (
net.sourceforge.pmd.eclipse.runtime.PMDRuntimeConstants.PMD_MARKER_2) - net.sourceforge.pmd.eclipse.plugin.pmdMarker3 (
net.sourceforge.pmd.eclipse.runtime.PMDRuntimeConstants.PMD_MARKER_3) - net.sourceforge.pmd.eclipse.plugin.pmdMarker4 (
net.sourceforge.pmd.eclipse.runtime.PMDRuntimeConstants.PMD_MARKER_4) - net.sourceforge.pmd.eclipse.plugin.pmdMarker5 (
net.sourceforge.pmd.eclipse.runtime.PMDRuntimeConstants.PMD_MARKER_5)
Each marker is also a problem marker and is therefore displayed in the problems view.
| Name | Description | Constant |
|---|---|---|
| message | The rule violation's message prepended with the rule name | IMarker.MESSAGE |
| pmd_message | Only the rule violation's message | PMDRuntimeConstants.KEY_MARKERATT_MESSAGE |
| lineNumber | The begin line of the violation | IMarker.LINE_NUMBER |
| line2 | The end line of the violation | PMDRuntimeConstants.KEY_MARKERATT_LINE2 |
| rulename | The name of the rule | PMDRuntimeConstants.KEY_MARKERATT_RULENAME |
| pmd_priority | The priority of the rule as a int. Can be 1 ... 5 | PMDRuntimeConstants.KEY_MARKERATT_PRIORITY |
| priority | Eclipse priority, value is always IMarker.PRIORITY_NORMAL
|
IMarker.PRIORITY |
| severity | Eclipse severity. Depending on the pmd_priority it is either INFO, WARNING or ERROR | IMarker.SEVERITY |