Menu

#191 Add duplicate code analysis

v1.1.x
closed
None
v1.1.0
New Functionality
2017-05-06
2017-04-07
Erik Hänel
No

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.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-04-07
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-04-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     To the set of already available metrics add a duplicated code analysis.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-04-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     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:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-04-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,6 +4,7 @@
     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 change was implemented as proposed by the analysis. Implementation tests were passed successfully.
    
     **Documentation:**
    
     
  • Erik Hänel

    Erik Hänel - 2017-04-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,8 +4,9 @@
     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 change was implemented as proposed by the analysis. Implementation tests were passed successfully.
    +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:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-05-06
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     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.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB