From 54b0eb82ab18a656841ebff44af3b3fa97a06e27 Mon Sep 17 00:00:00 2001 From: kevinmenden Date: Mon, 22 Mar 2021 18:55:41 +0100 Subject: [PATCH 1/2] remove containsKey() --- nf_core/pipeline-template/lib/NfcoreSchema.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/pipeline-template/lib/NfcoreSchema.groovy b/nf_core/pipeline-template/lib/NfcoreSchema.groovy index 78e8c65d7f..54935ec818 100644 --- a/nf_core/pipeline-template/lib/NfcoreSchema.groovy +++ b/nf_core/pipeline-template/lib/NfcoreSchema.groovy @@ -219,7 +219,7 @@ class NfcoreSchema { } } } - if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').containsKey(ignore_param)) { + if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').keySet().contains(ignore_param)) { rawSchema.get("properties").remove(ignore_param) } if(rawSchema.keySet().contains('required') && rawSchema.required.contains(ignore_param)) { From f15824efa4d30df3d44db83b370299b60892fdbc Mon Sep 17 00:00:00 2001 From: kevinmenden Date: Mon, 22 Mar 2021 19:02:59 +0100 Subject: [PATCH 2/2] add 'params.name' to failing params in nextflow.config lint check --- nf_core/lint/nextflow_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nf_core/lint/nextflow_config.py b/nf_core/lint/nextflow_config.py index b458c257c0..19f10f045c 100644 --- a/nf_core/lint/nextflow_config.py +++ b/nf_core/lint/nextflow_config.py @@ -116,6 +116,7 @@ def nextflow_config(self): "params.container", "params.singleEnd", "params.igenomesIgnore", + "params.name", ] # Remove field that should be ignored according to the linting config