Skip to content

Commit f532693

Browse files
authored
Merge pull request #99 from mbarbin/init-dunolint
Initiate dunolint workflow
2 parents 4612a86 + 01c7fea commit f532693

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/dunolint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Dunolint Workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "**" # This will match pull requests targeting any branch
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
dunolint-workflows:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Install dunolint
22+
uses: mbarbin/dunolint-actions/setup-dunolint@v1.0.0-alpha.2
23+
with:
24+
dunolint-version: 0.0.20250910-1
25+
26+
- name: Lint Check
27+
uses: mbarbin/dunolint-actions/lint-check@v1.0.0-alpha.2

dunolint

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
(lang dunolint 1.0)
2+
3+
;; Build & vcs
4+
(skip_paths
5+
_build/**
6+
_coverage/**
7+
_opam/**
8+
.git/**)
9+
10+
;; Docusaurus build & Co.
11+
(skip_paths
12+
doc/.docusaurus/**
13+
doc/build/**
14+
doc/node_modules/**)
15+
16+
;; Everything is instrumented
17+
(rule
18+
(enforce (dune (instrumentation (backend bisect_ppx)))))
19+
20+
;; We use linters via pps
21+
(rule
22+
(enforce
23+
(dune
24+
(library
25+
(lint
26+
(pps
27+
(and
28+
(pp ppx_js_style)
29+
(flag (name -allow-let-operators) (param none) (applies_to (pp ppx_js_style)))
30+
(flag (name -check-doc-comments) (param none) (applies_to (pp ppx_js_style)))
31+
)))))))

0 commit comments

Comments
 (0)