2021年2月5日星期五

Finding that keys of a dict are used in the codebase

I would like to know if they is any programmatic way to check that all keys of a specific dict are used at least once in the codebase.

The goal: ensure that for each PR none of the keys used for the analytics has been erased. And create a commit-hook out of it. Because it happened too many times already.

I use VScode, so if it's a specific plugin it's also fine.

I wanted to do that with a simple shell script but I'm not sure I'm even in the right direction.

https://stackoverflow.com/questions/66065326/finding-that-keys-of-a-dict-are-used-in-the-codebase February 05, 2021 at 10:46PM

没有评论:

发表评论