But then you're undermining your own hard compile time check, wherein specific files or areas of the project could fall through the cracks and continue to used supposedly "banned" functions.
I'd argue doing it globally but as warning would be a better alternative than doing it file by file.
I'd argue doing it globally but as warning would be a better alternative than doing it file by file.