bug in parsing the sloccount output

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: sloccount-plugin
    • None
    • Environment:
      Platform: All, OS: All

      Hello,

      I'm running on a windows machine. I run the sloccount open source via cygwin.

      To get the results properly displayed in the hudson interface, I need to do the
      following :

      1. run cygpath on the output produced by sloccount, to replace the / by \
      (trnslation to windows pathnames), and DOUBLE all the \ characters
      (for example : \\workspace\\src\\Module1
      MyClass1.php)

      2. (and here is the bug) : the plugin will fail to generate the report ("index
      out of bounds" java exception), if a path containing a number of directories, is
      followed by a path containg less directories.

      For example :

      This will fail :

      17 php src \\workspace\\src\\Module1
      MyClass1.php
      12 php src \\workspace\\src\\Module1\\Module2
      MyClass3.php
      25 php src \\workspace\\src\\Module3
      MyClass5.php

      But this will be ok :

      25 php src \\workspace\\src\\Module3
      MyClass5.php
      17 php src \\workspace\\src\\Module1
      MyClass1.php
      12 php src \\workspace\\src\\Module1\\Module2
      MyClass3.php

            Assignee:
            sogabe
            Reporter:
            mniouri
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: