VS Code DeepScan extension
To use this extension, you should confirm that your code is transferred to the DeepScan server for inspection when you save your changes.
You can confirm it by pressing the Confirm button that appears when restarting VS Code after the installation.
Note that your code is completely deleted from the server right after the inspection.
How it works
- Report issues in Problems panel when you open a
*.vue file and save it.
- Highlight issues in the code.
- Show a rule description using a code action. When you click the light bulb of the issue, you can see the detailed description of the rule and grasp what's the problem.
This extension contributes the following variables to the settings:
deepscan.enable: enable/disable DeepScan. Disabled by default. Enabled on per workspace when you confirm.
deepscan.server: set an url of DeepScan server. "https://deepscan.io" by default.
deepscan.proxy: set an url of proxy server. When you are behind a proxy.
deepscan.ignoreRules: set an array of rules to exclude.
An example to exclude 'UNUSED_DECL' rule is:
deepscan.fileSuffixes: set an array of additional suffixes for files to analyze. (Needs restart to take affect)
An example to analyze
deepscan.showDecorators: enable/disable to show high and medium problems with inline decorators. Enabled by default.
While you can exclude rules project wide via
deepscan.ignoreRules option, you can also disable a rule in a file using inline comment.
const x = 0;
x = 1; x + 1; // deepscan-disable-line UNUSED_EXPR
By Ignore this line and Ignore this rule code actions, you can add an inline comment easier.
Read more about it here.
This is a premium feature.
DeepScan supports an embedded mode, which works standalone without DeepScan server. It works with the local language server so you can:
- never worry about transferring the code outside.
- analyze a whole project rather than a file.
To activate this, contact us at email@example.com.
In the embedded mode, this extension contributes the following commands to the Command palette.
- Inspect Project: inspect the current project.
- Clear Project Problems: clear inspected problems.
Run ESLint. You can see the ESLint alarms with DeepScan's.
eslint package is required in the local or global. Note that
NODE_PATH environment variable is necessary to load the
eslint module installed in global.
It directly uses the package so your custom configurations and plugins are applied as is.
deepscan.serverEmbedded.eslint.enable: enable/disable ESLint analysis.
deepscan.serverEmbedded.eslint.merge: option for how identical issues of DeepScan and ESLint are merged. (defaults to
deepscan: show only DeepScan issues.
eslint: show only ESLint issues.
both: show all issues as is.
Using behind a proxy
This extension requires a connection with the DeepScan server for inspection. This connection cannot be established when you are behind a proxy.
For this case, the extension will try to set its proxy via your
http_proxy environment variable.
If you don't have the environment variable, try to set
deepscan.proxy option to the url of proxy server.