adobe/brackets

View on GitHub
src/editor/CSSInlineEditor.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function htmlToCSSProvider has 127 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function htmlToCSSProvider(hostEditor, pos) {

        // Only provide a CSS editor when cursor is in HTML content
        if (hostEditor.getLanguageForSelection().getId() !== "html") {
            return null;
Severity: Major
Found in src/editor/CSSInlineEditor.js - About 5 hrs to fix

    Function _getSelectorName has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _getSelectorName(editor, pos) {
            var tagInfo = HTMLUtils.getTagInfo(editor, pos),
                selectorName = "",
                reason;
    
    
    Severity: Minor
    Found in src/editor/CSSInlineEditor.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status