Add an analysis_options.yaml file for test_runner.
I didn't realize they were being gitignored across the entire SDK repo.
I'm not sure why they are ignored at all, but based on the linked bug,
I think it's only a top-level analysis_options.yaml file that would
cause problems?
This change to the .gitignore file prohibits that case while still
allowing analysis_options.yaml files in subdirectories.
I very strongly want to have an options file for test_runner to ensure
that everyone on the team keeps it "no-implicit-cast" clean.
Change-Id: I9ceac507b08a063e71e2fe39501161723651e6b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106840
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/.gitignore b/.gitignore
index 8012a26..0216f06 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,16 +46,15 @@
.vscode
.history
+# https://github.com/Dart-Code/Dart-Code/issues/1295
+/analysis_options.yaml
+
# analysis server files
-analysis_options.yaml
compile_commands.json
# GDB files
.gdb_history
-# https://github.com/Dart-Code/Dart-Code/issues/1295
-analysis_options.yaml
-
# Built by chromebot and downloaded from Google Storage
client/tests/drt
diff --git a/pkg/test_runner/analysis_options.yaml b/pkg/test_runner/analysis_options.yaml
new file mode 100644
index 0000000..1a46de2
--- /dev/null
+++ b/pkg/test_runner/analysis_options.yaml
@@ -0,0 +1,3 @@
+analyzer:
+ strong-mode:
+ implicit-casts: false