Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
221 views
in Technique[技术] by (71.8m points)

shell - 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.

question from:https://stackoverflow.com/questions/66065326/finding-that-keys-of-a-dict-are-used-in-the-codebase

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...