Pieter Moris
12/16/2025, 7:23 PMnf-core pipelines lint command on a new pipeline created using the following template.yaml:
author: me
description: A test pipeline
force: false
is_nfcore: false
name: pipeline_name
org: myorg
outdir: .
skip_features:
- adaptivecard
- codespaces
- gpu
- igenomes
- seqera_platform
- slackreport
- vscode
version: 1.0.0dev
The particular errors are to do with adaptivecard.json , nf-test.yml and slackreport.json.
Any ideas on what I can do to fix this?
``````Pieter Moris
12/16/2025, 7:26 PMmashehu
12/16/2025, 7:57 PMArthur
12/16/2025, 10:42 PMArthur
12/16/2025, 10:43 PMPieter Moris
12/17/2025, 8:26 AMslackreport.json and adaptivecard.json (matching the template yaml), and so these files are not listed in .prettierignore nor in `.nf-core.yml`'s files_unchanged section.
• During the linting check, a new temporary pipeline is created to compare against, using a template yaml with all optional components (i.e. with the slack and adaptive json files), including a .prettierignore file that has all these components listed, and no special rules in its .nf-core.yml .
• Where I got lost:
◦ run_prettier_on_file is run on all files in...the real directory? Or the template? I assume the former, because that's what should be linted?
◦ that function erroneously checks if the current work dir is a git directory instead of the directory storing the files it's iterating through. But if the previous question is the real directory, this should be fine?
◦ why is prettier erroring out on these particular files anyway?
Whilst this can be fixed by passing the correct template yml when creating the temporary pipeline, that would not prevent the unintended side-effect of the prettier lining running because the working directory is the current pipeline directory and not the temporary one.So prettier is not intended to be part of the linting, but is an automatic byproduct of initializing the temporary pipeline created for the linting comparison?
Arthur
12/17/2025, 8:28 AMfiles_unchanged specificallyArthur
12/17/2025, 8:41 AM