To the set of already available metrics add a duplicated code analysis.
Analysis:
This can be done by adding a new member function to the editor, which is capable of identifying duplicated code. The duplicate code analysis should walk through all the passed lines and search for matches larger than e.g. 3 lines. A semantical analysis is also needed, because the duplicated code may contain different variable names.
Implementation:
The functionality was implemented as proposed by the analysis. Implementation tests were passed successfully.
Documentation:
The functionality was documented in the documentation articles about the "editor" in both languages.
Tests:
Functionality works quite well. Large files are time consuming, so the application may freeze some time. This has to be improved in the future. However, the core functionality of the duplicate code analysis is implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff:
Diff: