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
@@ -287,8 +288,11 @@ Excluding a package from any analysis can be achieved by marking the package for
287
288
]
288
289
}
289
290
```
291
+
</li>
292
+
293
+
<li>
294
+
<em>Golang</em> users can add in go.mod a comment with <code>// exhortignore</code> next to the package to be ignored, or to "piggyback" on existing comment ( e.g - <code>// indirect</code>), for example:
290
295
291
-
<em>Golang</em> users can add in go.mod a comment with //exhortignore next to the package to be ignored, or to "piggyback" on existing comment ( e.g - //indirect) , for example:
<b>NOTE</b>: It is important to format <code>exhortignore</code> markers on indirect dependencies as shown above, otherwise the Go tooling (as well as this library) may incorrectly parse dependencies marked as indirect as being direct dependencies instead.
320
+
</li>
321
+
322
+
323
+
<li>
315
324
<em>Python pip</em> users can add in requirements.txt a comment with #exhortignore(or # exhortignore) to the right of the same artifact to be ignored, for example:
325
+
316
326
```properties
317
327
anyio==3.6.2
318
328
asgiref==3.4.1
@@ -343,11 +353,14 @@ Werkzeug==2.0.3
343
353
zipp==3.6.0
344
354
345
355
```
356
+
</li>
346
357
358
+
<li>
347
359
<em>Gradle</em> users can add in build.gradle a comment with //exhortignore next to the package to be ignored:
360
+
348
361
```build.gradle
349
362
plugins {
350
-
id 'java'
363
+
id 'java'
351
364
}
352
365
353
366
group = 'groupName'
@@ -379,9 +392,31 @@ version = "1.10"
379
392
log = "0.4" # trustify-da-ignore
380
393
```
381
394
382
-
All of the 6 above examples are valid for marking a package to be ignored
383
-
</li>
384
395
396
+
<em>Python pyproject.toml</em> users can add a comment with <code>#exhortignore</code> (or <code># trustify-da-ignore</code>) next to the dependency in <code>pyproject.toml</code>.
397
+
398
+
PEP 621 style (<code>[project]</code> dependencies):
0 commit comments