Menu

#9 Specify filename filters for actual code

v0.2-dev
closed
6
2003-06-04
2002-08-20
Anonymous
No

It would be nice if you could specify which files are
actually counted in the chart (e.g. *.java, *.cpp, *.c, *.h,
*pl) instead of all files being counted. A lot of our test
suite code (text files, html files) is throwing off the
metrics.

Discussion

  • Richard Cyganiak

    Logged In: YES
    user_id=584620

    This is a very useful idea and will be added soon.

     
  • Anonymous

    Anonymous - 2003-02-04
    • milestone: --> 276145
    • assigned_to: nobody --> lukasz
    • priority: 5 --> 3
     
  • Anonymous

    Anonymous - 2003-03-18

    Logged In: YES
    user_id=21613

    I would suggest to generate the log only for
    the source directories by specifying a modulename
    on cvs log call rather then doing filename filtering.
    If somebody is interested in including the filters: feel
    free to implement.

     
  • Anonymous

    Anonymous - 2003-03-18
    • assigned_to: lukasz --> nobody
    • status: open --> closed
     
  • Richard Cyganiak

    Logged In: YES
    user_id=584620

    Re-opened and assigned to me. It would also be useful if one
    could specify directories to include or exclude. Maybe use the
    ant wildcard syntax (e.g. "src/**/*Test.java").

    Maybe we should have two cmd line switchtes:

    -include-files

    -exclude-files

     
  • Richard Cyganiak

    • priority: 3 --> 6
    • assigned_to: nobody --> cyganiak
    • status: closed --> open
     
  • Richard Cyganiak

    Logged In: YES
    user_id=584620

    Added in 0.2-dev. There are two new command line switches
    -include <pattern-list> and -exclude <pattern-list>. Using them,
    you can specify exactly which files you want to include in the
    analysis. Example:
    -include **/*.c;**/*.h -exclude test/**
    This would include all .c and .h files in any directory, except those
    in the test/ directory or its subdirectories.
    The wildcard syntax is essentially the same as used in Apache
    Ant.

     
  • Richard Cyganiak

    • milestone: 276145 --> v0.2-dev
    • status: open --> closed