undergroundwires/privacy.sexy

View on GitHub
src/presentation/components/Code/Ace/AceCodeEditorFactory.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export const initializeAceEditor: CodeEditorFactory = (options) => {
  const editor = ace.edit(options.editorContainerElementId);
  const mode = getAceModeName(options.language);
  editor.getSession().setMode(`ace/mode/${mode}`);
  editor.setTheme(`ace/theme/${CodeEditorTheme}`);
Severity: Minor
Found in src/presentation/components/Code/Ace/AceCodeEditorFactory.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status