coronasafe/care_fe

View on GitHub
src/PluginRegistry.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Function loadPlugins has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async loadPlugins(configs: PluginConfig[]) {
for (const config of configs) {
try {
// Provide React and ReactDOM to the plugin
(window as any).React = React;
Severity: Minor
Found in src/PluginRegistry.ts - About 1 hr to fix

Function loadPlugins has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

async loadPlugins(configs: PluginConfig[]) {
for (const config of configs) {
try {
// Provide React and ReactDOM to the plugin
(window as any).React = React;
Severity: Minor
Found in src/PluginRegistry.ts - About 45 mins to fix

There are no issues that match your filters.

Category
Status