package crs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file diagnostic.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(****************************************************************************)
(*  ocaml-reviewdog - A reviewdog diagnostics json serializer for OCaml     *)
(*  SPDX-FileCopyrightText: 2025 Mathieu Barbin <mathieu.barbin@gmail.com>  *)
(*  SPDX-License-Identifier: MIT                                            *)
(****************************************************************************)

type t =
  { message : string
  ; location : Location.t
  ; severity : Severity.t option [@yojson.option]
  ; source : Source.t option [@yojson.option]
  ; code : Code.t option [@yojson.option]
  ; suggestions : Suggestion.t list option [@yojson.option]
  ; original_output : string option [@yojson.option] [@key "originalOutput"]
  ; related_locations : Related_location.t list option
        [@yojson.option] [@key "relatedLocations"]
  }
[@@deriving equal, compare, yojson]
OCaml

Innovation. Community. Security.