cwltool --validate should validate that javascript expressions are valid ES5 expressions
See original GitHub issueIt 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:
- Created 6 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If
eslint
orjshint
can be easily packed into one file, and the licensing is compatible, it would be even better to add it to thecwltool
repo so it can be packaged and distributed as part of cwltool, and read in as a package resource on the fly.I’m working on this at the moment