Skip to content

fix: correct always-true lint condition and template doc typos#4324

Open
znorgaard wants to merge 2 commits into
nf-core:devfrom
znorgaard:zn-template-lint-doc-fixes
Open

fix: correct always-true lint condition and template doc typos#4324
znorgaard wants to merge 2 commits into
nf-core:devfrom
znorgaard:zn-template-lint-doc-fixes

Conversation

@znorgaard

@znorgaard znorgaard commented Jun 12, 2026

Copy link
Copy Markdown

Description

Small template fixes discovered while syncing a fastquourm to the 4.0.2 template. nf-core/fastquorum#150

  • .github/workflows/linting.yml — the non-release lint step guarded on if: ${{ github.base_ref != 'master' || github.base_ref != 'main' }}, which is always true (a value cannot equal both master and main, so at least one != always holds). As a result the non-release nf-core pipelines lint step also ran on release PRs to main/master, alongside the --release step. Changed to && so it runs only when the base is neither.
  • docs/CONTRIBUTING.md — fixed the broken [Lint](lint) checklist link to [Lint](#lint-tests) (the correct anchor, already used by the matching item earlier in the same file); removed a duplicate "the the".
  • docs/usage.md — removed a stray leading space inside the Wave Nextflow-version code span (` 24.03.0-edge``24.03.0-edge`).

No lint-rule logic or template structure changed; these are a CI-condition correctness fix and doc typo fixes.

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

znorgaard and others added 2 commits June 12, 2026 15:26
- linting.yml: the non-release lint step used `base_ref != 'master' ||
  base_ref != 'main'`, which is always true (a value can't equal both),
  so the non-release lint also ran on release PRs to main/master. Use
  `&&` so it runs only when the base is neither.
- CONTRIBUTING.md: fix broken `[Lint](lint)` checklist link -> `#lint-tests`
  (matches the correct anchor used earlier in the same file); remove a
  duplicate "the the".
- usage.md: remove stray leading space inside the Wave Nextflow-version
  code span (`` ` 24.03.0-edge` `` -> `` `24.03.0-edge` ``).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@znorgaard znorgaard marked this pull request as ready for review June 12, 2026 22:38
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.41%. Comparing base (df086de) to head (b3ee0b9).

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant