eslint-plugin-anti-trojan-source
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "eslint-plugin-anti-trojan-source", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "ESLint plugin to detect and stop Trojan Source attacks", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -70,4 +70,17 @@ <p align="center"><h1 align="center"> | ||
## Example output | ||
The following is an example output when the plugin finds a Trojan Source attack in your codebase: | ||
```bash | ||
/Users/lirantal/projects/repos/@gigsboat/cli/index.js | ||
1:1 error Detected potential trojan source attack with unicode bidi introduced in this comment: ' } if (isAdmin) begin admins only ' anti-trojan-source/no-bidi | ||
1:1 error Detected potential trojan source attack with unicode bidi introduced in this comment: ' end admin only { ' anti-trojan-source/no-bidi | ||
/Users/lirantal/projects/repos/@gigsboat/cli/lib/helper.js | ||
2:1 error Detected potential trojan source attack with unicode bidi introduced in this code: '"user // Check if admin "' anti-trojan-source/no-bidi | ||
``` | ||
# Author | ||
**eslint-plugin-anti-trojan-source** © [Liran Tal](https://github.com/lirantal), Released under the [Apache-2.0](./LICENSE) License. |
20230
86