Changes between Version 2 and Version 3 of WxInterface/DupCode
- Timestamp:
- Sep 17, 2014, 4:09:56 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WxInterface/DupCode
v2 v3 1 1 = Duplicated code analysis = 2 This service is available under the ”Duplicated code” tab. 2 This service is available under the ”Duplicated code” tab. (To learn more about the provided duplicated code analysis please visit CloneIdentifiErl.) 3 In the Duplicated code menu the algorithm and its parameters can be set (it is not necessary to set every parameter). 3 4 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 [[Image(wx_main.png)]] 5 6 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) 7 By clicking on the Run analysis button the analysis starts. When it finishes the results are shown and can be further browsed. 8 A clone group can be selected from the Group dropdown list. After a group is selected the possible clone instances can be selected from the Right/Left browser dropdown lists. 10 9 11 After configuring, you can run the analysis with the "Run analysis" button. 10 [[Image(wx_result.png)]] 12 11 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 [wiki:WxInterface/CodeBrowser Code browser]. 14 ("Left browser and right browser" selection lists). 15 You can highlight the small differences in similar codes with the "Show diffs" button. 12 == Load previously saved result == 13 14 In this interface it is also available to display the result of a previously saved duplicated code result. To display such result click on the Load results... button and enter the name of the saved result. 15 16 == Search duplicate code by selection == 17 18 It is possible to make a selection in the source code and start the duplicate code analysis by right clicking after that selecting the Search duplicates in the selection menu. This will start the {{{matrix}}} algorithm which will search for duplicates of the selection in the entire database.