Menu

#704 Misleading typisation warning

v1.1.x
closed
v1.1.4
New Functionality
2022-08-05
2022-05-14
Erik Hänel
No

Create a static code analyzer warning for variable typisations, which do not match their actual type.

Analysis:

This functionality is implemented rather quickly. Will only depend upon a new settings value and the corresponding detection algorithm, which is already in use.

Implementation:

  • Implementation: Implemented as proposed by the analysis.
  • Revision: [r1152]
  • Implementation test: A file with misleading type prefixes was analyzed and the corresponding warning appeared.

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [ ] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [x] not needed
  • Language files:
    • [x] corresponding language files updated
    • [ ] not needed

Tests:

Tested manually. No deviations detected.

Related

Commit: [r1152]

Discussion

  • Erik Hänel

    Erik Hänel - 2022-05-17
    • labels: --> gui, editor, analyzer
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2022-05-17
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,23 @@
     Create a static code analyzer warning for variable typisations, which do not match their actual type.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2022-05-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Create a static code analyzer warning for variable typisations, which do not match their actual type.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +This functionality is implemented rather quickly. Will only depend upon a new settings value and the corresponding detection algorithm, which is already in use.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2022-05-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,19 +4,19 @@
     This functionality is implemented rather quickly. Will only depend upon a new settings value and the corresponding detection algorithm, which is already in use.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: Implemented as proposed by the analysis.
    +* Revision: [r1152]
    +* Implementation test: A file with misleading type prefixes was analyzed and the corresponding warning appeared.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
         * [ ] corresponding documentation articles updated
         * [ ] new documentation articles created
    -    * [ ] not needed
    +    * [x] not needed
     * **Language files:**
    -    * [ ] corresponding language files updated
    +    * [x] corresponding language files updated
         * [ ] not needed
    
     ###Tests:
    
    • status: implementing --> testing
     

    Related

    Commit: [r1152]

  • Erik Hänel

    Erik Hänel - 2022-08-05
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -20,4 +20,4 @@
    
         * [ ] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Tested manually. No deviations detected.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB