custom_lint_builder
library
Functions
-
encodePrioritizedSourceChanges(Iterable<PrioritizedSourceChange> changes, {JsonEncoder? encoder, Map<String, String>? sources, String? relativePath})
→ String
-
Encodes a list of
PrioritizedSourceChange
into a string.
-
findProjectDirectory(Directory directory, {Directory? original})
→ Directory
-
Finds the project directory associated with an analysis context root
-
matcherNormalizedPrioritizedSourceChangeSnapshot(String filePath, {JsonEncoder? encoder, Map<String, String>? sources, String? relativePath})
→ Matcher
-
Expects that a
`List<PrioritizedSourceChange>`
matches with a serialized snapshots.
-
parsePackageConfig(Directory directory)
→ Future<PackageConfig>
-
Parse the package config of the given directory.
-
parsePackageConfigSync(Directory directory)
→ PackageConfig
-
Parse the package config of the given directory.
-
parsePubspec(Directory directory)
→ Future<Pubspec>
-
Parse the pubspec of the given directory.
-
parsePubspecOverrides(Directory directory)
→ Future<Map<String, Dependency>>
-
Parse the
pubspec_overrides.yaml
of the given directory.
-
parsePubspecSync(Directory directory)
→ Pubspec
-
Parse the pubspec of the given directory.
-
tryFindProjectDirectory(Directory directory, {Directory? original})
→ Directory?
-
Finds the project directory associated with an analysis context root, or null if it is not found
-
tryParsePackageConfig(Directory directory)
→ Future<PackageConfig?>
-
Try parsing the package config of the given directory.
-
tryParsePackageConfigSync(Directory directory)
→ PackageConfig?
-
Try parsing the package config of the given directory.
-
tryParsePubspec(Directory directory)
→ Future<Pubspec?>
-
Try parsing the pubspec of the given directory.
-
tryParsePubspecOverrides(Directory directory)
→ Future<Map<String, Dependency>?>
-
Try parsing the
pubspec_overrides.yaml
of the given directory.
-
tryParsePubspecSync(Directory directory)
→ Pubspec?
-
Try parsing the pubspec of the given directory.