File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Codacy CLI tool depends on Docker
2121Codacy CLI extension can be configure to both work with Project token or API Token
2222
2323API token example:
24+
2425 "codacy-cli": {
2526 "api-token":"##########",
2627 "provider":"gh|ge|gl",
@@ -31,11 +32,12 @@ API token example:
3132Project token example
3233
3334 "codacy-cli": {
34- "project-token": "YAY ",
35+ "project-token": "######### ",
3536 }
3637
3738### On-prem usage
3839In 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 }
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments