this repo has no description
0
fork

Configure Feed

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

[new release] zanuda (2 packages) (1.1.0)

CHANGES:

### New

- Kakadu/zanuda#13: Add lint that discourages matching a tuple using 'match' expression with single branch
(contributed by @s-khechnev)
- Kakadu/zanuda#18: Add lint about unneeded mutually recursive types
(contributed by @s-khechnev)
- Add command line switch '-skip-level-allow <bool>' to enable/disable lints
with level=Allow. False has higher priority than per-lint command line switch
(for example, `-no-string_concat`)
- Add check for configuration file '.zanuda' in CWD.
- Kakadu/zanuda#22: Add 'reviewer' tool to report lint's a Github review.
(contributed by @s-khechnev)
- Kakadu/zanuda#23: Implement a trial version of the Fix module for auto-correction of lints
(contributed by @Artem-Rzhankoff)
- Kakadu/zanuda#28: Add lint about nested if expressions.
(contributed by @Artem-Rzhankoff)
- Kakadu/zanuda#32: Add lint about constructor names that hide default constructor names
(contributed by @nnemakin)
- Kakadu/zanuda#35: Add lints that detects manual implementations of List.map/fold functions
(contributed by @nnemakin)
- Kakadu/zanuda#50: Propose eta reduction when available (contributed by @jegorpopow)
- Kakadu/zanuda#51: Warn about pattern matching on boolean values (contributed by @jegorpopow)
- Kakadu/zanuda#53: Warn about `"%s"` in formatted strings
- Kakadu/zanuda#54: Detection of unused public declarations. (@Kakadu, initial implementation from @jegorpopow)
At the moment support is kind of flaky: it could be broken by several things.

* Custom `public_name` for library may broke detection of `.cmt[i]` files.
* We [need to](https://github.com/ocaml/dune/issues/9724) do 'dune build @check' to generate all required `cmt` files.
- Kakadu/zanuda#56: Simplify lint about license. We look for required doc-comments anywhere in the file,
not only in the beginning.
- Kakadu/zanuda#60: Skip some checks for some source files (configured via '.zanuda'). Currently this is mutability check and phys_equal check

### Changed

- Kakadu/zanuda#15: Split 'string_concat' lint to check separately patterns 'a^b^c' (level=Allow) and 'List.fold_left (^)' (level=Warn).
(reported by @edwintorok)
- Kakadu/zanuda#16: Calculate test coverage.
- The lint 'mutability_check' now checks for mutability in general: references, mutable record fields, etc.

Kakadu 1b731c12 3bc742f3

+60
+60
packages/zanuda/zanuda.1.1.0/opam
··· 1 + opam-version: "2.0" 2 + synopsis: "Linter for OCaml+dune projects" 3 + description: 4 + "Lints for OCaml projects. Primary usage is for teaching/education" 5 + maintainer: ["kakadu@pm.me"] 6 + authors: ["Kakadu"] 7 + license: "LGPL-3.0-only" 8 + tags: ["lint" "test"] 9 + homepage: "https://github.com/Kakadu/zanuda" 10 + bug-reports: "https://github.com/Kakadu/zanuda/issues" 11 + depends: [ 12 + "dune" {>= "3.4"} 13 + "ocaml" {>= "4.14" & < "5.0"} 14 + "yojson" {>= "2.0.0"} 15 + "sexplib" 16 + "ppx_assert" 17 + "bisect_ppx" 18 + "stdune" 19 + "dune-build-info" 20 + "angstrom" {>= "0.15.0"} 21 + "ppx_expect_nobase" 22 + "ppx_optcomp" 23 + "base" {with-test} 24 + "ppx_assert" {with-test} 25 + "ppx_inline_test" {with-test} 26 + "ppx_expect" {with-test} 27 + "ppx_fields_conv" {with-test} 28 + "ppx_deriving" {with-test} 29 + "ppx_blob" {with-test} 30 + "ppx_show" {with-test} 31 + "menhir" {with-test} 32 + "ocamlformat" {= "0.26.2" & dev} 33 + "odoc" {with-doc} 34 + "odig" {with-doc} 35 + ] 36 + build: [ 37 + ["dune" "subst"] {dev} 38 + [ 39 + "dune" 40 + "build" 41 + "-p" 42 + name 43 + "-j" 44 + jobs 45 + "@install" 46 + "@runtest" {with-test} 47 + "@doc" {with-doc} 48 + ] 49 + ] 50 + dev-repo: "git+https://github.com/Kakadu/zanuda.git" 51 + url { 52 + src: 53 + "https://github.com/Kakadu/zanuda/archive/refs/tags/v1.1.0.tar.gz" 54 + checksum: [ 55 + "sha256=5b7deabdb016858a0e19ddfb7647f628a243065f88c5ae9f4c362500d51cea7a" 56 + "sha512=ceb852103fbbb88b5eeb8130bc7aa8bffe7130df6645d3298e1bb9b8f7e8f6c7b323ccc474cf92a08d28e7b80e9a96d68fd53de2e51c7c0e7d8e3e82e436b4bc" 57 + ] 58 + } 59 + x-commit-hash: "9cc128a139fc7d5f08547e910aaea1573d3019b9" 60 +