Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/linters/.cspell-wordlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"README.md",
".gitignore",
".Rbuildignore",
".mega-linter.yml",
".cspell.json",
".lintr",
".lycheeignore",
"inst/WORDLIST",
"docs/**"
],
Expand Down
8 changes: 6 additions & 2 deletions .github/linters/.cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
"README.md",
".gitignore",
".Rbuildignore",
".mega-linter.yml",
".cspell.json",
".lintr"
],
".lintr",
".lycheeignore",
"inst/WORDLIST",
"docs/**"
],
"patterns": [
{
"name": "code_chunk",
Expand Down
8 changes: 4 additions & 4 deletions .github/linters/.mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
APPLY_FIXES: all
APPLY_FIXES_EVENT: pull_request
APPLY_FIXES_MODE: pull_request
DISABLE_LINTERS:
- REPOSITORY_GIT_DIFF
ADDITIONAL_EXCLUDED_DIRECTORIES:
- dev
SPELL_LYCHEE_FILE_EXTENSIONS: "*"
SPELL_LYCHEE_ARGUMENTS: "--exclude-path man/figures --exclude-path docs"
SPELL_LYCHEE_FILE_EXTENSIONS:
- "*"
SPELL_CSPELL_ANALYZE_FILE_NAMES: false
MARKDOWN_MARKDOWNLINT_ARGUMENTS: "--ignore tests/testthat/_snaps"
MARKDOWN_MARKDOWNLINT_ARGUMENTS: "--ignore tests/testthat/_snaps --ignore LICENSE.md --ignore NEWS.md --ignore README.md --ignore cran-comments.md"
7 changes: 5 additions & 2 deletions .github/workflows/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Checkout
Expand All @@ -41,9 +41,12 @@ jobs:
fi
- name: MegaLinter
id: ml
uses: oxsecurity/megalinter@v7
uses: oxsecurity/megalinter@latest
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
APPLY_FIXES: all
APPLY_FIXES_EVENT: pull_request
APPLY_FIXES_MODE: pull_request
- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: r.workflows
Title: R package workflows
Version: 0.0.1
Version: 0.0.1.9000
Authors@R: c(
person("Cervan", "Girard", , "cgid@novonordisk.com", role = c("aut", "cre")),
person("Aksel", "Thomsen", , "oath@novonordisk.com", role = c("aut"))
Expand Down