thebespokepixel/palette2oco

View on GitHub

Showing 5 of 5 total issues

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/

      Parsing error: Unexpected token function
      Open

      async function loadOCO(identity) {
      Severity: Minor
      Found in palette2oco.js by eslint

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

      Parsing error: Unexpected token import
      Open

      const metadata = meta(dirname(fileURLToPath(import.meta.url)))
      Severity: Minor
      Found in src/cli.js by eslint

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

      Severity
      Category
      Status
      Source
      Language