In https://github.com/dart-lang/sdk/issues/36064 we stopped sending errors for excluded files, so this setting should no longer be necessary.