Fix lint
parent
ca785ed7d9
commit
b73a053600
|
@ -9,7 +9,7 @@ dotenv.config()
|
|||
|
||||
// Extrait la liste des liens référencés dans la base de code
|
||||
const { stdout, stderr } = await promisify(exec)(
|
||||
"rg -oNI -e 'https?://([\\w/_\\-?=%+@]|\\.\\w)+' -g '*.{yaml,ts,tsx,js,jsx}' -g '!*-en.yaml' ./ | sort | uniq",
|
||||
"rg -oNI -e 'https?://([\\w/_\\-?=%+@]|\\.\\w)+' -g '*.{yaml,ts,tsx,js,jsx}' -g '!*-en.yaml' ./ | sort | uniq"
|
||||
)
|
||||
if (stderr) {
|
||||
throw new Error(stderr)
|
||||
|
@ -74,7 +74,7 @@ function sleep(ms) {
|
|||
}
|
||||
|
||||
await Promise.allSettled(
|
||||
Array.from({ length: simultaneousItems }).map(processNextQueueItem),
|
||||
Array.from({ length: simultaneousItems }).map(processNextQueueItem)
|
||||
)
|
||||
|
||||
console.log('Terminé')
|
||||
|
@ -104,7 +104,7 @@ if (detectedErrors.length > 0) {
|
|||
'Liens invalides :' +
|
||||
detectedErrors
|
||||
.map(({ status, link }) => `\n- [${status}] ${link}`)
|
||||
.join(''),
|
||||
.join('')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue