From 40b94abdd1d47956ba654905c4025bbe66f93f58 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Thu, 18 Dec 2003 21:13:22 +0000 Subject: [PATCH] Tweaked links git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2490 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd-web/src/doom.frag | 2 +- pmd-web/src/header.frag | 6 +++--- pmd-web/src/processor.rb | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pmd-web/src/doom.frag b/pmd-web/src/doom.frag index ecd353899d..f9304ee946 100644 --- a/pmd-web/src/doom.frag +++ b/pmd-web/src/doom.frag @@ -1,3 +1,3 @@ "> -Download + barrels diff --git a/pmd-web/src/header.frag b/pmd-web/src/header.frag index c93f0d0c7b..37f679e05f 100644 --- a/pmd-web/src/header.frag +++ b/pmd-web/src/header.frag @@ -14,7 +14,7 @@

Want to run PMD on your Java Sourceforge project? Please post here or email tom@infoether.com. Note that you can link to your project's PMD results as illustrated here. -

NEW! A DOOM map is now being generated for each project using Ruby-DOOM. +

NEW! A DOOM map is now being generated for each project using Ruby-DOOM.
@@ -26,8 +26,8 @@ diff --git a/pmd-web/src/processor.rb b/pmd-web/src/processor.rb index 98e74ced59..60fc6fcb3b 100644 --- a/pmd-web/src/processor.rb +++ b/pmd-web/src/processor.rb @@ -36,6 +36,7 @@ class Job ROOT="/home/tom/data/pmd/pmd-web/src" REMOTE_REPORT_DIR="/home/groups/p/pm/pmd/htdocs/reports/" attr_reader :unix_name, :mod, :title, :src + attr_accessor :barrels def initialize(title, unix_name, mod, src ) @title = title @unix_name = unix_name @@ -170,6 +171,7 @@ if __FILE__ == $0 m.add_barrel Point.new((x*600)+300, 1100) m.add_barrel Point.new((x*600)+300, 500) } + j.barrels = pmd.nooks * 2 m.create_wad(j.wad + ".tmp") cmd = "./bsp " + j.wad + ".tmp -o " + j.wad + " && rm -f " + j.wad + ".tmp" `#{cmd}` @@ -191,7 +193,7 @@ if __FILE__ == $0 "pmd"=>j.pmd_lines.to_s, "pctg"=>fm["pctg.frag", {"color"=>j.color, "pctg"=>j.pctg.to_s}], "dupe"=>fm["cpd.frag", {"file"=>j.cpd_file, "dupes"=>j.cpd_lines.to_s}], - "doom"=>fm["doom.frag", {"file"=>j.wad}] + "doom"=>fm["doom.frag", {"file"=>j.wad, "barrels"=>j.barrels}] }] unless !File.exists?(j.report) || !File.exists?(j.ncss_report) || j.ncss == 0 } File.open("scoreboard.html", "w") {|f| f.syswrite(out)}
Percentage
Unused Code
Duplicate
Code
-DOOM +DOOM
-Map +Map