[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sonar-dev
Subject:    Re: [sonar-dev] Switch off violation + C# Plugin
From:       Fabrice Bellingard <fabrice.bellingard () sonarsource ! com>
Date:       2013-05-21 16:11:50
Message-ID: CA+PhQbv=my+-6Bs4c2DQjaBQMkdQ60XTS0MkvASZb39VUFLhtQ () mail ! gmail ! com
[Download RAW message or body]

Exactly!


Best regards,

 *Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com


On Tue, May 21, 2013 at 4:53 PM, Sebastien Gagnon <gag.seb@gmail.com> wrote:

> If i set the  property that defines the pattern to detect test projects,
> Gendarme/Stylecope/Fxcop will no longer analysis on testing projects?
>
> Thanks
>
> Sébastien
>
>
> 2013/5/14 Fabrice Bellingard <fabrice.bellingard@sonarsource.com>
>
>> You should not have to exclude test files for Gendarme or any other rule
>> engine. This probably means that you haven't properly set the property that
>> defines the pattern to detect test projects.
>>
>>
>> Best regards,
>>
>>  *Fabrice BELLINGARD | SonarSource**
>> *http://sonarsource.com
>>
>>
>> On Tue, May 14, 2013 at 3:54 PM, Sebastien Gagnon <gag.seb@gmail.com>wrote:
>>
>>> Hi Fabrice,
>>>
>>> Thanks for this Answer.
>>>
>>> How i can exclude my tests files with Gendarme ?
>>>
>>> No option for Gendarme ?
>>>
>>> http://docs.codehaus.org/display/SONAR/sonar-dotnet-gendarme-plugin
>>>
>>> Thanks !
>>>
>>> Sébastien
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2013/5/6 Fabrice Bellingard <fabrice.bellingard@sonarsource.com>
>>>
>>>> Hi Sebastien,
>>>>
>>>> Gendarme should not run on test files, so I guess that you have an
>>>> issue with the basic elements of your configuration.
>>>>
>>>>
>>>> Best regards,
>>>>
>>>>  *Fabrice BELLINGARD | SonarSource**
>>>> *http://sonarsource.com
>>>>
>>>>
>>>> On Fri, May 3, 2013 at 3:11 PM, Sebastien Gagnon <gag.seb@gmail.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> The Multi-criteria exclusion patterns seem to don't work with C#
>>>>> Plugin .....
>>>>>
>>>>> I tried to removed this violation for all the test class .....
>>>>>
>>>>> xxxTest.cs
>>>>> yyyyTest.cs
>>>>>
>>>>>
>>>>>
>>>>> My pattern is
>>>>>
>>>>> Resource Key Pattern = **/*Test.cs
>>>>> Rule Key Pattern =
>>>>> gendarme:DoNotSwallowErrorsCatchingNonSpecificExceptionsRule
>>>>> Line Range =  *
>>>>>
>>>>> Any Help ?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Sébastien
>>>>>
>>>>
>>>>
>>>
>>
>

[Attachment #3 (text/html)]

<div dir="ltr">Exactly!</div><div class="gmail_extra"><br clear="all"><div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><br></div><div>Best \
regards,</div><div><br></div><div><table width="100%" border="0" cellspacing="0" \
cellpadding="0" style="color:rgb(34,34,34);background-color:rgb(255,255,255);font-family:&#39;Times \
New Roman&#39;">

<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"></td></tr><tr><td \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif">


<div style="font-family:Arial,Helvetica,sans-serif;font-size:12px"><strong>Fabrice \
BELLINGARD | <font color="#C30C00">SonarSource</font></strong><font \
color="#666666"><i><br></i></font><a href="http://sonarsource.com/" \
style="color:rgb(195,12,0)" target="_blank">http://sonarsource.com</a></div>

</td></tr></tbody></table></div></span></div>
<br><br><div class="gmail_quote">On Tue, May 21, 2013 at 4:53 PM, Sebastien Gagnon \
<span dir="ltr">&lt;<a href="mailto:gag.seb@gmail.com" \
target="_blank">gag.seb@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div dir="ltr">If i set the  property that defines the pattern to detect test \
projects, Gendarme/Stylecope/Fxcop will no longer analysis on testing \
projects?<br><div><br></div><div>Thanks</div><div><br></div><div> \
Sébastien</div></div><div class="HOEnZb"><div class="h5"><div \
class="gmail_extra"><br><br><div class="gmail_quote">2013/5/14 Fabrice Bellingard \
<span dir="ltr">&lt;<a href="mailto:fabrice.bellingard@sonarsource.com" \
target="_blank">fabrice.bellingard@sonarsource.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">You should not have to exclude test files for \
Gendarme or any other rule engine. This probably means that you haven&#39;t properly \
set the property that defines the pattern to detect test projects.</div>


<div class="gmail_extra"><div>

<br clear="all"><div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><br></div><div>Best \
regards,</div><div><br></div><div><table width="100%" border="0" cellspacing="0" \
cellpadding="0" style="color:rgb(34,34,34);font-family:&#39;Times New Roman&#39;">




<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"></td></tr><tr><td \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif">





<div style="font-family:Arial,Helvetica,sans-serif;font-size:12px"><strong>Fabrice \
BELLINGARD | <font color="#C30C00">SonarSource</font></strong><font \
color="#666666"><i><br></i></font><a href="http://sonarsource.com/" \
style="color:rgb(195,12,0)" target="_blank">http://sonarsource.com</a></div>




</td></tr></tbody></table></div></span></div>
<br><br></div><div><div><div class="gmail_quote">On Tue, May 14, 2013 at 3:54 PM, \
Sebastien Gagnon <span dir="ltr">&lt;<a href="mailto:gag.seb@gmail.com" \
target="_blank">gag.seb@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div dir="ltr">Hi Fabrice,<div><br></div><div>Thanks for this \
Answer.</div><div><br></div><div>How i can exclude my tests files with Gendarme \
?</div><div><br></div><div>No option for Gendarme ?</div> <div><br></div><div><a \
href="http://docs.codehaus.org/display/SONAR/sonar-dotnet-gendarme-plugin" \
target="_blank">http://docs.codehaus.org/display/SONAR/sonar-dotnet-gendarme-plugin</a><br></div><div><br></div><div>
 Thanks !</div><div><br></div><div>Sébastien</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><div><div \
class="gmail_extra"><br><br><div class="gmail_quote">2013/5/6 Fabrice Bellingard \
<span dir="ltr">&lt;<a href="mailto:fabrice.bellingard@sonarsource.com" \
target="_blank">fabrice.bellingard@sonarsource.com</a>&gt;</span><br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Sebastien,<div><br></div><div>Gendarme \
should not run on test files, so I guess that you have an issue with the basic \
elements of your configuration.</div>





</div><div class="gmail_extra"><br clear="all">

<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><br></div><div>Best \
regards,</div><div><br></div><div><table width="100%" border="0" cellspacing="0" \
cellpadding="0" style="color:rgb(34,34,34);font-family:&#39;Times New Roman&#39;">







<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"></td></tr><tr><td \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif">








<div style="font-family:Arial,Helvetica,sans-serif;font-size:12px"><strong>Fabrice \
BELLINGARD | <font color="#C30C00">SonarSource</font></strong><font \
color="#666666"><i><br></i></font><a href="http://sonarsource.com/" \
style="color:rgb(195,12,0)" target="_blank">http://sonarsource.com</a></div>







</td></tr></tbody></table></div></span></div><div><div>
<br><br><div class="gmail_quote">On Fri, May 3, 2013 at 3:11 PM, Sebastien Gagnon \
<span dir="ltr">&lt;<a href="mailto:gag.seb@gmail.com" \
target="_blank">gag.seb@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">







<div dir="ltr">Hi,<div><br></div><div>The Multi-criteria exclusion patterns seem to \
don&#39;t work with C# Plugin .....</div><div><br></div><div>I tried to removed this \
violation for all the test class .....</div> \
<div><br></div><div>xxxTest.cs</div><div>yyyyTest.cs</div><div><br></div><div><br></div><div><br></div><div>My \
pattern is </div><div><br></div><div>Resource Key Pattern = **/*Test.cs</div> \
<div>Rule Key Pattern = \
gendarme:DoNotSwallowErrorsCatchingNonSpecificExceptionsRule</div><div>Line Range =  \
*</div><div><br></div><div>Any Help ?</div><div><br></div><div>Thanks</div><div> \
<br></div><div>Sébastien</div></div> </blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic