Ask a Question

Any way to use wildcards (or even regex) to define routines to ignore?

DavidJameson
Occasional Contributor

Any way to use wildcards (or even regex) to define routines to ignore?

I'd like to ignore all routines in a particular namespace and sometimes all routines in a particular class. Also, I have a situation where I want to ignore all files in a particular subtree (several hundred files).

 

For the last, I ended up doing 

 

   du - a | grep cpp > /tmp/foo

 

and then running that file through a regex editor to massage it into a list of filenames with their complete paths.

 

Surely there should be a way to write things like

 

namespace::*

 

to ignore all routines in a namespace

 

or

 

::foo::*

 

to ignore all methods in the class foo

 

or 

 

**/foo/bar/*.cpp   (.git ignore style πŸ™‚

 

to ignore all C++ files whose full filepath ends with /foo/bar

 

I couldn't find anything like this in the documentation about Ignore Files and Routines but it seems like a rather obvious piece of workflow

 

(Edit: The Filter mechanism does seem to have this kind of ability so perhaps it could just be extended to the Ignore files/routines)

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

I think that instead of Ignore you should consider Areas functionality (check AQTime's help for more details about Areas). If I got you right, Areas should better match what you'd like to do.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
DavidJameson
Occasional Contributor

I get Areas but that seems to require more effort to do something that should be very simple. Those GUI filters are a very awkward way to specify something compared to regexes (all those options such as contains, begins with, not begins with, and they're incomplete so it becomes difficult to specify things) Also there are just some general things one wants to ignore for which areas are too fine-grained, which is presumably why there is an "Ignore" section in the first place.

Hi,

 

I may recommend you to create a new feature request (https://community.smartbear.com/t5/AQtime-Feature-Requests/idb-p/AQtime_Feature_Requests/tab/most-re...) and reference this thread.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β