Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Examples of errors detected by the...

Examples of errors detected by the V7030 diagnostic

V7030. Suspicious code formatting. The 'else' keyword may be missing.


Visual Studio Code

V7030 [CWE-670] Suspicious code formatting. The 'else' keyword is probably missing. editorService.ts 739


if (isResourceMergeEditorInput(editor)) {
    ....
} if (isResourceDiffEditorInput(editor)) {            // <=
    if (URI.isUri(editor.original.resource)) {
        resources.add(editor.original.resource);
    }
    if (URI.isUri(editor.modified.resource)) {
        resources.add(editor.modified.resource);
    }
    diffMode = true;
} else if (isResourceEditorInput(editor)) {
    resources.add(editor.resource);
}