tags:

views:

18

answers:

0

Is it possible to set up start and end comments for disabling simian in an Ant task? I've seen various forums talking about a command line option to disable simian for certain blocks of code using comments and I have tried this in the Ant task doing something like this:

<simian ignoreBlocks="simian-start:simian-stop" .... />

And then in the Java code, I have done the following

//simian-start
....
//simian-stop

However, the duplication is still detected between the bit of code between the comments above and the other class that has the same bit of code.

I also tried it the other way around just in case I have the ordering of the ignoreBlocks mixed up:

//simian-stop
....
//simian-start