I know that it is possible to turn of checkstyle for certain parts of the
project but these are default warnings generated in eclipse. I haven't found
any way to turn them off for specific parts of the code.

Thanks for the feedback though. But I did not understand what you meant by
your last sentence:
"My personal opinion is that
the right thing to do is to better support template modifications."

/Ludwig

-----Original Message-----
From: Thomas Fischer [mailto:fisc...@seitenbau.net] 
Sent: den 9 november 2009 16:17
To: Apache Torque Developers List
Subject: RE: Adding configuration paramater to maven plugin

"Ludwig Magnusson" <lud...@itcatapult.com> schrieb am 08.11.2009 23:05:03:

...
> I now added a parameter called "suppressWarnings" to the OM-task.
> If set to true (default is false) it will add the annotation
> @SuppressWarnings("all") to the base and map classes.
> This is a feature I'd like to see in future releases since we in our team
> have a "no warnings policy" and the torque generated classes contains ca
> 2000 warnings for a database with 50 tables.
>
> Is this something that could be useful for torque?

Personally, I do not think this is useful in general. I know that generated
code does not comply to the same standards as hand-written code, and if the
compiler warns about that, it is fine to me. I tend to exempt the generated
code from checkstyle checks etc. by excluding the separate directories
where the generated code lives.

Other opinions are welcome, of course.

However, what I do see is that this is useful for you, and that it is a
pain right now to deal with modified templates. My personal opinion is that
the right thing to do is to better support template modifications.

      Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscr...@db.apache.org
For additional commands, e-mail: torque-dev-h...@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscr...@db.apache.org
For additional commands, e-mail: torque-dev-h...@db.apache.org

Reply via email to