Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: lib/src/runner/configuration.dart

Issue 1829483002: Add support for a global configuration file. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/executable.dart ('k') | lib/src/runner/configuration/load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/configuration.dart
diff --git a/lib/src/runner/configuration.dart b/lib/src/runner/configuration.dart
index 5a3229e0dbfcfb848e65bb6fe3df2877bf31098e..bf21b0932a4f8888e37fd34ecb344bc013958e47 100644
--- a/lib/src/runner/configuration.dart
+++ b/lib/src/runner/configuration.dart
@@ -227,9 +227,13 @@ class Configuration {
/// Loads the configuration from [path].
///
+ /// If [global] is `true`, this restricts the configuration file to only rules
+ /// that are supported globally.
+ ///
/// Throws an [IOException] if [path] does not exist or cannot be read. Throws
/// a [FormatException] if its contents are invalid.
- factory Configuration.load(String path) => load(path);
+ factory Configuration.load(String path, {bool global: false}) =>
+ load(path, global: global);
factory Configuration({
bool help,
« no previous file with comments | « lib/src/executable.dart ('k') | lib/src/runner/configuration/load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698