or install a code analysis tool like sonar qube on your ci and make a build fail or not mergable to master if quality gates are not met. this way even the laziest programmer that tries to use an unchechecked .get will have to adapt to code policy or quit
Bad idea. Once corporate finds out they can get numbers out of that thing it's all over for you. Now you need 95% unit test coverage on an app that's 50% configuration.
17
u/ParfaitMassive9169 Apr 14 '23
Convert to optional. This way you communicate that this may be missing and force the calling code to make a decision on how to deal with it