Louis Le Nézet
03/07/2025, 10:19 AMNiklas Schandry
03/07/2025, 10:34 AM# Keep track of open and close brackets section is doing, shouldnt the last step happen outside of the loop?Niklas Schandry
03/07/2025, 10:36 AMif "{" in line and "}" in line: state = "subworkflow" ?Niklas Schandry
03/07/2025, 10:37 AMLouis Le Nézet
03/07/2025, 1:49 PMLouis Le Nézet
03/07/2025, 1:58 PMmain.nf would not be checked correctly for input and output for the moment.
I would be for banning this possibility to simplify the issue.Niklas Schandry
03/07/2025, 1:59 PMLouis Le Nézet
03/07/2025, 2:31 PMmain.nf files.
The problem is that when multiple process or workflow are present in a single main.nf , the linting is aggregating all of them or checking only the first one.
The best would be to split them, and separatly lint them but this might need a huge refactoring. The simplest would be just to ban the use of multiple process/workflow per file, which from my point of view is better as it would align with a better organisation and documentation.Niklas Schandry
03/07/2025, 2:43 PMLouis Le Nézet
03/07/2025, 2:44 PMNiklas Schandry
03/07/2025, 2:45 PMNiklas Schandry
03/07/2025, 2:48 PMif re.search(r"^\s*workflow\s*\w*\s*{", line) and state == "subworkflow":
fail when state was set to something else before, since it would not correctly reset to subworkflow since there is 1 more open than close bracket so far?
workflow1 {
take
main
emit
}
workflow2 {
take
main
emit
}
and the state is emit from workflow1?Louis Le Nézet
03/07/2025, 2:52 PM} would be wrongly taken out of the workflow. But I don't think that will be a problem...Niklas Schandry
03/07/2025, 2:55 PMworkflow { // subworkflow
// subworkflow
subworkflow1 { // subworkflow
take // take
main // main
emit // emit
} // emit (1more open than close)
// emit
subworkflow2 { //emit
take // take
main // main
emit // emit
} // emit
} // subworkflowLouis Le Nézet
03/07/2025, 2:58 PM