Inspired by real life events, I'm interested in seeing if it's possible to get a linter to sanity check SQL in reviews. Frequently the SQL is a string literal, albeit possibly spread over multiple lines using C/C++ adjacent string literal magic, so I think it's reasonably straightforward to extract the string. (At least when using clang and its plugin/AST matcher magic.) And I believe we now have a bunch of linting running against phabricator, so perhaps this can be added.
This obviously isn't the right component to track actual implementation, but since I'm also not ready to pursue this today, I'm putting this here in toolkit::storage and can move it later.
Looking into how things work, "mach lint" and "mach static-analysis" are magically run by daemons who then comment on the phabricator review. Since we already use eslint for JS and it's very extensible, that seems like the clear choice for JS. Since the string literal parsing is already a hassle, static-analysis sounds like the right check for C++.
needinfo-ing myself, but others should feel free to jump in!
1: Which was the source of another real life event error.