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

Unified Diff: pkg/analyzer_cli/lib/src/options.dart

Issue 2716693003: enhance ContextBuilder getAnalysisOptions to handle lints (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/analyzer/test/src/context/builder_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/options.dart
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart
index d1550c30f5a889d3bc2a46bf4e023011b23e6ae7..fd805c69281431f5ae4f0a8c725b0b8271c16c52 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -163,7 +163,7 @@ class CommandLineOptions {
enableTypeChecks = args['enable_type_checks'],
hintsAreFatal = args['fatal-hints'],
ignoreUnrecognizedFlags = args['ignore-unrecognized-flags'],
- lints = args['lints'],
+ lints = args[lintsFlag],
log = args['log'],
machineFormat = args['format'] == 'machine',
perfReport = args['x-perf-report'],
@@ -297,8 +297,6 @@ class CommandLineOptions {
help: 'Print the analyzer version.',
defaultsTo: false,
negatable: false)
- ..addFlag('lints',
- help: 'Show lint results.', defaultsTo: false, negatable: false)
..addFlag('no-hints',
help: 'Do not show hint results.',
defaultsTo: false,
« no previous file with comments | « pkg/analyzer/test/src/context/builder_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698