unused-code / unused

A tool to identify potentially unused code.

Home Page:https://unused.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Parse custom tags files

jeromedalbert opened this issue · comments

I like to name my tags file .tags on my projects, so it doesn't show in ls. For example I have it configured in Vim with set tags=./.tags;.

Would it be possible to parse custom tags files, maybe with an option to specify a custom file?

@jeromedalbert yes, I think this should be possible; if you have experience in Rust (or are interested in learning), is this something you'd want to tackle? No worries if the answer is "no" 😄 , but I've been offering in case folks are interested.

I have no Rust experience unfortunately. I don't want to spend time learning it unless someone is willing to mentor me for accelerated learning so I know just enough to be dangerous around this codebase. 😅

I guess it would boil down to making

filenames.extend(cwd_tags_paths(current_dir));

more configurable?

@jeromedalbert @julianrubisch I've gone ahead and cut version 0.4.0 of unused, which allows you to provide a custom path to the tags file; if you follow the upgrade instructions, you'll be able to use the flag introduced in #45 🎉

Awesome! Thanks!

Thank you so much!