chore: code formatting

This commit is contained in:
github-actions[bot]
2022-04-23 23:18:43 +00:00
parent 73cd43c18f
commit 4c98629bbc
130 changed files with 1839 additions and 1788 deletions

View File

@@ -1,5 +1,5 @@
/**Mocked data */
export default function({ faker, query, login = faker.internet.userName() }) {
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > licenses/default")
return ({
licenses: [
@@ -9,22 +9,22 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: "GNU AGPLv3",
key: "agpl-3.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "document-changes", label: "State changes" },
{ key: "disclose-source", label: "Disclose source" },
{ key: "network-use-disclose", label: "Network use is distribution" },
{ key: "same-license", label: "Same license" },
{key: "include-copyright", label: "License and copyright notice"},
{key: "document-changes", label: "State changes"},
{key: "disclose-source", label: "Disclose source"},
{key: "network-use-disclose", label: "Network use is distribution"},
{key: "same-license", label: "Same license"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "patent-use", label: "Patent use" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "patent-use", label: "Patent use"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -33,20 +33,20 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "apache-2.0",
limitations: [
{ key: "trademark-use", label: "Trademark use" },
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "trademark-use", label: "Trademark use"},
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "document-changes", label: "State changes" },
{key: "include-copyright", label: "License and copyright notice"},
{key: "document-changes", label: "State changes"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "patent-use", label: "Patent use" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "patent-use", label: "Patent use"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -55,17 +55,17 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "bsd-2-clause",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{key: "include-copyright", label: "License and copyright notice"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -74,17 +74,17 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "bsd-3-clause",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{key: "include-copyright", label: "License and copyright notice"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -93,17 +93,17 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "bsl-1.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright--source", label: "License and copyright notice for source" },
{key: "include-copyright--source", label: "License and copyright notice for source"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -112,17 +112,17 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "cc0-1.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "trademark-use", label: "Trademark use" },
{ key: "patent-use", label: "Patent use" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "trademark-use", label: "Trademark use"},
{key: "patent-use", label: "Patent use"},
{key: "warranty", label: "Warranty"},
],
conditions: [],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -131,20 +131,20 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "epl-2.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "disclose-source", label: "Disclose source" },
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "same-license", label: "Same license" },
{key: "disclose-source", label: "Disclose source"},
{key: "include-copyright", label: "License and copyright notice"},
{key: "same-license", label: "Same license"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "distribution", label: "Distribution" },
{ key: "modifications", label: "Modification" },
{ key: "patent-use", label: "Patent use" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "distribution", label: "Distribution"},
{key: "modifications", label: "Modification"},
{key: "patent-use", label: "Patent use"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -153,20 +153,20 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: "GNU GPLv2",
key: "gpl-2.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "document-changes", label: "State changes" },
{ key: "disclose-source", label: "Disclose source" },
{ key: "same-license", label: "Same license" },
{key: "include-copyright", label: "License and copyright notice"},
{key: "document-changes", label: "State changes"},
{key: "disclose-source", label: "Disclose source"},
{key: "same-license", label: "Same license"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -175,21 +175,21 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: "GNU GPLv3",
key: "gpl-3.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "document-changes", label: "State changes" },
{ key: "disclose-source", label: "Disclose source" },
{ key: "same-license", label: "Same license" },
{key: "include-copyright", label: "License and copyright notice"},
{key: "document-changes", label: "State changes"},
{key: "disclose-source", label: "Disclose source"},
{key: "same-license", label: "Same license"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "patent-use", label: "Patent use" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "patent-use", label: "Patent use"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -198,20 +198,20 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: "GNU LGPLv2.1",
key: "lgpl-2.1",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "disclose-source", label: "Disclose source" },
{ key: "document-changes", label: "State changes" },
{ key: "same-license--library", label: "Same license (library)" },
{key: "include-copyright", label: "License and copyright notice"},
{key: "disclose-source", label: "Disclose source"},
{key: "document-changes", label: "State changes"},
{key: "same-license--library", label: "Same license (library)"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -220,17 +220,17 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "mit",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "include-copyright", label: "License and copyright notice" },
{key: "include-copyright", label: "License and copyright notice"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -239,21 +239,21 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "mpl-2.0",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "trademark-use", label: "Trademark use" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "trademark-use", label: "Trademark use"},
{key: "warranty", label: "Warranty"},
],
conditions: [
{ key: "disclose-source", label: "Disclose source" },
{ key: "include-copyright", label: "License and copyright notice" },
{ key: "same-license--file", label: "Same license (file)" },
{key: "disclose-source", label: "Disclose source"},
{key: "include-copyright", label: "License and copyright notice"},
{key: "same-license--file", label: "Same license (file)"},
],
permissions: [
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{ key: "patent-use", label: "Patent use" },
{ key: "private-use", label: "Private use" },
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
{key: "patent-use", label: "Patent use"},
{key: "private-use", label: "Private use"},
],
},
{
@@ -262,15 +262,15 @@ export default function({ faker, query, login = faker.internet.userName() }) {
nickname: null,
key: "unlicense",
limitations: [
{ key: "liability", label: "Liability" },
{ key: "warranty", label: "Warranty" },
{key: "liability", label: "Liability"},
{key: "warranty", label: "Warranty"},
],
conditions: [],
permissions: [
{ key: "private-use", label: "Private use" },
{ key: "commercial-use", label: "Commercial use" },
{ key: "modifications", label: "Modification" },
{ key: "distribution", label: "Distribution" },
{key: "private-use", label: "Private use"},
{key: "commercial-use", label: "Commercial use"},
{key: "modifications", label: "Modification"},
{key: "distribution", label: "Distribution"},
],
},
],