[Gambas-bugtracker] Bug #1567: Info files symbol counts will be wrong

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat May 4 17:29:21 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1567&from=L21haW4-

Cedron DAWG reported a new bug.

Summary
-------

Info files symbol counts will be wrong

Type             : Bug
Priority         : Low
Gambas version   : Master
Product          : Wiki


Description
-----------

gambas-master/app/src/gambas-wiki/.src/Main.module

following line 900

The logic doesn't recognize comments in the .info files.

Existing:

    For Each sLine In aFile
      If Left(sLine) = "#" Then Inc iCpt
    Next
    nClass += iCpt
    nSym += (aFile.Count - iCpt * 3) / 4


Proposed:

    For Each sLine In aFile
      If Left(sLine) = "#" Then Inc iCpt
      If Left(sLine) = "'" Then Inc iCommentCount   ' or a cryptic substitute
    Next
    nClass += iCpt
    nSym += (aFile.Count - iCommentCount - iCpt * 3) / 4


System information
------------------

N/A




More information about the Bugtracker mailing list