• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mbarbin / cubzzle
78%
master: 71%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 01 May 2023 02:11PM UTC
Files 13
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH force-unused-code-warnings
branch: force-unused-code-warnings
CHANGE BRANCH
x
Reset
  • force-unused-code-warnings
  • HEAD
  • climate
  • cmdlang
  • commandlang
  • commandlang.0.0.1
  • main
  • master
  • pplumbing
  • pplumbing-pkgs
  • remove-sexp-value
  • setup-dune-automagic
  • test-dune-pkg-ci
  • tests

18 Jul 2024 12:01PM UTC coverage: 77.707% (+1.9%) from 75.851%
69

Pull #1

github

mbarbin
Enable unused code warnings in ppx generated code

This required two small tweaks:

 - 1. Remove the `[@@deriving fields]` as most of what is generated is
   unused. The only used value is the getter `size`.

There is [@deriving fields ~getters] available, to only generate the
getters, but currently I couldn't find a way to make the ppx only
generate the single [size] getter. Thus resorting to add the getter
manually.

- 2. Upon removing the accessor code, another warning was revealed

File "src/box.ml", lines 3-4, characters 4-3:
3 | ....z_shape : Z_shape.t
4 |   ;.............................................
Error (warning 69 [unused-field]): record field z_shape is never read.

Thus I removed it from the record.
Pull Request #1: Force unused code warnings in ppx generated code

2 of 2 new or added lines in 1 file covered. (100.0%)

244 of 314 relevant lines covered (77.71%)

2169291.51 hits per line

Relevant lines Covered
Build:
Build:
314 RELEVANT LINES 244 COVERED LINES
2169291.51 HITS PER LINE
Source Files on force-unused-code-warnings
  • Tree
  • List 13
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
69 force-unused-code-warnings Enable unused code warnings in ppx generated code This required two small tweaks: - 1. Remove the `[@@deriving fields]` as most of what is generated is unused. The only used value is the getter `size`. There is [@deriving fields ~getters] a... Pull #1 18 Jul 2024 12:09PM UTC mbarbin github
77.71
See All Builds (106)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc