| 1 | = Duplicated code analysis = |
| 2 | This service is available under the ”Duplicated code” tab. |
| 3 | |
| 4 | You can add files to run the analysis on either in the top left textbox (which also has an autocomplete feature), and using the 'Add file/regexp' button. |
| 5 | |
| 6 | Parameters that can be configured for the analysis: |
| 7 | * Min length: the minimum length of duplicates to be searched (length is in tokens) |
| 8 | * Min number of dups: the minimum number of duplicates that has to be in the same group |
| 9 | * Overlap amount: maximum length that duplicates can overlap each other (length is in tokens) |
| 10 | |
| 11 | After configuring, you can run the analysis with the "Run analysis" button. |
| 12 | |
| 13 | The results can be examinated by choosing a code group ("Group" selection list) and selecting codes to be shown in the left and right browsers |
| 14 | ("Left browser and right browser" selection lists). |
| 15 | You can highlight the small differences in similar codes with the "Show diffs" button. |