fix missing spaces in adjacent strings (#49159)

This commit is contained in:
Alexandre Ardhuin
2020-01-22 01:43:03 +01:00
committed by Flutter GitHub Bot
parent def2205ee4
commit 3800bb7b10
55 changed files with 141 additions and 139 deletions

View File

@@ -642,7 +642,7 @@ ${globals.terminal.bolden('Consuming the Module')}
''');
}
globals.printStatus('To learn more, visit https://flutter.dev/go/build-aar''');
globals.printStatus('To learn more, visit https://flutter.dev/go/build-aar');
}
String _hex(List<int> bytes) {
@@ -877,7 +877,7 @@ String _getLocalArtifactVersion(String pomPath) {
);
} on FileSystemException {
throwToolExit(
'Error reading $pomPath. Please ensure that you have read permission to this'
'Error reading $pomPath. Please ensure that you have read permission to this '
'file and try again.');
}
final Iterable<xml.XmlElement> project = document.findElements('project');

View File

@@ -236,8 +236,7 @@ final GradleHandledError licenseNotAcceptedHandler = GradleHandledError(
bool shouldBuildPluginAsAar,
}) async {
const String licenseNotAcceptedMatcher =
r'You have not accepted the license agreements of the following SDK components:'
r'\s*\[(.+)\]';
r'You have not accepted the license agreements of the following SDK components:\s*\[(.+)\]';
final RegExp licenseFailure = RegExp(licenseNotAcceptedMatcher, multiLine: true);
assert(licenseFailure != null);

View File

@@ -110,7 +110,7 @@ class CodeGeneratingKernelCompiler implements KernelCompiler {
List<String> dartDefines,
}) async {
if (fileSystemRoots != null || fileSystemScheme != null || depFilePath != null || targetModel != null || sdkRoot != null || packagesPath != null) {
globals.printTrace('fileSystemRoots, fileSystemScheme, depFilePath, targetModel,'
globals.printTrace('fileSystemRoots, fileSystemScheme, depFilePath, targetModel, '
'sdkRoot, packagesPath are not supported when using the experimental '
'build* pipeline');
}

View File

@@ -47,7 +47,7 @@ class BuildAarCommand extends BuildSubCommand {
)
..addOption(
'output-dir',
help: 'The absolute path to the directory where the repository is generated.'
help: 'The absolute path to the directory where the repository is generated. '
'By default, this is \'<current-directory>android/build\'. ',
);
}

View File

@@ -28,7 +28,7 @@ class BuildWebCommand extends BuildSubCommand {
argParser.addFlag('csp',
defaultsTo: false,
negatable: false,
help: 'Disable dynamic generation of code in the generated output.'
help: 'Disable dynamic generation of code in the generated output. '
'This is necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).'
);
}

View File

@@ -857,8 +857,10 @@ String _validateProjectDir(String dirPath, { String flutterRoot, bool overwrite
// If the destination directory is actually a file, then we refuse to
// overwrite, on the theory that the user probably didn't expect it to exist.
if (globals.fs.isFileSync(dirPath)) {
return "Invalid project name: '$dirPath' - refers to an existing file."
'${overwrite ? ' Refusing to overwrite a file with a directory.' : ''}';
final String message = "Invalid project name: '$dirPath' - refers to an existing file.";
return overwrite
? '$message Refusing to overwrite a file with a directory.'
: message;
}
if (overwrite) {

View File

@@ -52,7 +52,7 @@ class IdeConfigCommand extends FlutterCommand {
'missing. If --overwrite is specified, will revert existing files to '
'the template versions, reset the module list, and return configuration '
'settings to the template versions.\n\n'
'This command is intended for Flutter developers to help them set up the'
'This command is intended for Flutter developers to help them set up the '
"Flutter tree for development in an IDE. It doesn't affect other projects.\n\n"
'Currently, IntelliJ is the default (and only) IDE that may be configured.';

View File

@@ -32,7 +32,7 @@ class ScreenshotCommand extends FlutterCommand {
valueHelp: 'URI',
help: 'The observatory URI to connect to.\n'
'This is required when --$_kType is "$_kSkiaType" or "$_kRasterizerType".\n'
'To find the observatory URI, use "flutter run" and look for'
'To find the observatory URI, use "flutter run" and look for '
'"An Observatory ... is available at" in the output.',
);
argParser.addOption(

View File

@@ -61,7 +61,7 @@ class UpdatePackagesCommand extends FlutterCommand {
)
..addFlag(
'consumer-only',
help: 'Only prints the dependency graph that is the transitive closure'
help: 'Only prints the dependency graph that is the transitive closure '
'that a consumer of the Flutter SDK will observe (When combined '
'with transitive-closure)',
defaultsTo: false,

View File

@@ -163,8 +163,8 @@ class UpgradeCommandRunner {
} on ProcessException catch (error) {
throwToolExit(
'The tool could not verify the status of the current flutter checkout. '
'This might be due to git not being installed or an internal error.'
'If it is okay to ignore potential local changes, then re-run this'
'This might be due to git not being installed or an internal error. '
'If it is okay to ignore potential local changes, then re-run this '
'command with --force.'
'\nError: $error.'
);
@@ -212,7 +212,7 @@ class UpgradeCommandRunner {
} on ProcessException catch (error) {
throwToolExit(
'Unable to upgrade Flutter: The tool could not update to the version $tag. '
'This may be due to git not being installed or an internal error.'
'This may be due to git not being installed or an internal error. '
'Please ensure that git is installed on your computer and retry again.'
'\nError: $error.'
);

View File

@@ -74,8 +74,8 @@ class VersionCommand extends FlutterCommand {
if (targetVersion < minSupportedVersion) {
if (!boolArg('force')) {
globals.printError(
'Version command is not supported in $targetVersion and it is supported since version $minSupportedVersion'
'which means if you switch to version $minSupportedVersion then you can not use version command.'
'Version command is not supported in $targetVersion and it is supported since version $minSupportedVersion '
'which means if you switch to version $minSupportedVersion then you can not use version command. '
'If you really want to switch to version $targetVersion, please use `--force` flag: `flutter version --force $targetVersion`.'
);
return const FlutterCommandResult(ExitStatus.success);

View File

@@ -40,7 +40,7 @@ class Utf8Decoder extends cnv.Utf8Decoder {
if (reportErrors && result.contains('\u{FFFD}')) {
throwToolExit(
'Bad UTF-8 encoding found while decoding string: $result. '
'The Flutter team would greatly appreciate if you could file a bug or leave a'
'The Flutter team would greatly appreciate if you could file a bug or leave a '
'comment on the issue https://github.com/flutter/flutter/issues/15646.\n'
'The source bytes were:\n$codeUnits\n\n');
}

View File

@@ -38,7 +38,7 @@ Future<void> validateBitcode(BuildMode buildMode, TargetPlatform targetPlatform)
throwToolExit(
'The Flutter.framework at $flutterFrameworkPath was built '
'with "${engineClangVersion ?? 'unknown'}", but the current version '
'of clang is "$clangVersion". This will result in failures when trying to'
'of clang is "$clangVersion". This will result in failures when trying to '
'archive an IPA. To resolve this issue, update your version of Xcode to '
'at least $engineClangSemVer.',
);

View File

@@ -195,7 +195,7 @@ class MDnsObservatoryDiscovery {
'The mDNS query for an attached iOS device failed. It may '
'be necessary to disable the "Personal Hotspot" on the device, and '
'to ensure that the "Disable unless needed" setting is unchecked '
'under System Preferences > Network > iPhone USB.'
'under System Preferences > Network > iPhone USB. '
'See https://github.com/flutter/flutter/issues/46698 for details.'
);
break;

View File

@@ -187,8 +187,8 @@ class Plugin {
if (usesOldPluginFormat && usesNewPluginFormat) {
const String errorMessage =
'The flutter.plugin.platforms key cannot be used in combination with the old'
'flutter.plugin.{androidPackage,iosPrefix,pluginClass} keys.'
'The flutter.plugin.platforms key cannot be used in combination with the old '
'flutter.plugin.{androidPackage,iosPrefix,pluginClass} keys. '
'See: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin';
return <String>[errorMessage];
}

View File

@@ -229,7 +229,7 @@ abstract class FlutterCommand extends Command<void> {
/// Adds options for connecting to the Dart VM observatory port.
void usesPortOptions() {
argParser.addOption(observatoryPortOption,
help: '(deprecated use host-vmservice-port instead)'
help: '(deprecated use host-vmservice-port instead) '
'Listen to the given port for an observatory debugger connection.\n'
'Specifying port 0 (the default) will find a random free port.',
);
@@ -368,11 +368,11 @@ abstract class FlutterCommand extends Command<void> {
argParser.addFlag('shrink',
negatable: true,
defaultsTo: true,
help: 'Whether to enable code shrinking on release mode.'
help: 'Whether to enable code shrinking on release mode. '
'When enabling shrinking, you also benefit from obfuscation, '
'which shortens the names of your app’s classes and members, '
'and optimization, which applies more aggressive strategies to '
'further reduce the size of your app.'
'further reduce the size of your app. '
'To learn more, see: https://developer.android.com/studio/build/shrink-code',
);
}