Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML output #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

HTML output #3

wants to merge 4 commits into from

Conversation

rlegendi
Copy link

Hi all!

A few days ago I found the jdepend Ant task, and I was really missing the feature of some fancy HTML report generation. Yesterday I wasn't able to sleep so I implemented this feature (with some minor additional stuff).

Hope you'll find it useful.

Some other thoughts about the code:

  • If you rename README to README.md, Github gonna display the info at the main screen as parsed and evaluated Mardown. Its quite nice looking.
  • Are the generics omitted by intention (e.g. not to depend on Java 1.5) or just needs some work to remove the rawtype and unchecked warnings?
  • How do I run the tests? Honestly, I haven't really took a deep look on that, just right-clicked on the test package and run them as JUnit tests, but most of them failed due to some errors. Maybe I'll have another look on that.
  • Can the parser deal with Java classes with version above 1.5?
  • If you plan to extend the code to have more output formats, maybe using some visitors could enhance that.
  • The CSS I created may be easily changed to the one you use at the official site, it would be cooler to have that as the default output style format.
  • I'm not a great web wizard, I used a table template I found by Google designed by R. Christie http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs/

Best wishes,
Richard

Modified settings:
* Added default JUnit library
* Created default .gitignore for the bin folder
Debugging is now can be adjusted with a "-Djdepend.debug=true" switch
from the command line directly (without having to recompile the code).
One of the features I was missing when Yesterday I tried this tool out.
Now it is implemented with minor features and basic style, but may be
expended easily by updating the generated CSS file.

First I thougth source attachment as hyperlinks would be cool, but I
realized this is not always a feasible goal (see my TODO comment in the
code).

Hope you will be able to use this code for something.
The HTML generation now may include templates files direclty. Two templates
were supported as an example: one for the CSS and a simple HTML for the
general information in the header about the various metrics.

It would be really nice to update the sample CSS I made to the one used at
the official site at: http://www.clarkware.com/software/JDepend.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant