Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Review comments
  • Loading branch information
stuartmorgan-g committed Jun 22, 2022
commit ddd106a308fe3b312de1c8ecca8b38d80c119fac
7 changes: 4 additions & 3 deletions script/tool/lib/src/dependabot_check_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DependabotCheckCommand extends PackageLoopingCommand {
bool skipped = true;
final List<String> errors = <String>[];

final RunState gradleState = _validateGradle(package);
final RunState gradleState = _validateDependabotGradleCoverage(package);
skipped = skipped && gradleState == RunState.skipped;
if (gradleState == RunState.failed) {
printError('${indentation}Missing Gradle coverage.');
Expand All @@ -85,11 +85,12 @@ class DependabotCheckCommand extends PackageLoopingCommand {
: PackageResult.fail(errors);
}

/// Returns the state for the Gradle ecosystem coverage of [package]:
/// Returns the state for the Dependabot coverage of the Gradle ecosystem for
/// [package]:
/// - succeeded if it includes gradle and is covered.
/// - failed if it includes gradle and is not covered.
/// - skipped if it doesn't include gradle.
RunState _validateGradle(RepositoryPackage package) {
RunState _validateDependabotGradleCoverage(RepositoryPackage package) {
final Directory androidDir =
package.platformDirectory(FlutterPlatform.android);
final Directory appDir = androidDir.childDirectory('app');
Expand Down