OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:boolean_selector/boolean_selector.dart'; | 7 import 'package:boolean_selector/boolean_selector.dart'; |
8 import 'package:glob/glob.dart'; | 8 import 'package:glob/glob.dart'; |
9 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
10 import 'package:source_span/source_span.dart'; | 10 import 'package:source_span/source_span.dart'; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 /// Loads runner configuration (but not test configuration). | 125 /// Loads runner configuration (but not test configuration). |
126 /// | 126 /// |
127 /// If [_runnerConfig] is `false`, this will error if there are any | 127 /// If [_runnerConfig] is `false`, this will error if there are any |
128 /// runner-level configuration fields. | 128 /// runner-level configuration fields. |
129 Configuration _loadRunnerConfig() { | 129 Configuration _loadRunnerConfig() { |
130 if (!_runnerConfig) { | 130 if (!_runnerConfig) { |
131 _disallow("reporter"); | 131 _disallow("reporter"); |
132 _disallow("pub_serve"); | 132 _disallow("pub_serve"); |
133 _disallow("concurrency"); | 133 _disallow("concurrency"); |
| 134 _disallow("names"); |
| 135 _disallow("plain_names"); |
134 _disallow("platforms"); | 136 _disallow("platforms"); |
135 _disallow("paths"); | 137 _disallow("paths"); |
136 _disallow("filename"); | 138 _disallow("filename"); |
137 _disallow("add_presets"); | 139 _disallow("add_presets"); |
138 _disallow("include_tags"); | 140 _disallow("include_tags"); |
139 _disallow("exclude_tags"); | 141 _disallow("exclude_tags"); |
140 return Configuration.empty; | 142 return Configuration.empty; |
141 } | 143 } |
142 | 144 |
143 var reporter = _getString("reporter"); | 145 var reporter = _getString("reporter"); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 if (!_document.containsKey(field)) return; | 337 if (!_document.containsKey(field)) return; |
336 _error("$field isn't supported here.", field); | 338 _error("$field isn't supported here.", field); |
337 } | 339 } |
338 | 340 |
339 /// Throws a [SourceSpanFormatException] with [message] about [field]. | 341 /// Throws a [SourceSpanFormatException] with [message] about [field]. |
340 void _error(String message, String field) { | 342 void _error(String message, String field) { |
341 throw new SourceSpanFormatException( | 343 throw new SourceSpanFormatException( |
342 message, _document.nodes[field].span, _source); | 344 message, _document.nodes[field].span, _source); |
343 } | 345 } |
344 } | 346 } |
OLD | NEW |