Re: writing a global project check

Oliver Burn <[email protected]> Wed, 7 Nov 2012 11:42:30 +1100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <CAHZftdVqHxhd+mJfr+vjCu6r=QmbNbjTcwXn953ZgenxnzdW+Q@mail.gmail.com>
--===============4673273641111096432==
Content-Type: multipart/alternative; boundary=f46d0420a69560dd6f04cddcfe40

--f46d0420a69560dd6f04cddcfe40
Content-Type: text/plain; charset=ISO-8859-1

While it would be possible to write a Checkstyle check to do what you are
asking, I certainly would not recommend it.

Personally, I tend to write a Groovy script that gets called by Maven/ANT
to perform global checks.

Regards,
Oliver


On Tue, Nov 6, 2012 at 7:58 PM, Dimitar Georgiev <
[email protected]> wrote:

> Maybe Checkstyle is not the intended tool for my case, but still I would
> like to use it, as I have already grasped how to integrate it with maven.
>
> Is it possible to write a global project check which is not based on any
> particular files?
>
> I just need to implement a module which fails the build in case the
> git.core.autocrlf violates the project convention, which is specified in
> the root pom.xml of the project.
>
>
>
> Thanks in advance.
>
> Regards, Dimitar
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>
>

--f46d0420a69560dd6f04cddcfe40
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

While it would be possible to write a Checkstyle check to do what you are a=
sking, I certainly would not recommend it.<br><br>Personally, I tend to wri=
te a Groovy script that gets called by Maven/ANT to perform global checks.<=
br>
<br>Regards,<br>Oliver<br><div class=3D"gmail_extra"><br><br><div class=3D"=
gmail_quote">On Tue, Nov 6, 2012 at 7:58 PM, Dimitar Georgiev <span dir=3D"=
ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">

<p class=3D"MsoNormal">Maybe Checkstyle is not the intended tool for my cas=
e, but still
I would like to use it, as I have already grasped how to integrate it with =
maven.</p>

<p class=3D"MsoNormal">Is it possible to write a global project check which=
 is not
based on any particular files?</p>

<p class=3D"MsoNormal">I just need to implement a module which fails the bu=
ild in
case the git.core.autocrlf violates the project convention, which is specif=
ied
in the root pom.xml of the project.</p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">Thanks in advance.</p>

<p class=3D"MsoNormal">Regards, Dimitar</p>

<br>-----------------------------------------------------------------------=
-------<br>
LogMeIn Central: Instant, anywhere, Remote PC access and management.<br>
Stay in control, update software, and manage PCs from one command center<br=
>
Diagnose problems and improve visibility into emerging IT issues<br>
Automate, monitor and manage. Do more in less time with Central<br>
<a href=3D"http://p.sf.net/sfu/logmein12331_d2d" target=3D"_blank">http://p=
.sf.net/sfu/logmein12331_d2d</a><br>_______________________________________=
________<br>
Checkstyle-user mailing list<br>
<a href=3D"mailto:[email protected]">Checkstyle-user@li=
sts.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/checkstyle-user" ta=
rget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/checkstyle-use=
r</a><br>
<br></blockquote></div><br></div>

--f46d0420a69560dd6f04cddcfe40--


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

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
--===============4673273641111096432==
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

--===============4673273641111096432==--