What I would like to do is exclude all the import blocks from being considered in duplication counts. I currently have the following set up on the interface to try and exclude these blocks, but both options do not seem to work.
I think (know!) you’re thinking this mechanism is more sophisticated than it is. You need to provide a positive match pattern. Something like //end imports (which of course implies editing your files which is an obvious PITA and probable no-go). Also, I’m pretty sure that this is a line-by-line detection, so an end pattern of \n\n isn’t going to work.
So in screenshot I tried the more simple solution of just looking for “imports” as the start string and "; as the end string. I’m guessing that "; won’t work as the end option because it’s not a simple string?
OH. I see. Wow that does not do what I thought it did.
Alrighty, I’m on the same page now. Thank you for your help . I’ll just exclude the file until the next new code period. I don’t want to add any lines without a good reason.