diff --git a/tests/v1-complex-names-dsl2.nf b/tests/v1-complex-names-dsl2.nf index 90e6cb0fa5..6bca50df81 100644 --- a/tests/v1-complex-names-dsl2.nf +++ b/tests/v1-complex-names-dsl2.nf @@ -1,4 +1,5 @@ #!/usr/bin/env nextflow +// parser_v1: dollar slashy strings process foo { publishDir 'foo', mode: 'copy' diff --git a/tests/v1-env.nf b/tests/v1-env.nf index e33b6e297d..dea9706e28 100644 --- a/tests/v1-env.nf +++ b/tests/v1-env.nf @@ -1,19 +1,6 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: unquoted env inputs/outputs +// parser_v1: implicit process script section process foo { output: diff --git a/tests/v1-error-finish.nf b/tests/v1-error-finish.nf index 8f70d60605..c07d2ba6e0 100644 --- a/tests/v1-error-finish.nf +++ b/tests/v1-error-finish.nf @@ -1,19 +1,5 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: mixing script declarations and statements process foo { debug true diff --git a/tests/v1-output-globs.nf b/tests/v1-output-globs.nf index 836d3323a8..a410229d58 100644 --- a/tests/v1-output-globs.nf +++ b/tests/v1-output-globs.nf @@ -1,3 +1,4 @@ +// parser_v1: mixing script declarations and statements def CMD = """ mkdir -p a/a b/b c/c diff --git a/tests/v1-output-val-dsl2.nf b/tests/v1-output-val-dsl2.nf index e769f9e4d1..24280994f4 100644 --- a/tests/v1-output-val-dsl2.nf +++ b/tests/v1-output-val-dsl2.nf @@ -1,4 +1,5 @@ #!/usr/bin/env nextflow +// parser_v1: mixing script declarations and statements x = 100 y = 200 diff --git a/tests/v1-publish-saveas.nf b/tests/v1-publish-saveas.nf index 7b760db1cb..8a6ddc356f 100644 --- a/tests/v1-publish-saveas.nf +++ b/tests/v1-publish-saveas.nf @@ -1,19 +1,7 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: implicit environment variables +// parser_v1: method pointers +// parser_v1: implicit process script section def rule( file ) { if( file == 'file_1.txt' ) diff --git a/tests/v1-singleton.nf b/tests/v1-singleton.nf index 70f4bde70a..26af43f6cd 100644 --- a/tests/v1-singleton.nf +++ b/tests/v1-singleton.nf @@ -1,19 +1,6 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: unquoted file output +// parser_v1: implicit process script section process foo { output: diff --git a/tests/v1-subworkflow-dsl2.nf b/tests/v1-subworkflow-dsl2.nf index 27d70ccc09..e591e9e5aa 100644 --- a/tests/v1-subworkflow-dsl2.nf +++ b/tests/v1-subworkflow-dsl2.nf @@ -1,4 +1,5 @@ #!/bin/bash nextflow +// parser_v1: implicit workflow main section process foo { output: stdout diff --git a/tests/v1-task-retry.nf b/tests/v1-task-retry.nf index 174db33737..ce2fe71f74 100644 --- a/tests/v1-task-retry.nf +++ b/tests/v1-task-retry.nf @@ -1,19 +1,5 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: implicit environment variables workflow { foo() diff --git a/tests/v1-tuples-dsl2.nf b/tests/v1-tuples-dsl2.nf index ceeb5e1d24..e4eebd4893 100644 --- a/tests/v1-tuples-dsl2.nf +++ b/tests/v1-tuples-dsl2.nf @@ -1,4 +1,5 @@ #!/usr/bin/env nextflow +// parser_v1: multi-line slashy strings process touch { diff --git a/tests/v1-when-block.nf b/tests/v1-when-block.nf index 3b6e685b7f..8f97514e45 100644 --- a/tests/v1-when-block.nf +++ b/tests/v1-when-block.nf @@ -1,19 +1,5 @@ #!/usr/bin/env nextflow -/* - * Copyright 2013-2024, Seqera Labs - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// parser_v1: mixing script declarations and statements items = [0,1,2,3,4] decode = ['zero','one','two','three','fourth']