Skip to content

Commit fcd8862

Browse files
committed
fixes on readme and remove default tool
1 parent 1004d83 commit fcd8862

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Codacy CLI tool depends on Docker
2121
Codacy CLI extension can be configure to both work with Project token or API Token
2222

2323
API token example:
24+
2425
"codacy-cli": {
2526
"api-token":"##########",
2627
"provider":"gh|ge|gl",
@@ -31,11 +32,12 @@ API token example:
3132
Project token example
3233

3334
"codacy-cli": {
34-
"project-token": "YAY",
35+
"project-token": "#########",
3536
}
3637

3738
### On-prem usage
3839
In order to use it for servers on-prem, you'll need to use the flag "codacy-api-base-url"
40+
3941
"codacy-cli": {
4042
"codacy-api-base-url": "https://my-onprem.codacy.instance",
4143
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function activate(context: vscode.ExtensionContext) {
3636
for (let i = 0; i < vscode.workspace.workspaceFolders.length; i++) {
3737
let workspaceFolder = vscode.workspace.workspaceFolders[i].uri.path;
3838
env.env['CODACY_CODE'] = workspaceFolder
39-
const dockerCommand = `docker run --rm=true --env CODACY_CODE="$CODACY_CODE" --volume /var/run/docker.sock:/var/run/docker.sock --volume "$CODACY_CODE":"$CODACY_CODE" --volume /tmp:/tmp codacy/codacy-analysis-cli analyze --tool eslint --format sarif ${additionalParameters.join(' ')}`
39+
const dockerCommand = `docker run --rm=true --env CODACY_CODE="$CODACY_CODE" --volume /var/run/docker.sock:/var/run/docker.sock --volume "$CODACY_CODE":"$CODACY_CODE" --volume /tmp:/tmp codacy/codacy-analysis-cli analyze --format sarif ${additionalParameters.join(' ')}`
4040
const cp = require('child_process')
4141
cp.exec(
4242
dockerCommand,

0 commit comments

Comments
 (0)