Skip to content

Commit 5d9d21e

Browse files
authored
test_branch: Use --no-comment-check (#2721)
* test_branch: Use `--no-comment-check` A test case added a misplaced doc-string, causing a fatal warning and failing `test_branch` in CI. This passes `--no-comment-check` to ignore this error.
1 parent 1851bc4 commit 5d9d21e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/Conf.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,10 @@ module Formatting = struct
10681068

10691069
let module_indent =
10701070
let docv = "COLS" in
1071-
let doc = "Indentation of items within struct ... end and sig ... end ($(docv) columns)." in
1071+
let doc =
1072+
"Indentation of items within struct ... end and sig ... end ($(docv) \
1073+
columns)."
1074+
in
10721075
let names = ["module-indent"] in
10731076
Decl.int ~names ~default ~doc ~docv ~kind
10741077
(fun conf elt -> update conf ~f:(fun f -> {f with module_indent= elt}))

test-extra/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ FIND_ARGS= \
102102

103103
.PHONY: test_inplace
104104
test_inplace:
105-
@find $(DIRS) $(FIND_ARGS) | parallel "$(OCAMLFORMAT_EXE)" --no-version-check --enable-outside-detected-project --quiet -i
105+
@find $(DIRS) $(FIND_ARGS) | parallel "$(OCAMLFORMAT_EXE)" --no-version-check --enable-outside-detected-project --no-comment-check --quiet -i
106106

107107
.PHONY: test_extra
108108
test_extra:
109-
@-find $(XDIRS) $(FIND_ARGS) | parallel "$(OCAMLFORMAT_EXE)" --no-version-check --enable-outside-detected-project --quiet -i
109+
@-find $(XDIRS) $(FIND_ARGS) | parallel "$(OCAMLFORMAT_EXE)" --no-version-check --enable-outside-detected-project --no-comment-check --quiet -i
110110

111111
.PHONY: test_margins
112112
test_margins:

0 commit comments

Comments
 (0)