Skip to main content
brian_thomas2
Adobe Employee
Adobe Employee
Nov 30, 2009 10:42 PM UTC
Answered

FlexCPD & Standard Headers

First of all, congrats on the release of FlexCPD - it's a great tool!

Looking at my results I'm noticing that it flags all my standard comment headers, which are required on every single source file, as duplicate code. Any suggestions as to how to keep these out of my results? I'd prefer not to mess with my minimum token count to accommodate for these.

Or maybe comments should be excluded from the analysis?

Thanks,

Brian

This topic is closed to new replies. Start a new post to keep the conversation going.
Xavier AgnettiCorrect answer
Inspiring
Dec 1, 2009 7:47 AM UTC

Hi Brian,

Ok. I took a look and it appeared that a fair amount of the tokens in the stream was noise (/**, \n, {, }, ....).

So I removed those tokens from the token stream and that lead to much more accurate results.

It will be relased in the next release.

Xavier

2 replies

Xavier AgnettiCorrect answer
Inspiring
Dec 1, 2009 7:47 AM UTC

Hi Brian,

Ok. I took a look and it appeared that a fair amount of the tokens in the stream was noise (/**, \n, {, }, ....).

So I removed those tokens from the token stream and that lead to much more accurate results.

It will be relased in the next release.

Xavier

Translate
Inspiring
Dec 1, 2009 7:10 AM UTC

Hi Brian,

I noticed that as well.

I need to dive into it in order to exclude comments from the token stream (comment should definetly not be included in this stream).

Feel free to create an issue in JIRA so that we don't forget it

Thanks

Xavier

Translate