Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions check/classic/classic.exp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down
14 changes: 11 additions & 3 deletions check/classic/classic.ref
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -656,7 +664,7 @@ Nothing else to report in this section
--------------------------------------------------------------------------------


Total: 557
Success: 550
Total: 562
Success: 555
Failed: 7
Ratio: 98.7432675045%
Ratio: 98.7544483986%
8 changes: 8 additions & 0 deletions check/internal/internal.exp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down
14 changes: 11 additions & 3 deletions check/internal/internal.ref
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -611,7 +619,7 @@ Nothing else to report in this section
--------------------------------------------------------------------------------


Total: 515
Success: 508
Total: 520
Success: 513
Failed: 7
Ratio: 98.640776699%
Ratio: 98.6538461538%
23 changes: 23 additions & 0 deletions check/threshold-1/threshold-1.exp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:2: hello
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:3: goodbye

./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:6: gadt_of_int
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:8: float_opt_of_gadt

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:7: get_left_opt

./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:4: poly_of_int
./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:6: float_opt_of_poly

./examples/docs/methods/code_constructs/class/class_bin.ml:4: push_n_times

./examples/docs/methods/code_constructs/class_type/class_type_bin.ml:4: push_n_times
Expand Down Expand Up @@ -542,6 +550,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -614,6 +630,13 @@ Nothing else to report in this section

.>-> ALMOST UNUSED CONSTRUCTORS/RECORD FIELDS: Called 1 time(s):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:3: gadt.Int

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:3: t.Both

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Left
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.right

./examples/using_dune/preprocessed_lib/preprocessed.mli:16: constructors.Internally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:17: constructors.Externally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:25: record.internally_used
Expand Down
29 changes: 26 additions & 3 deletions check/threshold-1/threshold-1.ref
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:2: hello
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:3: goodbye

./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:6: gadt_of_int
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:8: float_opt_of_gadt

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:7: get_left_opt

./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:4: poly_of_int
./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:6: float_opt_of_poly

./examples/docs/methods/code_constructs/class/class_bin.ml:4: push_n_times

./examples/docs/methods/code_constructs/class_type/class_type_bin.ml:4: push_n_times
Expand Down Expand Up @@ -546,6 +554,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -618,6 +634,13 @@ Nothing else to report in this section

.>-> ALMOST UNUSED CONSTRUCTORS/RECORD FIELDS: Called 1 time(s):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:3: gadt.Int

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:3: t.Both

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Left
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.right

./examples/using_dune/preprocessed_lib/preprocessed.mli:16: constructors.Internally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:17: constructors.Externally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:25: record.internally_used
Expand Down Expand Up @@ -1033,7 +1056,7 @@ Nothing else to report in this section
--------------------------------------------------------------------------------


Total: 875
Success: 867
Total: 889
Success: 881
Failed: 8
Ratio: 99.0857142857%
Ratio: 99.1001124859%
23 changes: 23 additions & 0 deletions check/threshold-3-0.5/threshold-3-0.5.exp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:2: hello
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:3: goodbye

./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:6: gadt_of_int
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:8: float_opt_of_gadt

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:7: get_left_opt

./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:4: poly_of_int
./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:6: float_opt_of_poly

./examples/docs/methods/code_constructs/class/class_bin.ml:4: push_n_times

./examples/docs/methods/code_constructs/class_type/class_type_bin.ml:4: push_n_times
Expand Down Expand Up @@ -719,6 +727,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -791,6 +807,13 @@ Nothing else to report in this section

.>-> ALMOST UNUSED CONSTRUCTORS/RECORD FIELDS: Called 1 time(s):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:3: gadt.Int

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:3: t.Both

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Left
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.right

./examples/using_dune/preprocessed_lib/preprocessed.mli:16: constructors.Internally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:17: constructors.Externally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:25: record.internally_used
Expand Down
29 changes: 26 additions & 3 deletions check/threshold-3-0.5/threshold-3-0.5.ref
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:2: hello
./examples/docs/exported_values/hello_world/hello_world_without_intf.ml:3: goodbye

./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:6: gadt_of_int
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:8: float_opt_of_gadt

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:7: get_left_opt

./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:4: poly_of_int
./examples/docs/fields_and_constructors/code_constructs/polymorphic_variant/polymorphic_variant_lib.mli:6: float_opt_of_poly

./examples/docs/methods/code_constructs/class/class_bin.ml:4: push_n_times

./examples/docs/methods/code_constructs/class_type/class_type_bin.ml:4: push_n_times
Expand Down Expand Up @@ -723,6 +731,14 @@ Nothing else to report in this section

.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:4: gadt.Float

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:4: t.Left
./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:5: t.Right

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Right
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.left

./examples/using_dune/preprocessed_lib/preprocessed.mli:14: constructors.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:19: constr_with_eq.Unused
./examples/using_dune/preprocessed_lib/preprocessed.mli:23: record.unused
Expand Down Expand Up @@ -795,6 +811,13 @@ Nothing else to report in this section

.>-> ALMOST UNUSED CONSTRUCTORS/RECORD FIELDS: Called 1 time(s):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./examples/docs/fields_and_constructors/code_constructs/gadt/gadt_lib.mli:3: gadt.Int

./examples/docs/fields_and_constructors/code_constructs/inline_record/inline_record_lib.mli:3: t.Both

./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:2: either.Left
./examples/docs/fields_and_constructors/code_constructs/polymorphic_type/polymorphic_type_lib.mli:3: both.right

./examples/using_dune/preprocessed_lib/preprocessed.mli:16: constructors.Internally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:17: constructors.Externally_used
./examples/using_dune/preprocessed_lib/preprocessed.mli:25: record.internally_used
Expand Down Expand Up @@ -1432,7 +1455,7 @@ Nothing else to report in this section
--------------------------------------------------------------------------------


Total: 1192
Success: 1184
Total: 1206
Success: 1198
Failed: 8
Ratio: 99.3288590604%
Ratio: 99.3366500829%
1 change: 1 addition & 0 deletions docs/USER_DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This documentation is split accross different topics:
- [Usage](USAGE.md) describes the usage of the `dead_code_analyzer` and its options.
- [Exported Values](exported_values/EXPORTED_VALUES.md) describes the semantics and usage of the "unused exported values" report section, and provides examples.
- [Methods](methods/METHODS.md) describes the semantics and usage of the "unused methods" report section, and provides examples.
- [Constructors/Record fields](fields_and_constructors/FIELDS_AND_CONSTRUCTORS.md) describes the semantics and usage of the "unused constructors/record fields" report section, and provides examples.


## Footnotes
Loading