chore: code formatting

This commit is contained in:
github-actions[bot]
2022-03-10 03:04:40 +00:00
parent 96ea0beb95
commit 52953d380a
2 changed files with 10 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ export async function indepth({login, data, imports, repositories, gpg}, {skippe
} }
else else
console.debug(`metrics/compute/${login}/plugins > languages > skipping import of gpg ${id}`) console.debug(`metrics/compute/${login}/plugins > languages > skipping import of gpg ${id}`)
} }
catch (error) { catch (error) {
console.debug(`metrics/compute/${login}/plugins > languages > indepth > an error occured while importing gpg ${id}, skipping...`) console.debug(`metrics/compute/${login}/plugins > languages > indepth > an error occured while importing gpg ${id}, skipping...`)
@@ -209,9 +210,11 @@ async function analyze({login, imports, data}, {results, path, categories = ["pr
if (results.verified) { if (results.verified) {
const sha = line.match(/[0-9a-f]{40}/)?.[0] const sha = line.match(/[0-9a-f]{40}/)?.[0]
if (sha) { if (sha) {
pending.push(imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false}) pending.push(
imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false})
.then(() => results.verified.signature++) .then(() => results.verified.signature++)
.catch(() => null)) .catch(() => null),
)
} }
} }
results.commits++ results.commits++

View File

@@ -16,10 +16,10 @@ export default function({ faker }, target, that, [{ username }]) {
emails: [ emails: [
{ {
email: faker.internet.email(), email: faker.internet.email(),
verified: true verified: true,
} },
] ],
} },
], ],
}) })
} }