Skip to content

Commit d111a3f

Browse files
ci(megalinter): switch to practicalli zensical custom flavor
1 parent adbb905 commit d111a3f

3 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎.github/config/lychee.toml‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
2-
# ----------------------------------------
1+
# -------------------------------------- #
32
# Base URL or website root directory to check relative URLs.
4-
base = "https://practical.li/clojure/"
3+
base_url = "https://practical.li/clojure/"
54

65
# Only test links with the given schemes (e.g. https).
76
# Omit to check links with any other scheme.
87
# At the moment, we support http, https, file, and mailto.
98
scheme = ["https"]
9+
# -------------------------------------- #
10+
11+
# -- Cache -------------------------------
12+
13+
# Enable link caching. This can be helpful to avoid checking the same links on
14+
# multiple runs.
15+
cache = true
16+
# -------------------------------------- #
1017

11-
# ----------------------------------------
12-
# Exclusions
18+
# -- Exclusions ------------------------ #
1319

1420
# Exclude URLs and mail addresses from checking (supports regex).
15-
exclude = ['^https://127.0.0.0', '^https://www\.linkedin\.com', '^https://web\.archive\.org/web/']
21+
exclude = ['^https://(www\.)?linkedin\.com', '^https://127.0.0.0', '^https://web\.archive\.org/web/']
1622

1723
# Exclude these filesystem paths from getting checked.
18-
exclude_path = ["mkdocs.yml", "overrides", "includes", ".github", ".git"]
24+
exclude_path = ["mkdocs.yml", "assets", "overrides", "includes", ".github", ".git"]
1925

2026
# Exclude all private IPs from checking.
2127
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
@@ -24,4 +30,4 @@ exclude_all_private = true
2430

2531
# Check mail addresses
2632
include_mail = false
27-
# ----------------------------------------
33+
# -------------------------------------- #

‎.github/workflows/megalinter.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
- name: MegaLinter Run
4242
id: ml
4343
## latest release of major version
44-
uses: oxsecurity/megalinter/flavors/documentation@v9
44+
# uses: oxsecurity/megalinter/flavors/documentation@v9
45+
uses: practicalli-johnny/megalinter-custom-flavor-zensical@main
4546
env:
4647
# ADD CUSTOM ENV VARIABLES OR DEFINE IN MEGALINTER_CONFIG file
47-
MEGALINTER_CONFIG: .github/config/megalinter.yaml
48+
MEGALINTER_CONFIG: .github/config/mega-linter.yaml
4849

4950
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # report individual linter status
5051
# Validate all source when push on main, else just the git diff with live.

0 commit comments

Comments
 (0)