When maintainer mode is enabled, check for single header includes as well as deprecated flags (#557070).