You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-3Lines changed: 86 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,15 +134,90 @@ This section describe all the possible warnings returned by JSXRay. Click on the
134
134
|[weak-crypto](./docs/weak-crypto.md)| ✔️ | The code probably contains a weak crypto algorithm (md5, sha1...) |
135
135
|[shady-link](./docs/shady-link.md)| ✔️ | The code contains shady/unsafe link |
136
136
137
+
## Custom Probes
138
+
139
+
You can also create custom probes to detect specific pattern in the code you are analyzing.
140
+
141
+
A probe is a pair of two functions (`validateNode` and `main`) that will be called on each node of the AST. It will return a warning if the pattern is detected.
142
+
Below a basic probe that detect a string assignation to `danger`:
0 commit comments