Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
feat(sast_warnings): add invalidSemVer translations (#96)
Browse files Browse the repository at this point in the history
* refactor(languages): Add semver token
  • Loading branch information
fabnguess committed Sep 1, 2023
1 parent 85492e0 commit e834210
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,11 @@ <h1>NodeSecure - i18n</h1>
<td>A Literal (string) contains an URL to a domain with a suspicious extension.</td>
</tr>

<tr>
<td>invalidSemVer</td>
<td>Invalid semantic version</td>
</tr>

</tbody>
<tbody class="fr">

Expand Down Expand Up @@ -967,6 +972,11 @@ <h1>NodeSecure - i18n</h1>
<td>Un Literal (string) contient une URL vers un domaine avec une extension suspecte.</td>
</tr>

<tr>
<td>invalidSemVer</td>
<td>Version sémantique non valide</td>
</tr>

</tbody>
</table>
</div>
Expand Down
3 changes: 2 additions & 1 deletion languages/english.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ const sast_warnings = {
suspicious_literal: "This mean that the sum of suspicious score of all Literals is bigger than 3.",
obfuscated_code: "There's a very high probability that the code is obfuscated...",
weak_crypto: "The code probably contains a weak crypto algorithm (md5, sha1...)",
shady_link: "A Literal (string) contains an URL to a domain with a suspicious extension."
shady_link: "A Literal (string) contains an URL to a domain with a suspicious extension.",
invalidSemVer: "Invalid semantic version"
};

export const english = { lang, cli, depWalker, ui, warnings, sast_warnings };
3 changes: 2 additions & 1 deletion languages/french.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ const sast_warnings = {
suspicious_file: "Un fichier suspect contenant plus de dix chaines de caractères encodés",
obfuscated_code: "Il y a une très forte probabilité que le code soit obscurci...",
weak_crypto: "Le code contient probablement un algorithme de chiffrement faiblement sécurisé (md5, sha1...).",
shady_link: "Un Literal (string) contient une URL vers un domaine avec une extension suspecte."
shady_link: "Un Literal (string) contient une URL vers un domaine avec une extension suspecte.",
invalidSemVer: "Version sémantique non valide"
};

export const french = { lang, cli, depWalker, ui, warnings, sast_warnings };

0 comments on commit e834210

Please sign in to comment.