Disable the import_internal_library analyzer check for dart:ui (flutter/engine#18009)

The latest version of dartanalyzer does not support disabling this for a
specific line of code.
This commit is contained in:
Jason Simmons
2020-04-28 13:45:47 -07:00
committed by GitHub
parent 62a64ac11e
commit 8b4d81c16d
2 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ analyzer:
native_function_body_in_non_sdk_code: ignore
# allow having TODOs in the code
todo: ignore
# allow dart:ui to import dart:_internal
import_internal_library: ignore
# `flutter analyze` (without `--watch`) just ignores directories
# that contain a .dartignore file, and this file does not have any
# effect on what files are actually analyzed.

View File

@@ -12,7 +12,7 @@
// @dart = 2.6
library dart.ui;
import 'dart:_internal' hide Symbol; // ignore: import_internal_library, unused_import
import 'dart:_internal' hide Symbol; // ignore: unused_import
import 'dart:async';
import 'dart:collection' as collection;
import 'dart:convert';