I posted a message at the Nextflow Slack yesterday...
# help
d
I posted a message at the Nextflow Slack yesterday regarding a piece of code that works fine but does not pass `nextflow lint`ing but have not received any responses: https://nextflow.slack.com/archives/C02T98A23U7/p1773227518827619. It would be great to be able to make #C01U1E95JQ5 pass linting today -- does anyone have any insights?
My reproducible little example:
Copy code
workflow TEST {
    take:
    n

    main:
    def i = 0

    ch_n_times = n.map { it -> it * i++ }

    emit:
    ch_n_times
}

workflow {
    TEST(channel.of(1, 2, 3))
    TEST.out.view { it -> "t: ${it}" }
}
Run:
Copy code
$ nextflow run <http://test.nf|test.nf>

 N E X T F L O W   ~  version 25.10.4

Launching `<http://test.nf|test.nf>` [sleepy_hirsch] DSL2 - revision: 0125bc0496

t: 0
t: 2
t: 6
Linting:
Copy code
$ nextflow lint <http://test.nf|test.nf>
Error <http://test.nf:8:41|test.nf:8:41>: Unexpected input: '}'
│   8 |     ch_n_times = n.map { it -> it * i++ }
ā•°     |                                         ^

Nextflow linting complete!
 āŒ 1 file had 1 error
``````
a
See my comment on the original thread
šŸ‘ 1