I am looking for an automated tool which can alter the code based on certain conditions. Do we have any tool for removing all occurrences of a given variable in a git repo?
Before
if(isAccepted) {
print("hello");
} else {
print("world");
}
After
print("world");