Add a .rooginore option to exclude sensitive files from being read #1356
Replies: 4 comments
-
We rely on a .clineignore file (similar to .gitignore) in the workspace. Loads patterns from .clineignore. Where It Lives Create a dedicated folder (e.g., src/core/ignore/) with a RooclineIgnoreController.ts. In your extension’s main activation code (e.g., extension.ts), instantiate and initialize the controller, passing the workspace root as cwd. Whenever .clineignore is created, changed, or deleted, the controller reloads patterns automatically. Write unit tests to confirm .clineignore patterns are respected. Key Benefits Clear separation of ignore logic into one class. |
Beta Was this translation helpful? Give feedback.
-
Please also take into consideration to respect overrides of .gitignore in .clineignore (or .rooignore). It would be nice to un-ignore some directories that are ignored in .gitignore. My usecase is that I want Roo to write down some markdown files for it's own "memory", but don't want to have that in my git repo as it's temporary |
Beta Was this translation helpful? Give feedback.
-
@piotrpalek To be fair, thats what .git/info/exclude is for |
Beta Was this translation helpful? Give feedback.
-
implimented in #1367 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussed in #144
Originally posted by watzon December 16, 2024
I filed this as a feature request in the main Cline repo, but then I discovered Roo-Cline. It would be nice if the glob service respected .gitignore (and possibly a .clineignore) and didn't make any assumptions. Right now
pkg
is one of the auto ignored directories which poses a major issue for lots of Go repositories.Beta Was this translation helpful? Give feedback.
All reactions