From b5827f3b05d437a5bfc3d9675c6c35be2360476a Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Wed, 29 Nov 2023 18:23:21 +0100 Subject: [PATCH] [infra] Hide TODOs from problems view in VSCode (#837) Neat trick from https://dart-review.googlesource.com/c/sdk/+/338589. --- pkgs/ffigen/analysis_options.yaml | 2 ++ pkgs/jni/analysis_options.yaml | 2 ++ pkgs/jnigen/analysis_options.yaml | 2 ++ pkgs/native_assets_builder/analysis_options.yaml | 5 ++--- pkgs/native_assets_cli/analysis_options.yaml | 2 ++ pkgs/native_toolchain_c/analysis_options.yaml | 2 ++ 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/ffigen/analysis_options.yaml b/pkgs/ffigen/analysis_options.yaml index 80574fd0f..0ba641e24 100644 --- a/pkgs/ffigen/analysis_options.yaml +++ b/pkgs/ffigen/analysis_options.yaml @@ -5,6 +5,8 @@ include: package:lints/recommended.yaml analyzer: + errors: + todo: ignore exclude: - 'test/**_expected*' # Goldens cannot be generated outside MacOS causing analysis errors. diff --git a/pkgs/jni/analysis_options.yaml b/pkgs/jni/analysis_options.yaml index 5c89b5804..9edc29244 100644 --- a/pkgs/jni/analysis_options.yaml +++ b/pkgs/jni/analysis_options.yaml @@ -1,6 +1,8 @@ include: package:flutter_lints/flutter.yaml analyzer: + errors: + todo: ignore exclude: [build/**, third_party/**] language: strict-raw-types: true diff --git a/pkgs/jnigen/analysis_options.yaml b/pkgs/jnigen/analysis_options.yaml index b32c3d098..54623dc10 100644 --- a/pkgs/jnigen/analysis_options.yaml +++ b/pkgs/jnigen/analysis_options.yaml @@ -5,6 +5,8 @@ include: package:lints/recommended.yaml analyzer: + errors: + todo: ignore exclude: [build/**, example/**] language: strict-raw-types: true diff --git a/pkgs/native_assets_builder/analysis_options.yaml b/pkgs/native_assets_builder/analysis_options.yaml index 756a4a80d..f1404fd46 100644 --- a/pkgs/native_assets_builder/analysis_options.yaml +++ b/pkgs/native_assets_builder/analysis_options.yaml @@ -1,11 +1,10 @@ include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: + errors: + todo: ignore language: strict-raw-types: true - exclude: - # TODO(https://github.com/dart-lang/ecosystem/issues/150): Remove this. - - test/data/ linter: rules: diff --git a/pkgs/native_assets_cli/analysis_options.yaml b/pkgs/native_assets_cli/analysis_options.yaml index f69a8643a..f1404fd46 100644 --- a/pkgs/native_assets_cli/analysis_options.yaml +++ b/pkgs/native_assets_cli/analysis_options.yaml @@ -1,6 +1,8 @@ include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: + errors: + todo: ignore language: strict-raw-types: true diff --git a/pkgs/native_toolchain_c/analysis_options.yaml b/pkgs/native_toolchain_c/analysis_options.yaml index f69a8643a..f1404fd46 100644 --- a/pkgs/native_toolchain_c/analysis_options.yaml +++ b/pkgs/native_toolchain_c/analysis_options.yaml @@ -1,6 +1,8 @@ include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: + errors: + todo: ignore language: strict-raw-types: true