Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ unit-tests-result.json
build
target
.npmrc
src/providers/tree-sitter-requirements.wasm
src/providers/*.wasm
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,11 @@ Excluding a package from any analysis can be achieved by marking the package for
]
}
```
</li>

<li>
<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:

<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:
```go
module github.com/trustify-da/SaaSi/deployer

Expand All @@ -266,22 +269,28 @@ go 1.19
require (
github.com/gin-gonic/gin v1.9.1
github.com/google/uuid v1.1.2
github.com/jessevdk/go-flags v1.5.0 //exhortignore
github.com/jessevdk/go-flags v1.5.0 // exhortignore
github.com/kr/pretty v0.3.1
gopkg.in/yaml.v2 v2.4.0
k8s.io/apimachinery v0.26.1
k8s.io/client-go v0.26.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect exhortignore
github.com/davecgh/go-spew v1.1.1 // indirect; exhortignore
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect //exhortignore
github.com/go-logr/logr v1.2.3 // indirect; exhortignore

)
```

<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.
</li>


<li>
<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:

```properties
anyio==3.6.2
asgiref==3.4.1
Expand Down Expand Up @@ -312,11 +321,14 @@ Werkzeug==2.0.3
zipp==3.6.0

```
</li>

<li>
<em>Gradle</em> users can add in build.gradle a comment with //exhortignore next to the package to be ignored:

```build.gradle
plugins {
id 'java'
id 'java'
}

group = 'groupName'
Expand All @@ -336,7 +348,6 @@ test {

All of the 5 above examples are valid for marking a package to be ignored
</li>

</ul>

<h3>Customization</h3>
Expand Down
Loading
Loading