<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code Duplication on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/code-duplication/</link><description>Recent content in Code Duplication on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 08 Dec 2011 16:46:00 +0100</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/code-duplication/index.xml" rel="self" type="application/rss+xml"/><item><title>Simian counts errors in Jenkins dashboard but shows in details “No violation found”</title><link>http://blog.marko-apfel.de/posts/simian-counts-errors-in-jenkins-dashboard-but-shows-in-details-no-violation-found/</link><pubDate>Thu, 08 Dec 2011 16:46:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/simian-counts-errors-in-jenkins-dashboard-but-shows-in-details-no-violation-found/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;
&lt;p&gt;Jenkins dashboard shows following simian analysis:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
 &lt;img src="http://blog.marko-apfel.de/posts/simian-counts-errors-in-jenkins-dashboard-but-shows-in-details-no-violation-found/Simian.NoViolationFound.01.png" alt="Screenshot for Simian counts errors in Jenkins dashboard but shows in details “No violation found”" loading="lazy" decoding="async"&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;But after clicking one item I get:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
 &lt;img src="http://blog.marko-apfel.de/posts/simian-counts-errors-in-jenkins-dashboard-but-shows-in-details-no-violation-found/Simian.NoViolationFound.02.png" alt="Screenshot for Simian counts errors in Jenkins dashboard but shows in details “No violation found”" loading="lazy" decoding="async"&gt;&lt;/figure&gt;&lt;/p&gt;</description></item><item><title>Integrate Simian in Hudson CI-server</title><link>http://blog.marko-apfel.de/posts/integrate-simian-in-hudson-ci-server/</link><pubDate>Wed, 07 Jul 2010 00:04:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/integrate-simian-in-hudson-ci-server/</guid><description>&lt;h2 id="steps-to-integrate-simian"&gt;Steps to integrate simian&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;add simian to VCS&lt;br&gt;
(in our case folder &lt;code&gt;./trunk/build/simian&lt;/code&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;add build step to your Hudson job&lt;br&gt;
(Execute Windows batch command)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;use following two commands&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bat" data-lang="bat"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;.\trunk\build\Simian\bin\simian-2.2.24.exe
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -formatter=xml:.\trunk\bin\Simian.Result.xml
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -excludes=**/*.Test/**/*.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -excludes=**/*.DbFrame/**/*.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -excludes=**/*.DbLayout/**/*.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -excludes=**/*.Designer.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -excludes=**/XServer1\_8.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -threshold=10
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; **/*.cs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;EXIT&lt;/span&gt; 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="explanation"&gt;Explanation&lt;/h2&gt;
&lt;p&gt;For better visibility and understanding I have split the first call (simian) over several lines. Needless to say that you must contract all parameters and arguments of the simian call in one line.&lt;/p&gt;</description></item></channel></rss>