chore: code formatting
This commit is contained in:
@@ -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++
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user