@@ -11,6 +11,7 @@ import 'package:analyzer/dart/element/element.dart';
11
11
import 'package:analyzer/file_system/file_system.dart' ;
12
12
import 'package:analyzer/src/context/builder.dart' ;
13
13
import 'package:analyzer/src/dart/sdk/sdk.dart' ;
14
+ import 'package:analyzer/src/generated/engine.dart' ;
14
15
import 'package:analyzer/src/generated/java_io.dart' ;
15
16
import 'package:analyzer/src/generated/sdk.dart' ;
16
17
import 'package:analyzer/src/generated/source.dart' ;
@@ -118,12 +119,15 @@ class PubPackageBuilder implements PackageBuilder {
118
119
119
120
AnalysisContextCollection get contextCollection {
120
121
_contextCollection ?? = AnalysisContextCollectionImpl (
121
- includedPaths: [config.inputDir],
122
- // TODO(jcollins-g): should we pass excluded directories here instead of
123
- // handling it ourselves?
124
- resourceProvider: resourceProvider,
125
- sdkPath: config.sdkDir,
126
- );
122
+ includedPaths: [config.inputDir],
123
+ // TODO(jcollins-g): should we pass excluded directories here instead of
124
+ // handling it ourselves?
125
+ resourceProvider: resourceProvider,
126
+ sdkPath: config.sdkDir,
127
+ updateAnalysisOptions: (AnalysisOptionsImpl options) => options
128
+ ..hint = false
129
+ ..lint = false );
130
+
127
131
return _contextCollection;
128
132
}
129
133
0 commit comments