Skip to content

cwltool --validate should validate that javascript expressions are valid ES5 expressions #594

Closed
@ThomasHickman

Description

@ThomasHickman

It would be nice if cwltool --validate would report ES5 syntax errors in cwl expressions e.g. running cwltool --validate with this:

cwlVersion: v1.0
requirements:
- class: InlineJavascriptRequirement
inputs:
  - id: parameter
    type: string
    inputBinding:
      valueFrom: $((_ => "test")())
outputs: []
class: CommandLineTool
baseCommand: echo

would report an error, as it uses ES6 syntax.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions