Full-prettier-run - #8605
Conversation
| input: string, | ||
| ): Promise<{ code: number; error: ExecException | null; stdout: string; stderr: string }> => { | ||
| return new Promise(resolve => | ||
| exec(input, { cwd: path.resolve(__dirname, '../../..') }, (error, stdout, stderr) => |
Check failure
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.detect-child-process.detect-child-process
| files.map(file => | ||
| readAndInsertDoc(t, path.join(dir, '.insomnia', t, file)), | ||
| ), | ||
| files.map(file => readAndInsertDoc(t, path.join(dir, '.insomnia', t, file))), |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| files.map(file => | ||
| readAndInsertDoc(t, path.join(dir, '.insomnia', t, file)), | ||
| ), | ||
| files.map(file => readAndInsertDoc(t, path.join(dir, '.insomnia', t, file))), |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| files.map(file => | ||
| readAndInsertDoc(t, path.join(dir, '.insomnia', t, file)), | ||
| ), | ||
| files.map(file => readAndInsertDoc(t, path.join(dir, '.insomnia', t, file))), |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| return spawn( | ||
| 'tar', | ||
| [ | ||
| '-C', | ||
| '../binaries', | ||
| platform === 'win32' ? '-a -cf' : '-cJf', | ||
| platform === 'win32' ? `inso-windows-${version}.zip` : `inso-linux-${process.arch}-${version}.tar.xz`, | ||
| platform === 'win32' ? 'inso.exe' : 'inso', | ||
| ], | ||
| { cwd, shell: platform === 'win32' }, | ||
| ); |
Check failure
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.spawn-shell-true.spawn-shell-true
| .map(f => f.name) | ||
| .reverse() | ||
| .slice(1), | ||
| protoFile.name, |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| urlFailureRegex: authentication.redirectUrl ? | ||
| new RegExp(`${escapeRegex(authentication.redirectUrl)}.*([?&]error=)`, 'i') : /([?&]error=)/i, | ||
| urlSuccessRegex: authentication.redirectUrl | ||
| ? new RegExp(`${escapeRegex(authentication.redirectUrl)}.*([?&]code=)`, 'i') |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp
| ? new RegExp(`${escapeRegex(authentication.redirectUrl)}.*([?&]code=)`, 'i') | ||
| : /([?&]code=)/i, | ||
| urlFailureRegex: authentication.redirectUrl | ||
| ? new RegExp(`${escapeRegex(authentication.redirectUrl)}.*([?&]error=)`, 'i') |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp
| const link = path.join(/^insomnia-plugin-/.test(plugin.name) ? PLUGIN_HUB_BASE : NPM_PACKAGE_BASE, plugin.name); | ||
| const link = path.join( | ||
| /^insomnia-plugin-/.test(plugin.name) ? PLUGIN_HUB_BASE : NPM_PACKAGE_BASE, | ||
| plugin.name, |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| @@ -111,7 +103,7 @@ | |||
|
|
|||
| const spectralRulesetPath = path.join( | |||
| process.env['INSOMNIA_DATA_PATH'] || window.app.getPath('userData'), | |||
| `version-control/git/${gitRepositoryId}/other/.spectral.yaml` | |||
| `version-control/git/${gitRepositoryId}/other/.spectral.yaml`, | |||
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
* prettier * remove markdown linting
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
removes markdown linting in favour of autoformatting
autoformats entire repo with npx prettier . --write