Tools: ๐Ÿ› Expected token ParenClose but got Word for unknown license

Created on 10 Oct 2020  ยท  2Comments  ยท  Source: rome/tools


Environment

$ rome rage --summary
Environment Variables
  Object {
    COLORFGBG: "15;0"
    COLORTERM: "truecolor"
    TERM: "xterm-256color"
    TERM_PROGRAM: "iTerm.app"
  }

User Config
  unset

Rome Version
  10.0.4-beta

Node Version
  12.18.3

Platform
  darwin x64 19.6.0

Terminal Features
  Object {
    background: "dark"
    colorDepth: 24
    columns: 98
    cursor: true
    hyperlinks: true
    isTTY: true
    unicode: true
  }

Client Flags
  Object {
    clientName: "cli"
    cwd: "/Users/huynhducdung/Projects/aaa-cards-app"
    realCwd: "/Users/huynhducdung/Projects/aaa-cards-app"
    silent: false
  }

Server Status
  Object {
    projects: Array [
      Object {id: 0}
      Object {id: 1}
    ]
    server: Object {
      heapTotal: 59_187_200
      pid: 81_761
      uptime: 0.632869425
    }
    workers: Array [
      Object {
        astCacheSize: 0
        heapTotal: 59_187_200
        ownedBytes: 0
        ownedFileCount: 0
        pid: 81_761
        uptime: 0.632793094
      }
    ]
  }


โœจ  Done in 1.13s.

Steps To Reproduce


  1. Install dom-storage package
  2. Run yarn rome check
 node_modules/dom-storage/package.json:16:19 parse/spdxLicense โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  โœ– Expected token ParenClose but got Word

Expected Results

It should work without the internal error. Probably, this is the root cause https://git.coolaj86.com/coolaj86/dom-storage.js/src/branch/master/package.json#L16

 "license": "(MIT or Apache-2.0)",

confirmed

All 2 comments

Hi @jellydn, yes that's an invalid license. The next release will have a configuration that would help to ignore these invalid licenses.

This feature is available, we can close it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linvain picture linvain  ยท  4Comments

yoshixmk picture yoshixmk  ยท  4Comments

VictorHom picture VictorHom  ยท  3Comments

RaviVaranasi picture RaviVaranasi  ยท  5Comments

sebmck picture sebmck  ยท  4Comments