Skip to content

Commit 06a79ac

Browse files
authored
Merge pull request #120 from mbarbin/upgrade-dunolint-preview
Upgrade dunolint preview
2 parents 6361b17 + 63fcda5 commit 06a79ac

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/dunolint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dunolint
2222
uses: mbarbin/dunolint-actions/setup-dunolint@2ba7453b5904f39688a3e656c770a5b9727163d0 # v1.0.0-alpha.3
2323
with:
24-
dunolint-version: 0.0.20251006
24+
dunolint-version: 0.0.20260103
2525

2626
- name: Lint Check
2727
uses: mbarbin/dunolint-actions/lint-check@2ba7453b5904f39688a3e656c770a5b9727163d0 # v1.0.0-alpha.3

dunolint

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
(lang dunolint 1.0)
22

33
;; Everything is instrumented
4+
45
(rule
56
(enforce
67
(dune
78
(instrumentation
89
(backend bisect_ppx)))))
910

1011
;; Test lib naming
12+
1113
(rule
1214
(cond
1315
((path
@@ -18,10 +20,16 @@
1820
(dune
1921
(library
2022
(and
21-
(not (has_field public_name))
22-
(name (is_suffix _test)))))))))
23+
(not
24+
(has_field public_name))
25+
(has_field inline_tests)
26+
(package
27+
(equals volgo-tests))
28+
(name
29+
(is_suffix _test)))))))))
2330

2431
;; Configure the ppx_js_style linter
32+
2533
(rule
2634
(enforce
2735
(dune
@@ -41,6 +49,7 @@
4149
(pp ppx_js_style)))))))))
4250

4351
;; Configure ppx flags
52+
4453
(rule
4554
(cond
4655
((dune
@@ -49,8 +58,7 @@
4958
(or
5059
(pp ppx_compare)
5160
(pp ppx_enumerate)
52-
(pp ppx_sexp_conv)
53-
))))
61+
(pp ppx_sexp_conv)))))
5462
(enforce
5563
(dune
5664
(preprocess
@@ -64,14 +72,16 @@
6472
;; With the exceptions of two libraries we made a deliberate effort not to
6573
;; depend on ppx except in dev mode for the user facing libraries in this
6674
;; project. Let's enforce this going forward.
75+
6776
(rule
6877
(cond
6978
((path
7079
(or
7180
(glob src/volgo-base/*)
7281
(glob src/vcs-test-helpers/*)))
7382
return)
74-
((path (glob src/**))
83+
((path
84+
(glob src/**))
7585
(enforce
7686
(dune
7787
(preprocess no_preprocessing))))))

0 commit comments

Comments
 (0)