3f29cf4b7d
Changes the behavior of the `analysisOptionsContent` function so that unless `propagateLinterExceptions: false` is passed to it, it creates an analysis options file that specifies a `true` value for `propagate-linter-exceptions`. This ensures that when tests that use `package:analyzer_testing` are run, exceptions that occur while processing lint rules will cause the test to fail. Previously, such exceptions would be silently swallowed by the analyzer, and the test would pass. Change-Id: I6a6a69643d76cf15d801eab5c4ce6a77c7dbac96 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/460220 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>