SonarJS
SonarJS copied to clipboard
SonarSource Static Analyzer for JavaScript and TypeScript
When we try to stop the eslint-bridge Node.js process at the end of analysis the server is no longer running and consequently stop fails. This has been happening for >...
porting work of https://github.com/SonarSource/SonarJS/pull/3295 due to it being hard to recover after squash and merge of big refactor PR (https://github.com/SonarSource/SonarJS/commit/e4bf3eb89f65b2eb66d60916b8eb0e0d192adc83)
SonarLint is bundling eslint-bridge in Visual Studio. On Windows by default, there is a limit on the length of the path in the filesystem - 260 characters. Some of the...
In SonarLint context it can happen that parent java process (which starts eslint-bridge Node.js process) dies unexpectetly. Currently eslint-bridge process keeps running as a zombie process. We should implement heartbeat...
In some contexts (ie SonarLint) we don't have `tsconfig` file of project. However, we could still analyze the file. This is already done for JS files and we rely on...
Currently it's all 'MAIN', SL for VS will need this data to be correct
We don't detect issue of S3800 in `f1` in SonarLint, but we do detect both issues in SonarQube context. ```typescript const f1 = () => { // FN S3800 const...
SonarLint in Visual Studio sometimes needs to recover from exceptional conditions - out of memory, etc.. They need to able to detect when calling `/init-linter` is necessary. Currently, if `/init-linter`...
S3776 should exclude the complexity of JSX attribute short-circuits and nested function definitions
| Label | Description | | --- | --- | |Rule | S3776 "Cognitive Complexity of functions should not be too high" | | FP Example | * [Booleans inside...