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 E800 (missing generate.sh in interop)

+51
+1
test/cram/e800.t/bad/dune-project
··· 1 + (lang dune 3.21)
test/cram/e800.t/bad/foo/test/interop/oracle/scripts/.keep

This is a binary file and will not be displayed.

+1
test/cram/e800.t/good/dune-project
··· 1 + (lang dune 3.21)
+2
test/cram/e800.t/good/foo/test/interop/oracle/scripts/generate.sh
··· 1 + #!/bin/sh 2 + echo regen
+47
test/cram/e800.t/run.t
··· 1 + Test bad example - foo/test/interop/oracle/scripts/ exists but no generate.sh: 2 + $ merlint -B -r E800 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 + [E800] Missing generate.sh (1 issue) 15 + Every interop test must have scripts/generate.sh as the single entry point for 16 + trace regeneration via `dune build @regen-traces`. 17 + - (global) Interop test bad/foo/test/interop/oracle/scripts/ is missing generate.sh 18 + ✓ Code Generation (0 total issues) 19 + 20 + ╭─────────────────┬───────────────────────────╮ 21 + │ Category │ Issues │ 22 + ├─────────────────┼───────────────────────────┤ 23 + │ Interop Testing │ 1 (1 missing generate.sh) │ 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 - foo/test/interop/oracle/scripts/generate.sh exists: 32 + $ merlint -B -r E800 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!