Skip to content

Commit cc65e2f

Browse files
committed
add the option to skip ssl verification
1 parent 226a33c commit cc65e2f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Project token example
3232
"project-token": "#########",
3333
}
3434

35+
Skip SSL Verification
36+
"codacy-cli": {
37+
"ssl-verification": "true",
38+
}
39+
3540
### Tool
3641
Codacy cli can use all tool availables for the repository or you can specify one using the key "tool"
3742

src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export function activate(context: vscode.ExtensionContext) {
3737
additionalParameters.push(`--tool ${configuration.get('tool')}`);
3838
}
3939

40+
if (configuration.has('ssl-verification') && configuration.get('ssl-verification') === 'true') {
41+
additionalParameters.push('--skip-ssl-verification');
42+
}
43+
4044
for (let i = 0; i < vscode.workspace.workspaceFolders.length; i++) {
4145
let workspaceFolder = vscode.workspace.workspaceFolders[i].uri.path;
4246
env.env['CODACY_CODE'] = workspaceFolder;

0 commit comments

Comments
 (0)