File tree 2 files changed +33
-3
lines changed
lib/src/services/completion/yaml
test/src/services/completion/yaml
2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class AnalysisOptionsGenerator extends YamlCompletionGenerator {
26
26
AnalysisOptionsFile .errors: _ErrorProducer (),
27
27
AnalysisOptionsFile .exclude: EmptyProducer (),
28
28
AnalysisOptionsFile .language: MapProducer ({
29
- AnalysisOptionsFile .strictCasts: EmptyProducer (),
30
- AnalysisOptionsFile .strictInference: EmptyProducer (),
31
- AnalysisOptionsFile .strictRawTypes: EmptyProducer (),
29
+ AnalysisOptionsFile .strictCasts: BooleanProducer (),
30
+ AnalysisOptionsFile .strictInference: BooleanProducer (),
31
+ AnalysisOptionsFile .strictRawTypes: BooleanProducer (),
32
32
}),
33
33
AnalysisOptionsFile .optionalChecks: MapProducer ({
34
34
AnalysisOptionsFile .chromeOsManifestChecks: EmptyProducer (),
Original file line number Diff line number Diff line change @@ -98,6 +98,36 @@ analyzer:
98
98
assertSuggestion ('error' );
99
99
}
100
100
101
+ void test_analyzer_language_strictCasts () {
102
+ getCompletions ('''
103
+ analyzer:
104
+ language:
105
+ strict-casts: ^
106
+ ''' );
107
+ assertSuggestion ('false' );
108
+ assertSuggestion ('true' );
109
+ }
110
+
111
+ void test_analyzer_language_strictInference () {
112
+ getCompletions ('''
113
+ analyzer:
114
+ language:
115
+ strict-inference: ^
116
+ ''' );
117
+ assertSuggestion ('false' );
118
+ assertSuggestion ('true' );
119
+ }
120
+
121
+ void test_analyzer_language_strictRawTypes () {
122
+ getCompletions ('''
123
+ analyzer:
124
+ language:
125
+ strict-raw-types: ^
126
+ ''' );
127
+ assertSuggestion ('false' );
128
+ assertSuggestion ('true' );
129
+ }
130
+
101
131
void test_codeStyle () {
102
132
getCompletions ('''
103
133
code-style:
You can’t perform that action at this time.
0 commit comments