false positive by rule "tablename"

Project:Prolint Issue Tracker
Component:Rules
Category:bug report
Priority:normal
Assigned:jurjen
Status:closed
Description

when an on X trigger is inside two different internal procedures the rule tablename will give an invalid result.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

#1

Assigned to:Anonymous» jurjen

Yes I see.
I will try to fix this as soon as possible because "tablename" is a rule in the bugs category.
Thanks for submitting the bug report!


jurjen's picture

#2

Title:invalid positible match for tablename rule» i dont really understand

I undestand half the problem: this is what causes the false positive

  procedure something :
     define vaiable hWidget as handle no-undo.
     on value-changed of hWidget 
        peristent run somehandler in this-procedure(hWidget).
  end procedure.

the ON event handler is currently considered to be a procedure, but it is already inside a procedure. This confuses the search for the declaration of the hWidget variable. I can fix that.

But what I do NOT understand is why this false positive only occurs when you lint more than one file from within Roundtable. When you inspect just one file you don't get the error, when you inspect it together with other files (an entire task) you may get the error. Very weird. I think some memory is not properly reset/destroyed/freed between files, but what?


jurjen's picture

#3

Title:i dont really understand» false positive by rule "tablename"
Status:active» fixed

fixed and checked in into subversion (revision 358): file core/prolint.p


#4

Status:fixed» closed