From de9234e410764ff5818c0740654e2b90b3eb2a8b Mon Sep 17 00:00:00 2001 From: VGV Bot Date: Wed, 17 Apr 2024 08:11:41 +0000 Subject: [PATCH 1/2] chore: update SPDX licenses --- lib/src/pub_license/spdx_license.gen.dart | 18 +++++++++--------- tool/spdx_license/test/spdx_license.gen.dart | 4 +++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/src/pub_license/spdx_license.gen.dart b/lib/src/pub_license/spdx_license.gen.dart index bc6f9643..b7db7c4e 100644 --- a/lib/src/pub_license/spdx_license.gen.dart +++ b/lib/src/pub_license/spdx_license.gen.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -// -// If you need to make changes, please refer to the SPDX License brick +// +// If you need to make changes, please refer to the SPDX License brick // CONTRIBUTING file. // ignore_for_file: type=lint @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 646 SPDX licenses. +/// A list of all 648 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -78,8 +78,7 @@ enum SpdxLicense { $BSD_3_Clause_Modification._('BSD-3-Clause-Modification'), $BSD_3_Clause_No_Military_License._('BSD-3-Clause-No-Military-License'), $BSD_3_Clause_No_Nuclear_License._('BSD-3-Clause-No-Nuclear-License'), - $BSD_3_Clause_No_Nuclear_License_2014._( - 'BSD-3-Clause-No-Nuclear-License-2014'), + $BSD_3_Clause_No_Nuclear_License_2014._('BSD-3-Clause-No-Nuclear-License-2014'), $BSD_3_Clause_No_Nuclear_Warranty._('BSD-3-Clause-No-Nuclear-Warranty'), $BSD_3_Clause_Open_MPI._('BSD-3-Clause-Open-MPI'), $BSD_3_Clause_Sun._('BSD-3-Clause-Sun'), @@ -306,6 +305,7 @@ enum SpdxLicense { $HPND_Markus_Kuhn._('HPND-Markus-Kuhn'), $HPND_Pbmplus._('HPND-Pbmplus'), $HPND_UC._('HPND-UC'), + $HPND_UC_export_US._('HPND-UC-export-US'), $HPND_doc._('HPND-doc'), $HPND_doc_sell._('HPND-doc-sell'), $HPND_export_US._('HPND-export-US'), @@ -419,6 +419,7 @@ enum SpdxLicense { $NASA_1_3._('NASA-1.3'), $NBPL_1_0._('NBPL-1.0'), $NCGL_UK_2_0._('NCGL-UK-2.0'), + $NCL._('NCL'), $NCSA._('NCSA'), $NGPL._('NGPL'), $NICTA_1_0._('NICTA-1.0'), @@ -592,8 +593,7 @@ enum SpdxLicense { $Widget_Workshop._('Widget-Workshop'), $Wsuipa._('Wsuipa'), $X11._('X11'), - $X11_distribute_modifications_variant._( - 'X11-distribute-modifications-variant'), + $X11_distribute_modifications_variant._('X11-distribute-modifications-variant'), $XFree86_1_1._('XFree86-1.1'), $XSkat._('XSkat'), $Xdebug_1_03._('Xdebug-1.03'), @@ -687,8 +687,8 @@ enum SpdxLicense { static SpdxLicense? tryParse(String source) => _valueMap[source]; static final Map _valueMap = SpdxLicense.values - .asNameMap() - .map((key, value) => MapEntry(value.value, value)); + .asNameMap() + .map((key, value) => MapEntry(value.value, value)); final String value; } diff --git a/tool/spdx_license/test/spdx_license.gen.dart b/tool/spdx_license/test/spdx_license.gen.dart index 6ebe2fc0..b7db7c4e 100644 --- a/tool/spdx_license/test/spdx_license.gen.dart +++ b/tool/spdx_license/test/spdx_license.gen.dart @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 646 SPDX licenses. +/// A list of all 648 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -305,6 +305,7 @@ enum SpdxLicense { $HPND_Markus_Kuhn._('HPND-Markus-Kuhn'), $HPND_Pbmplus._('HPND-Pbmplus'), $HPND_UC._('HPND-UC'), + $HPND_UC_export_US._('HPND-UC-export-US'), $HPND_doc._('HPND-doc'), $HPND_doc_sell._('HPND-doc-sell'), $HPND_export_US._('HPND-export-US'), @@ -418,6 +419,7 @@ enum SpdxLicense { $NASA_1_3._('NASA-1.3'), $NBPL_1_0._('NBPL-1.0'), $NCGL_UK_2_0._('NCGL-UK-2.0'), + $NCL._('NCL'), $NCSA._('NCSA'), $NGPL._('NGPL'), $NICTA_1_0._('NICTA-1.0'), From b890321d4b4f8b9d2abea4c9d4ce51861cb60466 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Wed, 17 Apr 2024 07:48:49 -0500 Subject: [PATCH 2/2] formatting update --- .github/workflows/spdx_license_bot.yaml | 1 + lib/src/pub_license/spdx_license.gen.dart | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/spdx_license_bot.yaml b/.github/workflows/spdx_license_bot.yaml index 0b9258f3..79ca720a 100644 --- a/.github/workflows/spdx_license_bot.yaml +++ b/.github/workflows/spdx_license_bot.yaml @@ -46,6 +46,7 @@ jobs: run: | cd ../.. mason make spdx_license -o lib/src/pub_license/ --on-conflict=overwrite --licenses "[]" + dart format lib cd tool/spdx_license - name: 📝 Create Pull Request diff --git a/lib/src/pub_license/spdx_license.gen.dart b/lib/src/pub_license/spdx_license.gen.dart index b7db7c4e..78f074f7 100644 --- a/lib/src/pub_license/spdx_license.gen.dart +++ b/lib/src/pub_license/spdx_license.gen.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -// -// If you need to make changes, please refer to the SPDX License brick +// +// If you need to make changes, please refer to the SPDX License brick // CONTRIBUTING file. // ignore_for_file: type=lint @@ -78,7 +78,8 @@ enum SpdxLicense { $BSD_3_Clause_Modification._('BSD-3-Clause-Modification'), $BSD_3_Clause_No_Military_License._('BSD-3-Clause-No-Military-License'), $BSD_3_Clause_No_Nuclear_License._('BSD-3-Clause-No-Nuclear-License'), - $BSD_3_Clause_No_Nuclear_License_2014._('BSD-3-Clause-No-Nuclear-License-2014'), + $BSD_3_Clause_No_Nuclear_License_2014._( + 'BSD-3-Clause-No-Nuclear-License-2014'), $BSD_3_Clause_No_Nuclear_Warranty._('BSD-3-Clause-No-Nuclear-Warranty'), $BSD_3_Clause_Open_MPI._('BSD-3-Clause-Open-MPI'), $BSD_3_Clause_Sun._('BSD-3-Clause-Sun'), @@ -593,7 +594,8 @@ enum SpdxLicense { $Widget_Workshop._('Widget-Workshop'), $Wsuipa._('Wsuipa'), $X11._('X11'), - $X11_distribute_modifications_variant._('X11-distribute-modifications-variant'), + $X11_distribute_modifications_variant._( + 'X11-distribute-modifications-variant'), $XFree86_1_1._('XFree86-1.1'), $XSkat._('XSkat'), $Xdebug_1_03._('Xdebug-1.03'), @@ -687,8 +689,8 @@ enum SpdxLicense { static SpdxLicense? tryParse(String source) => _valueMap[source]; static final Map _valueMap = SpdxLicense.values - .asNameMap() - .map((key, value) => MapEntry(value.value, value)); + .asNameMap() + .map((key, value) => MapEntry(value.value, value)); final String value; }