Skip to content

Commit a7a63ba

Browse files
authored
fix: no markdown check for testthat snaps (#12)
- Tries to make markdownlint not check snapshots used in `test that::expect_snapshot()` - Adds a `.lycheeignore` file. Right now just with a dead URL generated by favicon
1 parent cea6450 commit a7a63ba

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/linters/. lycheeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://svgjs.dev/svgjs

.github/linters/.mega-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ ADDITIONAL_EXCLUDED_DIRECTORIES:
77
- dev
88
SPELL_LYCHEE_FILE_EXTENSIONS: "*"
99
SPELL_CSPELL_ANALYZE_FILE_NAMES: false
10+
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_INCLUDE: "tests/testthat/_snaps"

.github/workflows/megalinter.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
- name: Copy linting config from r.workflows/main
3232
shell: bash
3333
run: |
34-
curl --output .mega-linter.yml https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.mega-linter.yml
35-
curl --output .lintr https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.lintr
34+
curl --output .mega-linter.yml https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.mega-linter.yml
35+
curl --output .lintr https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.lintr
36+
curl --output .lycheeignore https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.lycheeignore
3637
if [ -e "inst/WORDLIST" ]; then
3738
curl --output .cspell.json https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.cspell-wordlist.json
3839
else

0 commit comments

Comments
 (0)