thebespokepixel/palette2oco

View on GitHub
src/classes/reader.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function loadASE has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function loadASE(identity) {
    function scan(node) {
        return node.map(datum => {
            switch (datum.type) {
                case 'color':
Severity: Minor
Found in src/classes/reader.js - About 2 hrs to fix

    Function scan has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function scan(node) {
            return node.map(datum => {
                switch (datum.type) {
                    case 'color':
                        switch (datum.color.model) {
    Severity: Minor
    Found in src/classes/reader.js - About 1 hr to fix

      Parsing error: Unexpected token function
      Open

      async function loadOCO(identity) {
      Severity: Minor
      Found in src/classes/reader.js by eslint

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

      There are no issues that match your filters.

      Category
      Status