Mantis Bug Tracker

View Issue DetailsJump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000076jquantlib[All Projects] toolspublic2008-12-27 14:172009-03-09 00:08
ReporterRichard Gomes 
Assigned ToSatyendra Gurjar 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version0.1.2Fixed in Version0.1.2 
Summary0000076: Create PMD rule which detects multiple top level classes inside a single .java file
DescriptionA certain .java file must have only one top level class.

This is a "marking task", i.e: once PMD produces the report, we need to create tasks for every case reported by PMD and then solve all occurrences.
Steps To Reproduce1. Open CzechRepublic.java
2. Notice that there are 2 top level classes: CzechRepublic and CzechRepublicPSECalendar

TagsNo tags attached.
Attached Files

- Relationships
child of 0000030closedRichard Gomes Remove Macker 

-  Notes
(0000104)
Richard Gomes (manager)
2009-02-02 02:35

* I've created colt.xml and fastutil.xml under directory src/main/pmd as example.

* I've integrated these 2 rulesets in pom.xml near line 900:
              <ruleset>${basedir}/src/main/pmd/colt.xml</ruleset>
              <ruleset>${basedir}/src/main/pmd/fastutil.xml</ruleset>

* The following articles explain how PMD rulesets can be created:
  http://pmd.sourceforge.net/howtowritearule.html [^]
  http://www.onjava.com/pub/a/onjava/2003/04/09/pmd_rules.html [^]
(0000164)
Satyendra Gurjar (developer)
2009-02-11 11:19

found rule

//CompilationUnit[count(/TypeDeclaration) > 1]

will check in rules xml
(0000183)
Satyendra Gurjar (developer)
2009-02-16 17:29

added pmd/multipletopleveltypes.xml
(0000233)
Richard Gomes (manager)
2009-03-09 00:08

Rule moved to architectural.xml

- Issue History
Date Modified Username Field Change
2008-12-27 14:17 Richard Gomes New Issue
2008-12-27 15:20 Richard Gomes Issue Monitored: Richard Gomes
2008-12-27 15:20 Richard Gomes Issue Monitored: Renjith Nair
2009-01-25 22:41 Richard Gomes Target Version => 0.1.2
2009-01-25 23:25 Richard Gomes Relationship added child of 0000030
2009-02-02 02:35 Richard Gomes Note Added: 0000104
2009-02-11 11:18 Satyendra Gurjar Status new => assigned
2009-02-11 11:18 Satyendra Gurjar Assigned To => Satyendra Gurjar
2009-02-11 11:19 Satyendra Gurjar Note Added: 0000164
2009-02-16 17:29 Satyendra Gurjar Note Added: 0000183
2009-02-16 17:29 Satyendra Gurjar Status assigned => resolved
2009-02-16 17:29 Satyendra Gurjar Resolution open => fixed
2009-03-09 00:08 Richard Gomes Note Added: 0000233
2009-03-09 00:08 Richard Gomes Status resolved => closed
2009-03-09 00:08 Richard Gomes Fixed in Version => 0.1.2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker