| | 1 | = Duplicate code analysis = |
| | 2 | This service is available under the ”Duplicate Codes” menu. |
| | 3 | |
| | 4 | [[Image(webinterface_dupcodes.jpg)]][[BR]] |
| | 5 | |
| | 6 | ''Web interface showing the difference between two similar code parts.'' |
| | 7 | |
| | 8 | == Running and browsing an analysis == |
| | 9 | |
| | 10 | You can add files to run the analysis on either in the top textbox, and using the 'Add to list' button, or directly in the below textarea, separated by newlines. |
| | 11 | |
| | 12 | Parameters that can be configured for the analysis: |
| | 13 | * Min length: the minimum length of duplicates to be searched (length is in tokens) |
| | 14 | * Min number of dups: the minimum number of duplicates that has to be in the same group |
| | 15 | * Overlap amount: maximum length that duplicates can overlap each other (length is in tokens) |
| | 16 | |
| | 17 | After configuring, you can run the analysis with the "Run duplicate code analysis" button. |
| | 18 | |
| | 19 | The result will be shown below. |
| | 20 | By clicking on a result, the first two codes in that group will be shown in the two columns, with their similar parts highlighted. |
| | 21 | You can switch codes from that group with the dropdown lists over the columns. |
| | 22 | You can highlight the small differences in similar codes with the "Show differences" button. |
| | 23 | |