Skip to main content
brian_thomas2
Adobe Employee
Adobe Employee
November 30, 2009
Answered

FlexCPD & Standard Headers

  • November 30, 2009
  • 2 replies
  • 622 views

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 has been closed for replies.
Correct answer Xavier Agnetti

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
Adobe Employee
December 1, 2009

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

Adobe Employee
December 1, 2009

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