mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:51:30 +00:00
[dartdev] remove the disclaimer for dart fix
Change-Id: Id1a2cc48c30e50850d79e26d39783b5c8ea03b4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180040 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
d97be105f8
commit
dbe5039f15
|
@ -24,13 +24,7 @@ class FixCommand extends DartdevCommand {
|
|||
|
||||
This tool looks for and fixes analysis issues that have associated automated fixes.
|
||||
|
||||
To use the tool, run either ['dart fix --dry-run'] for a preview of the proposed changes for a project, or ['dart fix --apply'] to apply the changes.
|
||||
|
||||
[Note:] $disclaimer''';
|
||||
|
||||
static const disclaimer = 'The `fix` command is under development and '
|
||||
'subject to change before the next stable release. Feedback is welcome - '
|
||||
'please file at https://github.com/dart-lang/sdk/issues.';
|
||||
To use the tool, run either ['dart fix --dry-run'] for a preview of the proposed changes for a project, or ['dart fix --apply'] to apply the changes.''';
|
||||
|
||||
FixCommand({bool verbose = false}) : super(cmdName, cmdDescription) {
|
||||
argParser.addFlag('dry-run',
|
||||
|
@ -75,8 +69,6 @@ To use the tool, run either ['dart fix --dry-run'] for a preview of the proposed
|
|||
return 0;
|
||||
}
|
||||
|
||||
log.stdout('\n${log.ansi.emphasized('Note:')} $disclaimer\n');
|
||||
|
||||
var arguments = argResults.rest;
|
||||
var argumentCount = arguments.length;
|
||||
if (argumentCount > 1) {
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:cli_util/cli_logging.dart';
|
||||
import 'package:dartdev/src/commands/fix.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart';
|
||||
|
||||
|
@ -68,7 +67,6 @@ ${result.stderr}
|
|||
|
||||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains(FixCommand.disclaimer));
|
||||
expect(
|
||||
result.stdout, contains('Apply automated fixes to Dart source code.'));
|
||||
});
|
||||
|
@ -80,7 +78,6 @@ ${result.stderr}
|
|||
|
||||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains(FixCommand.disclaimer));
|
||||
expect(
|
||||
result.stdout, contains('Apply automated fixes to Dart source code.'));
|
||||
});
|
||||
|
@ -92,7 +89,6 @@ ${result.stderr}
|
|||
|
||||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains(FixCommand.disclaimer));
|
||||
expect(result.stdout, contains('Nothing to fix!'));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue