<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Clean Code on Marko Apfel</title><link>http://blog.marko-apfel.de/topics/clean-code/</link><description>Recent content in Clean Code 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/topics/clean-code/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;h1 id="problem"&gt;Problem&lt;/h1&gt;
&lt;p&gt;Jenkins dashboard shows following simian analysis:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://web.archive.org/web/20120521123019id_/http://sites.google.com/site/markoapfel/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;/p&gt;
&lt;p&gt;But after clicking one item I get:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://web.archive.org/web/20120521123019id_/http://sites.google.com/site/markoapfel/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;/p&gt;</description></item><item><title>@Microsoft: please provide universal and professional concepts</title><link>http://blog.marko-apfel.de/posts/microsoft-please-provide-universal-and-professional-concepts/</link><pubDate>Sun, 20 Nov 2011 11:35:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/microsoft-please-provide-universal-and-professional-concepts/</guid><description>&lt;p&gt;Why such constructs are included in the csproj-Files?&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt;CodeAnalysisRuleSetDirectories&amp;gt;;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets&amp;lt;/CodeAnalysisRuleSetDirectories&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt;CodeAnalysisRuleDirectories&amp;gt;;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules&amp;lt;/CodeAnalysisRuleDirectories&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So it every projects needs some manual steps to clean the project file so the solution could be build on a continuous integration server. That annoying!&lt;/p&gt;</description></item><item><title>Setup license stuff for PostSharp 2.1</title><link>http://blog.marko-apfel.de/posts/setup-license-stuff-for-postsharp-2-1/</link><pubDate>Tue, 08 Nov 2011 20:03:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/setup-license-stuff-for-postsharp-2-1/</guid><description>&lt;h1 id="problem"&gt;Problem&lt;/h1&gt;
&lt;p&gt;Normally PostSharp runs fine on unattended build servers. So on our global Jenkins continuous integration server PostSharp does the job.&lt;/p&gt;
&lt;p&gt;But on my local TeamCity continuous integration server I got the following error:&lt;/p&gt;</description></item><item><title>Running StyleCop without an installation to empower continuous integration</title><link>http://blog.marko-apfel.de/posts/running-stylecop-without-an-installation-to-empower-continuous-integration/</link><pubDate>Mon, 07 Nov 2011 22:32:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/running-stylecop-without-an-installation-to-empower-continuous-integration/</guid><description>&lt;h1 id="problem"&gt;Problem&lt;/h1&gt;
&lt;p&gt;A continuous integration server should only have a minimal toolset installed. This ensures that no unwanted libraries could affect the build and other steps.&lt;/p&gt;
&lt;p&gt;Clearly that with this slogan also StyleCop should not be installed to the CI server. But we wanna have this analysis as an part of the whole build.&lt;/p&gt;</description></item><item><title>Using NuGet in a MSBuild-target to have the packages at the last stand</title><link>http://blog.marko-apfel.de/posts/using-nuget-in-a-msbuild-target-to-have-the-packages-at-the-last-stand/</link><pubDate>Wed, 06 Jul 2011 18:15:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/using-nuget-in-a-msbuild-target-to-have-the-packages-at-the-last-stand/</guid><description>&lt;h3 id="motivation"&gt;Motivation&lt;/h3&gt;
&lt;p&gt;Encouraged from the article “&lt;a href="http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages"&gt;Using NuGet without committing packages to source control&lt;/a&gt;” I decided to wrap the NuGet-call in a MSBuild target instead of using a pre-build event.&lt;/p&gt;
&lt;p&gt;Because we also trigger FxCop and StyleCop via targets this fits better in our project management.&lt;/p&gt;</description></item><item><title>Let ReSharper and xUnit work together</title><link>http://blog.marko-apfel.de/posts/let-resharper-and-xunit-work-together/</link><pubDate>Sun, 05 Jun 2011 13:41:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/let-resharper-and-xunit-work-together/</guid><description>&lt;h1 id="getting-the-ressources"&gt;Getting the ressources&lt;/h1&gt;
&lt;p&gt;First at all download&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;xUnit
&lt;a href="http://xunit.codeplex.com/releases/"&gt;http://xunit.codeplex.com/releases/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;xUnit Contrib ReSharper
&lt;a href="http://xunitcontrib.codeplex.com/releases/"&gt;http://xunitcontrib.codeplex.com/releases/&lt;/a&gt;
This gives you a bridge between ReSharper functionality and your XUnit coding.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="installation-und-configuration"&gt;Installation und Configuration&lt;/h1&gt;
&lt;p&gt;Unzip both archives.&lt;/p&gt;
&lt;h2 id="xunit-part"&gt;xUnit part&lt;/h2&gt;
&lt;h3 id="configure-the-code-to-use-xunit"&gt;Configure the code to use xUnit&lt;/h3&gt;
&lt;p&gt;Normally I prefer a single checkout point for my developing solution – this whole bundle I name DevTree. One of the top folders in the hierarchy of this DevTree is a lib-Folder. Beneath this folder all of the 3rd party libs which I use in my solution are located – all of them in an own folder. So I copy xunit.dll to a folder &amp;lt;DevTree-TopPoint&amp;gt;\lib\xUnit.&lt;/p&gt;</description></item></channel></rss>