-
Notifications
You must be signed in to change notification settings - Fork 191
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
Lint warning when using a template #1558
Comments
See nf-core/modules#1631 and the failing lint action. |
(exact!) duplicate of #1557 😉 |
Actually no, different lint warning. |
Apologies, rushing and misread 🙏🏻
Can you avoid this in future issues please? I rarely get to them in time and usually have to spend ages figuring out what date the issue was posted and digging through git history to guess at which file was the one that caused the error 😅 Links to actions runs / file permalinks is best as it's quick to replicate then 👌🏻 |
ok I should stop working and go and eat. Just realised that your comment immediately after opening the issue was exactly that 👍🏻 |
...except the PR and failing lint action has the error from the other issue which I thought that you'd duplicated:
I guess the force-push in that PR dropped reference to the original CI tests where this was happening. Could you link to a reproducible example please? 🙏🏻 |
I'll provide more stable links in future, sorry. The warning is right there, though https://github.com/nf-core/modules/runs/6368191141?check_suite_focus=true#step%3A9%3A29= |
To reproduce:
and in the modules repo:
|
Ahhh warning not error, that's why I didn't see it. Sorry 🤦🏻 |
It seems that when using a template the linting checks for the script section (which is empty in that case) are also performed, thus the error. |
Basically, skip this step if using shell instead. Fixes nf-core#1558
Yeah I wondered the same but I'm not sure that we can do much with this. I did wonder about checking for the version etc. but it would be fairly complex code and probably quite liable to break. There aren't loads of modules taking this approach so I'm not in a rush to do this for now. |
Description of the bug
When using a template instead of a script block inside of a process, I get the following lint warning:
which seems like a parsing bug of the linter.
Command used and terminal output
nf-core modules lint sratools/prefetch # On currently open PR.
System information
nf-core, version 2.4.dev0
The text was updated successfully, but these errors were encountered: