enable lint prefer_single_quotes (#12665)
This commit is contained in:
committed by
GitHub
parent
b07ea41954
commit
1fce14a31c
@@ -47,7 +47,7 @@ $fontsSection
|
||||
}
|
||||
|
||||
void writePackagesFile(String packages) {
|
||||
fs.file(".packages")
|
||||
fs.file('.packages')
|
||||
..createSync()
|
||||
..writeAsStringSync(packages);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ $assetsSection
|
||||
}
|
||||
|
||||
void writePackagesFile(String packages) {
|
||||
fs.file(".packages")
|
||||
fs.file('.packages')
|
||||
..createSync()
|
||||
..writeAsStringSync(packages);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ $assetsSection
|
||||
expectedAssetManifest,
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
|
||||
testUsingContext("One asset is bundled when the package has one asset, listed in the app's pubspec", () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
@@ -180,7 +180,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and lists the asset in its pubspec", () async {
|
||||
testUsingContext('One asset and its variant are bundled when the package has an asset and a variant, and lists the asset in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile('pubspec.yaml', 'test');
|
||||
@@ -204,7 +204,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and the app lists the asset in its pubspec", () async {
|
||||
testUsingContext('One asset and its variant are bundled when the package has an asset and a variant, and the app lists the asset in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile(
|
||||
@@ -231,7 +231,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("Two assets are bundled when the package has and lists two assets in its pubspec", () async {
|
||||
testUsingContext('Two assets are bundled when the package has and lists two assets in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile('pubspec.yaml', 'test');
|
||||
@@ -288,7 +288,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("Two assets are bundled when two packages each have and list an asset their pubspec", () async {
|
||||
testUsingContext('Two assets are bundled when two packages each have and list an asset their pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile(
|
||||
@@ -323,7 +323,7 @@ $assetsSection
|
||||
expectedAssetManifest,
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
|
||||
testUsingContext("Two assets are bundled when two packages each have an asset, listed in the app's pubspec", () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
@@ -363,7 +363,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset is bundled when the app depends on a package, listing in its pubspec an asset from another package", () async {
|
||||
testUsingContext('One asset is bundled when the app depends on a package, listing in its pubspec an asset from another package', () async {
|
||||
establishFlutterRoot();
|
||||
writePubspecFile(
|
||||
'pubspec.yaml',
|
||||
|
||||
@@ -23,7 +23,7 @@ void main() {
|
||||
// path separator.
|
||||
Cache.flutterRoot = getFlutterRoot();
|
||||
|
||||
fs.file("pubspec.yaml")
|
||||
fs.file('pubspec.yaml')
|
||||
..createSync()
|
||||
..writeAsStringSync(
|
||||
'''
|
||||
@@ -36,7 +36,7 @@ flutter:
|
||||
- a/b/c/foo
|
||||
'''
|
||||
);
|
||||
fs.file(".packages")..createSync();
|
||||
fs.file('.packages')..createSync();
|
||||
|
||||
final List<String> assets = <String>[
|
||||
'a/b/c/foo',
|
||||
|
||||
@@ -261,7 +261,7 @@ void main() {
|
||||
Cache.flutterRoot = '../..';
|
||||
final CreateCommand command = new CreateCommand();
|
||||
final CommandRunner<Null> runner = createTestCommandRunner(command);
|
||||
final File existingFile = fs.file("${projectDir.path.toString()}/bad");
|
||||
final File existingFile = fs.file('${projectDir.path.toString()}/bad');
|
||||
if (!existingFile.existsSync())
|
||||
existingFile.createSync(recursive: true);
|
||||
expect(
|
||||
|
||||
@@ -277,12 +277,12 @@ class MemoryIOSink implements IOSink {
|
||||
}
|
||||
|
||||
@override
|
||||
void writeln([Object obj = ""]) {
|
||||
void writeln([Object obj = '']) {
|
||||
add(encoding.encode('$obj\n'));
|
||||
}
|
||||
|
||||
@override
|
||||
void writeAll(Iterable<dynamic> objects, [String separator = ""]) {
|
||||
void writeAll(Iterable<dynamic> objects, [String separator = '']) {
|
||||
bool addSeparator = false;
|
||||
for (dynamic object in objects) {
|
||||
if (addSeparator) {
|
||||
|
||||
Reference in New Issue
Block a user