grafana/k6-cloud-grafana-datasource

View on GitHub
src/components/QueryEditor/QueryEditor.tsx

Summary

Maintainability
C
7 hrs
Test Coverage
F
0%

File QueryEditor.tsx has 387 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import _ from 'lodash';
import React, { PureComponent } from 'react';

import { Icon, InlineFormLabel } from '@grafana/ui';
import { QueryEditorProps, SelectableValue } from '@grafana/data';
Severity: Minor
Found in src/components/QueryEditor/QueryEditor.tsx - About 5 hrs to fix

    QueryEditor has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export class QueryEditor extends PureComponent<Props, QueryEditorState> {
      url?: string;
      lastTagId: number;
      state: QueryEditorState = {
        projectList: [],
    Severity: Minor
    Found in src/components/QueryEditor/QueryEditor.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status