|
| 1 | +opam-version: "2.0" |
| 2 | +synopsis: "A library to create dunolint configs" |
| 3 | +maintainer: ["Mathieu Barbin < [email protected]>"] |
| 4 | +authors: ["Mathieu Barbin"] |
| 5 | +license: "LGPL-3.0-or-later WITH LGPL-3.0-linking-exception" |
| 6 | +homepage: "https://github.com/mbarbin/dunolint" |
| 7 | +doc: "https://mbarbin.github.io/dunolint/" |
| 8 | +bug-reports: "https://github.com/mbarbin/dunolint/issues" |
| 9 | +depends: [ |
| 10 | + "dune" {>= "3.17"} |
| 11 | + "ocaml" {>= "5.3"} |
| 12 | + "base" {>= "v0.17"} |
| 13 | + "dune-glob" {>= "3.17"} |
| 14 | + "fpath-base" {>= "0.2.2"} |
| 15 | + "ppx_compare" {>= "v0.17"} |
| 16 | + "ppx_enumerate" {>= "v0.17"} |
| 17 | + "ppx_hash" {>= "v0.17"} |
| 18 | + "ppx_here" {>= "v0.17"} |
| 19 | + "ppx_let" {>= "v0.17"} |
| 20 | + "ppx_sexp_conv" {>= "v0.17"} |
| 21 | + "ppx_sexp_value" {>= "v0.17"} |
| 22 | + "ppxlib" {>= "0.35.0"} |
| 23 | + "re" {>= "1.8.0"} |
| 24 | + "sexplib0" {>= "v0.17"} |
| 25 | + "odoc" {with-doc} |
| 26 | +] |
| 27 | +build: [ |
| 28 | + ["dune" "subst"] {dev} |
| 29 | + [ |
| 30 | + "dune" |
| 31 | + "build" |
| 32 | + "-p" |
| 33 | + name |
| 34 | + "-j" |
| 35 | + jobs |
| 36 | + "@install" |
| 37 | + "@runtest" {with-test} |
| 38 | + "@doc" {with-doc} |
| 39 | + ] |
| 40 | +] |
| 41 | +dev-repo: "git+https://github.com/mbarbin/dunolint.git" |
| 42 | +description: """\ |
| 43 | + |
| 44 | +[dunolint] is a set of OCaml libraries and a cli tool to lint and help |
| 45 | +manage files in (large) dune projects. |
| 46 | + |
| 47 | +[dunolint-lib] is the package you need as a user to define a dunolint |
| 48 | +config, without pulling all the dependencies required by the linter |
| 49 | +engine and command line. |
| 50 | + |
| 51 | +It defines a configuration language in which you can express linting |
| 52 | +invariants for your projects. The tool will enforce these invariants, |
| 53 | +applying global and systematic changes automatically when able, and |
| 54 | +help with general ergonomics questions. |
| 55 | + |
| 56 | +For example: "I want for all libs in this subdirectory to enable |
| 57 | +`bisect_ppx`, please go patch my dune files". Or, "I would like all |
| 58 | +libraries that verify this particular predicate to supply the ppx flag |
| 59 | +`-unused-code-warnings=force`", and more. |
| 60 | + |
| 61 | +You can setup [dunolint] as part of your CI checks to help enforcing |
| 62 | +properties and linting checks going forward. |
| 63 | + |
| 64 | +""" |
| 65 | +tags: [ "dune" "linter" ] |
| 66 | +x-maintenance-intent: [ "(latest)" ] |
| 67 | +url { |
| 68 | + src: |
| 69 | + "https://github.com/mbarbin/dunolint/releases/download/0.0.20250310/dunolint-0.0.20250310.tbz" |
| 70 | + checksum: [ |
| 71 | + "sha256=b44119c96aeabb960e852711c2f20ae43f0011e796f05e012141ba980a5b58f6" |
| 72 | + "sha512=5bf76732adc940db6cac0875e94c3eaff436288faba95388b9675c68b3f30f5362e01f289fc8a096325f7db812ace273773a1e051ab7d7ace3b8db4a57a0e070" |
| 73 | + ] |
| 74 | +} |
| 75 | +x-commit-hash: "8c0c34d8f7c250aff52881a2fe25569488c8dbf5" |
0 commit comments