Menu

#355 Enable code metrics for MATLAB files

v1.1.x
closed
None
v1.1.1
Change Request
2018-11-10
2018-07-06
Erik Hänel
No

In addition to the already available duplicate code functionality, enable code metrics for MATLAB files.

Analysis:
This can be done by enhancing the NumeReEditor::isStyleType() member function and replace the hardcoded style tokens in NumeReEditor::AnalyseCode(). Additionally, some changes have to be made in the member function, because MATLAB allows calling functions without explicit parentheses.

Implementation:

  • Implementation: Done according the analysis.
  • ImplementationTest: Passed successfully.

Documentation:

  • ChangesLog: Change request was documented in changes log
  • Comments: Code changes were commented sufficiently
  • Documentation: Documentation articles for the editor and the static code analyzer were updated correspondingly
  • Language Files: Not needed - language files not affected

Tests:
This change was tested thoroughly in production tests. All deviations were resolved,

Discussion

  • Erik Hänel

    Erik Hänel - 2018-07-06
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2018-07-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     In addition to the already available duplicate code functionality, enable code metrics for MATLAB files.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2018-07-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     In addition to the already available duplicate code functionality, enable code metrics for MATLAB files.
    
     **Analysis:**
    +This can be done by enhancing the `NumeReEditor::isStyleType()` member function and replace the hardcoded style tokens in `NumeReEditor::AnalyseCode()`.  Additionally, some changes have to be made in the member function, because MATLAB allows calling functions without explicit parentheses.
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2018-07-21
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,13 @@
     This can be done by enhancing the `NumeReEditor::isStyleType()` member function and replace the hardcoded style tokens in `NumeReEditor::AnalyseCode()`.  Additionally, some changes have to be made in the member function, because MATLAB allows calling functions without explicit parentheses.
    
     **Implementation:**
    +*Implementation:* Done according the analysis.
    +*ImplementationTest:* Passed successfully.
    
     **Documentation:**
    +*ChangesLog:* Change request was documented in changes log
    +*Comments:* Code changes were commented sufficiently
    +*Documentation:* Documentation articles for the editor and the static code analyzer were updated correspondingly
    +*Language Files:* Not needed - language files not affected
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2018-07-21
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,13 +4,13 @@
     This can be done by enhancing the `NumeReEditor::isStyleType()` member function and replace the hardcoded style tokens in `NumeReEditor::AnalyseCode()`.  Additionally, some changes have to be made in the member function, because MATLAB allows calling functions without explicit parentheses.
    
     **Implementation:**
    -*Implementation:* Done according the analysis.
    -*ImplementationTest:* Passed successfully.
    +* Implementation: Done according the analysis.
    +* ImplementationTest: Passed successfully.
    
     **Documentation:**
    -*ChangesLog:* Change request was documented in changes log
    -*Comments:* Code changes were commented sufficiently
    -*Documentation:* Documentation articles for the editor and the static code analyzer were updated correspondingly
    -*Language Files:* Not needed - language files not affected
    +* ChangesLog: Change request was documented in changes log
    +* Comments: Code changes were commented sufficiently
    +* Documentation: Documentation articles for the editor and the static code analyzer were updated correspondingly
    +* Language Files: Not needed - language files not affected
    
     **Tests:**
    
     
  • Erik Hänel

    Erik Hänel - 2018-07-21
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,10 +4,12 @@
     This can be done by enhancing the `NumeReEditor::isStyleType()` member function and replace the hardcoded style tokens in `NumeReEditor::AnalyseCode()`.  Additionally, some changes have to be made in the member function, because MATLAB allows calling functions without explicit parentheses.
    
     **Implementation:**
    -* Implementation: Done according the analysis.
    +
    +*  Implementation: Done according the analysis.
    
     * ImplementationTest: Passed successfully.
    
     **Documentation:**
    +
    
     * ChangesLog: Change request was documented in changes log
     * Comments: Code changes were commented sufficiently
     * Documentation: Documentation articles for the editor and the static code analyzer were updated correspondingly
    
     
  • Erik Hänel

    Erik Hänel - 2018-11-10
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -16,3 +16,4 @@
    
     * Language Files: Not needed - language files not affected
    
     **Tests:**
    +This change was tested thoroughly in production tests. All deviations were resolved,
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB