Replace github-linguist gem with Node port Nixinova/Linguist (#436)

This commit is contained in:
Nixinova
2021-08-01 22:54:03 +12:00
committed by GitHub
parent fbd0944a55
commit 9e77a1b2c0
5 changed files with 54 additions and 20 deletions

View File

@@ -100,7 +100,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled
if (charts) {
//Check if linguist exists
console.debug(`metrics/compute/${login}/plugins > habits > searching recently used languages using linguist`)
if ((patches.length) && (await imports.which("github-linguist"))) {
if (patches.length) {
//Call language analyzer (note: using content from other plugin is usually disallowed, this is mostly for legacy purposes)
habits.linguist.available = true
const {total, stats} = await recent_analyzer({login, data, imports, rest, account}, {days, load:from || 1000, tempdir:"habits"})