boakley / robotframework-hub

Web app for accessing robot framework assets
https://github.com/boakley/robotframework-hub/wiki
Apache License 2.0
169 stars 60 forks source link

Ignore folders that keywords are not scanned from those folders #32

Open aaltat opened 10 years ago

aaltat commented 10 years ago

In start up I can specify folders what I want to include in to the hub but is there way to ignore folders too?

Example I start rfhub like this: python -m rfhub C:\path\to\my\resources But I would like to ignore C:\path\to\my\resources\libraries\python\tests folder, which contains unit and acceptance tests to my own libraries. Now those unit and acceptance test are show also in the rfhub and I would like to ignore it.

As a workaround, I know that I can set multiple folders to be include in the start up but if C:\path\to\my\resources has a lot of folders and number keeps growing. So therefore each time I create new folder, I must remember to add it to the start up command and restart the server. Which is somewhat inconvenient.

boakley commented 10 years ago

There currently is not a way to exclude files. How would you like to see this implemented? We could add a command line switch like "--ignore tests/unit", or we could do like what some other tools do and let you put a .hubignore file in a folder, and then you can put patterns in that file (eg: tests/unit/*

On Thu, Aug 21, 2014 at 2:13 AM, Tatu Aalto notifications@github.com wrote:

In start up I can specify folders what I want to include in to the hub but is there way to ignore folders too?

Example I start rfhub like this: python -m rfhub C:\path\to\my\resources But I would like to ignore C:\path\to\my\resources\libraries\python\tests folder, which contains unit and acceptance tests to my own libraries. Now those unit and acceptance test are show also in the rfhub and I would like to ignore it.

As a workaround, I know that I can set multiple folders to be include in the start up but if C:\path\to\my\resources has a lot of folders and number keeps growing. So therefore each time I create new folder, I must remember to add it to the start up command and restart the server. Which is somewhat inconvenient.

— Reply to this email directly or view it on GitHub https://github.com/boakley/robotframework-hub/issues/32.

aaltat commented 10 years ago

I think in the long run, git style ignore file is the best way to go. But my requirement is only to ignore two to three folders. So therefore the flag fulfils my needs.