diff --git a/pkg/dartdev/lib/src/commands/fix.dart b/pkg/dartdev/lib/src/commands/fix.dart index 975c2c76cd1..373bd68ca0d 100644 --- a/pkg/dartdev/lib/src/commands/fix.dart +++ b/pkg/dartdev/lib/src/commands/fix.dart @@ -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) { diff --git a/pkg/dartdev/test/commands/fix_test.dart b/pkg/dartdev/test/commands/fix_test.dart index b3d29409e3b..69b11c9ecbc 100644 --- a/pkg/dartdev/test/commands/fix_test.dart +++ b/pkg/dartdev/test/commands/fix_test.dart @@ -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!')); });