Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a "CWL linter" tool #935

Open
melibleq opened this issue Jan 18, 2022 · 2 comments
Open

Create a "CWL linter" tool #935

melibleq opened this issue Jan 18, 2022 · 2 comments

Comments

@melibleq
Copy link

Following a suggestion from @kinow, the idea is to have a cwl-linter module to inspect workflows and detect possible improvements in the code.

Related: common-workflow-lab/wdl-cwl-translator#127 and rabix/cwl-format#18

@kinow
Copy link
Member

kinow commented Feb 12, 2022

And maybe have something that can re-write worfklows too. Similar to Python's black, or isort for imports. It could sort the sections of a CWL document, e.g.: https://github.com/common-workflow-lab/wdl-cwl-translator/pull/172/files#diff-b5a65c2befbbd0b6453805272729b622f41b2be683f8258432e08f4370332265R83

@mr-c
Copy link
Member

mr-c commented Feb 13, 2022

@kinow , yep, content reordering is already a feature of cwl-format https://github.com/rabix/cwl-format/blob/master/cwlformat/keyorder.yml

cwl-format hasn't had a release in a while, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants