Re: How to limit the processed files for a certain check?

"Mark Tymieniecki" <[email protected]> Wed, 6 Jun 2012 14:35:45 +0100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============2068146881874388584==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_001C_01CD43F1.A8595AE0"
Content-Language: en-gb

This is a multipart message in MIME format.

------=_NextPart_000_001C_01CD43F1.A8595AE0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

HI Peter,

 

Did you manage to get your check to work. I have had endless problems with
'Unable to instantiate check' and frankly all I got from the checkstyle-user
was to check my classpath. Problem is that is set OK as everything else
works , so what am I missing ?

A constructor - tried that

The config file checkstyle-configutaion.xml - tried that

 

So any fresh Ideas gratefully accepted. 

 

Regards

 

Mark Zaremba-Tymieniecki

Home: 0207 228 0119

Mob:   0789 420 8834

Skype: mark.tymieniecki

 

 

 

From: Wippermann, Peter, VF-DE [mailto:[email protected]] 
Sent: 06 June 2012 13:56
To: [email protected]
Subject: [Checkstyle-user] How to limit the processed files for a certain
check?

 

Hi, 

I've written my own check *yeah* 
Now I want this check to be applied to a certain set of classes only. All
these classes inherit (at least indirectly) from the same super class.

But I thought it would be easier to filter for the package respectively the
path in the file system, because all these classes lie in the same package:
e.g. com.company.pack

I already learned about filters, but this effects all checks and not only a
single one, right? 
My last guess is to add "PACKAGE" to the supported token types of the check
and analyse the fully qualified path. But this seems to be awkward to me.

What would you suggest? 

Best regards, 
Peter 
  

  


------=_NextPart_000_001C_01CD43F1.A8595AE0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><title>How to limit the processed files for a certain =
check?</title><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Times New Roman","serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'>HI =
Peter,<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;color:#1F497D'>Did you =
manage to get your check to work. I have had endless problems with =
&#8216;Unable to instantiate check&#8217; and frankly all I got from the =
checkstyle-user was to check my classpath. Problem is that is set OK as =
everything else works , so what am I missing ?<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;color:#1F497D'>A =
constructor &#8211; tried that<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;color:#1F497D'>The =
config file checkstyle-configutaion.xml &#8211; tried =
that<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;color:#1F497D'>So any =
fresh Ideas gratefully accepted&#8230; <o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'>Regards<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DPL =
style=3D'font-size:11.0pt;color:#1F497D'>Mark =
Zaremba-Tymieniecki<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DPL style=3D'font-size:11.0pt;color:#1F497D'>Home: 0207 228 =
0119<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DPL =
style=3D'font-size:11.0pt;color:#1F497D'>Mob:&nbsp;&nbsp; 0789 420 =
8834<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'>Skype: =
mark.tymieniecki<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><div=
><div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'><p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Wippermann, Peter, VF-DE [mailto:[email protected]] =
<br><b>Sent:</b> 06 June 2012 13:56<br><b>To:</b> =
[email protected]<br><b>Subject:</b> =
[Checkstyle-user] How to limit the processed files for a certain =
check?<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi,</span> =
<o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>I've written =
my own check *yeah*</span> <br><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>Now I want =
this check to be applied to a certain set of classes only. All these =
classes inherit (at least indirectly) from the same super =
class.</span><o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>But I =
thought it would be easier to filter for the package respectively the =
path in the file system, because all these classes lie in the same =
package: e.g. com.company.pack</span><o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>I already =
learned about filters, but this effects all checks and not only a single =
one, right?</span> <br><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>My last =
guess is to add &quot;PACKAGE&quot; to the supported token types of the =
check and analyse the fully qualified path. But this seems to be awkward =
to me&#8230;</span><o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>What would =
you suggest?</span> <o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>Best =
regards,</span> <br><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>Peter</span> =
<br><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; =
</span><o:p></o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span>=
 <o:p></o:p></p></div></body></html>
------=_NextPart_000_001C_01CD43F1.A8595AE0--



--===============2068146881874388584==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============2068146881874388584==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user

--===============2068146881874388584==--