Skip to content

Commit

Permalink
Disable the import_internal_library analyzer check for dart:ui (flutt…
Browse files Browse the repository at this point in the history
…er#18009)

The latest version of dartanalyzer does not support disabling this for a
specific line of code.
  • Loading branch information
jason-simmons authored Apr 28, 2020
1 parent 45e6cfd commit 01cf8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 01cf8c3

Please sign in to comment.