question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
tetroncommented, Feb 12, 2018

If eslint or jshint can be easily packed into one file, and the licensing is compatible, it would be even better to add it to the cwltool repo so it can be packaged and distributed as part of cwltool, and read in as a package resource on the fly.

1reaction
ThomasHickmancommented, Feb 12, 2018

I’m working on this at the moment

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Is there a tool to validate ECMAScript and confirm ...
I've used online version and it seems with configuration /*jslint browser: true, couch: false, es5: false, sloppy: true, white: true */ it doesn ......
Read more >
2.3. Expressions — Common Workflow Language User Guide ...
The CWL standards (versions 1.0 through 1.2) states that the only version of JavaScript valid in CWL expressions is ECMAScript 5.1. This means...
Read more >
Michael Franklin, Richard Lupat - Janis!
cookies, we can refer to the following workflow: ... Janis (and CWLTool) said the tool executed correctly, let's check the output file:.
Read more >
The Tidelift catalog of open source packages
You can learn more about Jackson core on the project repo. com.fasterxml.jackson.core:jackson- ... Check if a string is a valid JavaScript expression.
Read more >
Is there a good way to test CWL tools and workflows? - Biostar
Some of these plugins will do a basic syntax check for you as well. ... Testing with cwltool and the --js-console and --debug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found