Suppress warning for env-specific files

Resolves gh-872

Opening the PR because we have good early results, but this still needs a little vetting before being merged.

I may take a crack at writing a unit test for it if I can find the time.