Non-platform-safe usermods are filtered out before validation runs; so this check is no longer functional.
PlatformIO doesn't clean out the libdir when usermods are disabled, so they still appear in the LibBuilders() set. Ensure that we validate only usermods that were actually deps for the build.
Fix whitespace and remove unused imports
Perform validation for external modules, too.