Experimental analyses for ReScript and OCaml: globally dead values/types, exception analysis, and termination analysis.
-set-exit-code
to return an exit code (1) when at least one issue is reported.-json
option to emit descriptions of issues, and actions to resolve them. For editor integration.-config
by defaultdce
when "reanalyze"
is not present in bsconfig.json
.[@warning "-unused-value-declaration"]
.@dead
.-config
to read configuration settings under "reanalyze"
in bsconfig.json
.
Example:{
"reanalyze": {
"analysis": ["dce", "exception"],
"suppress": ["src/ToSuppress.res"],
"unsuppress": ["this", "that"]
}
}
@raises([A,B])
.@live
.@live
or @genType
.@live
or dead
at toplevel in a type declaration. Equivalent to annotating all the record fields / variant cases.-externals
to turn back on.Mylib.Foo
is not found try Foo
.