Opinionated OCaml linter with Merlin integration for code quality, naming conventions, and style checks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

merlint: add cram test for E810 (missing regen-traces alias)

+57
+1
test/cram/e810.t/bad/dune-project
··· 1 + (lang dune 3.21)
+2
test/cram/e810.t/bad/foo/test/interop/oracle/dune
··· 1 + (test 2 + (name test))
+1
test/cram/e810.t/good/dune-project
··· 1 + (lang dune 3.21)
+6
test/cram/e810.t/good/foo/test/interop/oracle/dune
··· 1 + (test 2 + (name test)) 3 + 4 + (rule 5 + (alias regen-traces) 6 + (action (run sh scripts/generate.sh)))
+47
test/cram/e810.t/run.t
··· 1 + Test bad example - dune missing regen-traces alias: 2 + $ merlint -B -r E810 bad/ 3 + Running merlint analysis... 4 + 5 + Analyzing 0 files 6 + 7 + ✓ Code Quality (0 total issues) 8 + ✓ Code Style (0 total issues) 9 + ✓ Naming Conventions (0 total issues) 10 + ✓ Documentation (0 total issues) 11 + ✓ Project Structure (0 total issues) 12 + ✓ Test Quality (0 total issues) 13 + ✗ Interop Testing (1 total issues) 14 + [E810] Missing regen-traces alias (1 issue) 15 + Every interop test dune file must define a regen-traces alias as the single 16 + trigger for refreshing traces: `(rule (alias regen-traces) ...)`. 17 + - (global) Interop test bad/foo/test/interop/oracle/dune missing regen-traces alias 18 + ✓ Code Generation (0 total issues) 19 + 20 + ╭─────────────────┬──────────────────────────────────╮ 21 + │ Category │ Issues │ 22 + ├─────────────────┼──────────────────────────────────┤ 23 + │ Interop Testing │ 1 (1 missing regen-traces alias) │ 24 + ╰─────────────────┴──────────────────────────────────╯ 25 + 26 + 27 + Summary: ✗ 1 total issue (applied 1 rule) 28 + ✗ Some checks failed. See details above. 29 + [1] 30 + 31 + Test good example - dune defines regen-traces alias: 32 + $ merlint -B -r E810 good/ 33 + Running merlint analysis... 34 + 35 + Analyzing 0 files 36 + 37 + ✓ Code Quality (0 total issues) 38 + ✓ Code Style (0 total issues) 39 + ✓ Naming Conventions (0 total issues) 40 + ✓ Documentation (0 total issues) 41 + ✓ Project Structure (0 total issues) 42 + ✓ Test Quality (0 total issues) 43 + ✓ Interop Testing (0 total issues) 44 + ✓ Code Generation (0 total issues) 45 + 46 + Summary: ✓ 0 total issues (applied 1 rule) 47 + ✓ All checks passed!