Enable avoid_escaping_inner_quotes lint (#81153)

This commit is contained in:
Hattomo (TomohiroHattori)
2021-05-20 01:54:02 +09:00
committed by GitHub
parent 0c5f2f4ab9
commit 08a70e7ac8
81 changed files with 192 additions and 192 deletions

View File

@@ -74,7 +74,7 @@ Future<double> _runBasicStandardLarge(BasicMessageChannel<Object> basicStandard,
if (size != largeBuffer.length * count) {
throw Exception(
'There is an error with the echo channel, the results don\'t add up: $size',
"There is an error with the echo channel, the results don't add up: $size",
);
}
@@ -94,7 +94,7 @@ Future<double> _runBasicBinary(BasicMessageChannel<ByteData> basicBinary,
watch.stop();
if (size != buffer.lengthInBytes * count) {
throw Exception(
'There is an error with the echo channel, the results don\'t add up: $size',
"There is an error with the echo channel, the results don't add up: $size",
);
}

View File

@@ -27,23 +27,23 @@ void main() {
'In sample starting at dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:117:bool? _visible = true;',
'>>> info: Use late for private members with non-nullable type (use_late_for_private_fields_and_variables)',
'In sample starting at dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:117: child: Text(title),',
'>>> error: The final variable \'title\' can\'t be read because it is potentially unassigned at this point (read_potentially_unassigned_final)',
">>> error: The final variable 'title' can't be read because it is potentially unassigned at this point (read_potentially_unassigned_final)",
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:30:9: new Opacity(',
'>>> info: Unnecessary new keyword (unnecessary_new)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:62:9: new Opacity(',
'>>> info: Unnecessary new keyword (unnecessary_new)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:95:9: const text0 = Text(\'Poor wandering ones!\');',
"dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:95:9: const text0 = Text('Poor wandering ones!');",
'>>> info: Specify type annotations (always_specify_types)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:103:9: const text1 = _Text(\'Poor wandering ones!\');',
"dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:103:9: const text1 = _Text('Poor wandering ones!');",
'>>> info: Specify type annotations (always_specify_types)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:111:9: final String? bar = \'Hello\';',
"dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:111:9: final String? bar = 'Hello';",
'>>> info: Prefer const over final for declarations (prefer_const_declarations)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:111:23: final String? bar = \'Hello\';',
"dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:111:23: final String? bar = 'Hello';",
'>>> info: Use a non-nullable type for a final variable initialized with a non-nullable value (unnecessary_nullable_for_final_variable_declarations)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:112:9: final int foo = null;',
'>>> info: Prefer const over final for declarations (prefer_const_declarations)',
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:112:25: final int foo = null;',
'>>> error: A value of type \'Null\' can\'t be assigned to a variable of type \'int\' (invalid_assignment)',
">>> error: A value of type 'Null' can't be assigned to a variable of type 'int' (invalid_assignment)",
'',
'Found 2 sample code errors.',
''

View File

@@ -48,7 +48,7 @@ Future<void> main() async {
);
});
section('Create plugin that doesn\'t support android project');
section("Create plugin that doesn't support android project");
await inDirectory(tempDir, () async {
await flutter(

View File

@@ -26,7 +26,7 @@ Future<void> main() async {
]);
final File apk = File('${flutterProject.rootPath}/build/app/outputs/flutter-apk/app-debug.apk');
if (!apk.existsSync()) {
throw TaskResult.failure('Expected ${apk.path} to exist, but it doesn\'t');
throw TaskResult.failure("Expected ${apk.path} to exist, but it doesn't");
}
// https://github.com/flutter/flutter/issues/72185
await checkApkContainsMethods(apk, <String>[

View File

@@ -33,7 +33,7 @@ Future<void> main() async {
);
if (!pluginMainKotlinFile.existsSync()) {
throw TaskResult.failure('Expected ${pluginMainKotlinFile.path} to exist, but it doesn\'t');
throw TaskResult.failure("Expected ${pluginMainKotlinFile.path} to exist, but it doesn't");
}
section('add java 8 feature');

View File

@@ -292,7 +292,7 @@ class BlinkTraceSummary {
Exception noMeasuredFramesFound() => Exception(
'No measured frames found in benchmark tracing data. This likely '
'indicates a bug in the benchmark. For example, the benchmark failed '
'to pump enough frames. It may also indicate a change in Chrome\'s '
"to pump enough frames. It may also indicate a change in Chrome's "
'tracing data format. Check if Chrome version changed recently and '
'adjust the parsing code accordingly.',
);

View File

@@ -56,7 +56,7 @@ class CodesignCommand extends Command<void> {
argParser.addOption(
kUpstream,
defaultsTo: FrameworkRepository.defaultUpstream,
help: 'The git remote URL to use as the Flutter framework\'s upstream.',
help: "The git remote URL to use as the Flutter framework's upstream.",
);
argParser.addOption(
kRevision,

View File

@@ -377,7 +377,7 @@ abstract class Repository {
'commit',
'--allow-empty',
'-m',
'\'$message\'',
"'$message'",
],
'create an empty commit',
workingDirectory: checkoutDirectory.path,