Skip to content

Commit 84b8800

Browse files
authored
The wonders of in-IDE spell checking. Also ask for newest lints (no changes needed).
1 parent b9ca055 commit 84b8800

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

pkgs/package_config/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
- Based on new JSON file format with more content.
5454
- This version includes all the new functionality intended for a 2.0.0
5555
version, as well as the, now deprecated, version 1 functionality.
56-
When we release 2.0.0, the deprectated functionality will be removed.
56+
When we release 2.0.0, the deprecated functionality will be removed.
5757

5858
## 1.1.0
5959

pkgs/package_config/lib/src/discovery.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final Uri parentPath = Uri(path: '..');
3333
/// Returns `null` if no configuration was found. If a configuration
3434
/// is needed, then the caller can supply [PackageConfig.empty].
3535
///
36-
/// If [minVersion] is greated than 1, `.packages` files are ignored.
36+
/// If [minVersion] is greater than 1, `.packages` files are ignored.
3737
/// If [minVersion] is greater than the version read from the
3838
/// `package_config.json` file, it too is ignored.
3939
Future<PackageConfig?> findPackageConfig(Directory baseDirectory,
@@ -46,7 +46,7 @@ Future<PackageConfig?> findPackageConfig(Directory baseDirectory,
4646
do {
4747
// Check for $cwd/.packages
4848
var packageConfig =
49-
await findPackagConfigInDirectory(directory, minVersion, onError);
49+
await findPackageConfigInDirectory(directory, minVersion, onError);
5050
if (packageConfig != null) return packageConfig;
5151
if (!recursive) break;
5252
// Check in parent directories.
@@ -113,10 +113,10 @@ Future<PackageConfig?> findPackageConfigUri(
113113
/// a best-effort attempt is made to return a package configuration.
114114
/// This may be the empty package configuration.
115115
///
116-
/// If [minVersion] is greated than 1, `.packages` files are ignored.
116+
/// If [minVersion] is greater than 1, `.packages` files are ignored.
117117
/// If [minVersion] is greater than the version read from the
118118
/// `package_config.json` file, it too is ignored.
119-
Future<PackageConfig?> findPackagConfigInDirectory(Directory directory,
119+
Future<PackageConfig?> findPackageConfigInDirectory(Directory directory,
120120
int minVersion, void Function(Object error) onError) async {
121121
var packageConfigFile = await checkForPackageConfigJsonFile(directory);
122122
if (packageConfigFile != null) {

pkgs/package_config/lib/src/package_config.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class PackageConfig {
3434
///
3535
/// The package's root ([Package.root]) and package-root
3636
/// ([Package.packageUriRoot]) paths must satisfy a number of constraints
37-
/// We say that one path (which we know ends with a `/` charater)
37+
/// We say that one path (which we know ends with a `/` character)
3838
/// is inside another path, if the latter path is a prefix of the former path,
3939
/// including the two paths being the same.
4040
///
@@ -159,7 +159,7 @@ abstract class PackageConfig {
159159

160160
/// Look up a package by name.
161161
///
162-
/// Returns the [Package] fron [packages] with [packageName] as
162+
/// Returns the [Package] from [packages] with [packageName] as
163163
/// [Package.name]. Returns `null` if the package is not available in the
164164
/// current configuration.
165165
Package? operator [](String packageName);
@@ -377,7 +377,7 @@ abstract class LanguageVersion implements Comparable<LanguageVersion> {
377377

378378
/// An *invalid* language version.
379379
///
380-
/// Stored in a [Package] when the orginal language version string
380+
/// Stored in a [Package] when the original language version string
381381
/// was invalid and a `onError` handler was passed to the parser
382382
/// which did not throw on an error.
383383
abstract class InvalidLanguageVersion implements LanguageVersion {

pkgs/package_config/lib/src/package_config_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class TriePackageTree implements PackageTree {
436436
}
437437

438438
// For internal reasons we allow this (for now). One should still never do
439-
// it thouh.
439+
// it though.
440440
// 3) The new package is inside the packageUriRoot of existing package.
441441
if (_disallowPackagesInsidePackageUriRoot) {
442442
if (_beginsWith(0, existingPackage.packageUriRoot.toString(),

pkgs/package_config/lib/src/packages_file.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ PackageConfig parse(
114114
}
115115
if (packageNames.contains(packageName)) {
116116
onError(PackageConfigFormatException(
117-
'Same package name occured more than once', source, start));
117+
'Same package name occurred more than once', source, start));
118118
continue;
119119
}
120120
var rootUri = packageLocation;

pkgs/package_config/lib/src/util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ bool hasAbsolutePath(Uri uri) =>
164164
/// the [baseUri], or if there is no overlap in the paths of the
165165
/// two URIs at all, the [uri] is returned as-is.
166166
///
167-
/// Otherwise the result is a path-only URI which satsifies
167+
/// Otherwise the result is a path-only URI which satisfies
168168
/// `baseUri.resolveUri(result) == uri`,
169169
///
170170
/// The `baseUri` must be absolute.

pkgs/package_config/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ dependencies:
1010
path: ^1.8.0
1111

1212
dev_dependencies:
13-
dart_flutter_team_lints: ^2.0.0
13+
dart_flutter_team_lints: ^2.1.0
1414
test: ^1.16.0

pkgs/package_config/test/package_config_impl_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void main() {
126126
});
127127

128128
group('package config', () {
129-
test('emtpy', () {
129+
test('empty', () {
130130
var empty = PackageConfig([], extraData: unique);
131131
expect(empty.version, 2);
132132
expect(empty.packages, isEmpty);

0 commit comments

Comments
 (0)