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.
question from:
https://stackoverflow.com/questions/66065326/finding-that-keys-of-a-dict-are-used-in-the-codebase 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…