CLOSER-Cohorts/archivist

View on GitHub
react/src/pages/AdminImportView.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function InstrumentImportView has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const InstrumentImportView = (props) => {
  const { instrumentImport } = props;

  const classes = useStyles();

Severity: Major
Found in react/src/pages/AdminImportView.js - About 2 hrs to fix

Function AdminImportView has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const AdminImportView = (props) => {

  const dispatch = useDispatch()
  const importId = get(props, "match.params.importId", "")
  const imports = useSelector(state => state.imports);
Severity: Minor
Found in react/src/pages/AdminImportView.js - About 1 hr to fix

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
Open

import React, { useEffect } from 'react';
Severity: Minor
Found in react/src/pages/AdminImportView.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status