Skip to content

Commit 648e347

Browse files
committed
fix: lint and remove pana min score
1 parent 7c88896 commit 648e347

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/very_good_cli.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,4 @@ jobs:
5252
pana:
5353
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1
5454
with:
55-
min_score: 150 # Update minimum score to 160 once we have the CLI up to date.
5655
pana_version: 0.22.21

lib/src/commands/packages/commands/check/commands/licenses.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,12 @@ String _composeBannedReport(_BannedDependencyLicenseMap bannedDependencies) {
459459
) {
460460
final dependencyName = element.key;
461461
final dependencyLicenses = element.value;
462+
final hyperlink = link(
463+
uri: pubLicenseUri(dependencyName),
464+
message: dependencyLicenses.toList().stringify(),
465+
);
462466

463-
final text =
464-
'$dependencyName (${link(uri: pubLicenseUri(dependencyName), message: dependencyLicenses.toList().stringify())})';
467+
final text = '$dependencyName ($hyperlink)';
465468
return previousValue..add(text);
466469
});
467470
final bannedLicenseTypes = bannedDependencies.values.fold(<String>{}, (

0 commit comments

Comments
 (0)