Exclude codegen/lib/main.dart from static analysis (#52829)

This commit is contained in:
Sam Rawlins
2020-03-18 13:16:02 -07:00
committed by GitHub
parent ea67a65bde
commit 5d0e87ce38
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
# Take our settings from the repo's main analysis_options.yaml file, but add
# an exclude for the lib/main.dart file, which requires a code-generated file,
# in order to be properly analyzed.
include: ../../../analysis_options.yaml
analyzer:
exclude:
- lib/main.dart

View File

@@ -4,7 +4,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'message.dart' as generated; // ignore: uri_does_not_exist
import 'message.dart' as generated;
Future<void> main() async {
enableFlutterDriverExtension();