iterative/vscode-dvc

View on GitHub
extension/src/experiments/webview/messages.ts

Summary

Maintainability
D
1 day
Test Coverage
A
91%

File messages.ts has 534 lines of code (exceeds 300 allowed). Consider refactoring.
Open

import { commands, Uri, ViewColumn, window } from 'vscode'
import { StudioLinkType, TableData } from './contract'
import {
  RegisteredCliCommands,
  RegisteredCommands
Severity: Major
Found in extension/src/experiments/webview/messages.ts - About 7 hrs to fix

    Function handleMessageFromWebview has 125 lines of code (exceeds 40 allowed). Consider refactoring.
    Open

      public handleMessageFromWebview(message: MessageFromWebview) {
        // eslint-disable-next-line sonarjs/max-switch-cases
        switch (message.type) {
          case MessageFromWebviewType.REORDER_COLUMNS:
            return this.setColumnOrder(message.payload)
    Severity: Major
    Found in extension/src/experiments/webview/messages.ts - About 4 hrs to fix

      Function getWebviewData has 56 lines of code (exceeds 40 allowed). Consider refactoring.
      Open

        private async getWebviewData(): Promise<TableData> {
          const [
            changes,
            cliError,
            columnOrder,
      Severity: Major
      Found in extension/src/experiments/webview/messages.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status