Skip to content

Commit

Permalink
Merge pull request #111 from snyk/chore/docs-update
Browse files Browse the repository at this point in the history
fix: updated readme
  • Loading branch information
Arvi3d authored Oct 13, 2021
2 parents 418fecb + e18449b commit e0a3a1d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,28 @@ Complete list of events:

### Run analysis

```javascript
const results = await codeClient.analyzeFolders({
connection: { baseURL, sessionToken, source },
analysisOptions: {
severity: 1
},
fileOptions: {
paths: ['/home/user/repo'],
symlinksEnabled: false,
},
});

```

### Run analysis only for specific file, the one just changed for example

```javascript
const results = await codeClient.analyzeFolders({
connection: { baseURL, sessionToken, source },
analysisOptions: {
severity: 1,
limitToFiles: ['recently-changed-file.js']
},
fileOptions: {
paths: ['/home/user/repo'],
Expand Down

0 comments on commit e0a3a1d

Please sign in to comment.