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

KarpelesLab / gofreetype / 24380230612
61%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 04:00AM UTC
Jobs 1
Files 71
Run time 1min
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

14 Apr 2026 03:51AM UTC coverage: 53.569% (+0.07%) from 53.495%
24380230612

push

github

MagicalTux
Fix every staticcheck finding; wire staticcheck into CI

Sweep across the whole tree to silence staticcheck:

- ST1005 (capitalized error strings): cff/cff.go's wrapped errors now
  use lowercase "name INDEX", "top DICT", "private DICT", etc.
- U1000 (unused code):
  * cff/charstring.go: subrFrame struct (code + pc fields never read)
    replaced by a maxSubrDepth constant; the [10]subrFrame array was
    there only for its length.
  * cff/index.go: local u32 helper removed (cff package already has
    one in dict.go).
  * raster/geom.go: pRot135CW / pRot135CCW helpers removed — never
    referenced.
  * shape/shape.go: gdefOf accessor dropped; it wasn't reachable.
  * truetype/face.go: glyphCacheEntry struct removed — left over
    from the pre-LRU cache.
- SA1019 (deprecated): io/ioutil -> os; image.ZP -> image.Point{} in
  truetype tests, freetype.go, freetype_test.go.
- SA4006 (values never used):
  * truetype/hint.go opMD0/opMD1: restored v as explicit var rather
    than the triple-assignment where the initial value was dead.
  * truetype/truetype.go IndexWithVariation: dropped stale j = h + 1
    write before a break.
  * truetype_test.go scaling parser: used _ where prefix / s are
    never read again.
- SA9004 (only first constant has explicit type): every NameID*
  constant now declares the type explicitly.
- type1/parse_test.go: removed the dead initial csAPlain literal and
  the unused encNum1 / encNumNeg1 helpers that were scaffolding
  artifacts from an earlier draft.

CI gains a staticcheck step so regressions surface in PRs.

go vet and go test all still pass across every package.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

3 of 14 new or added lines in 4 files covered. (21.43%)

5922 of 11055 relevant lines covered (53.57%)

1507.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
50.94
0.0% cff/cff.go
3
58.44
-0.09% truetype/hint.go
1
17.62
0.0% freetype.go
Jobs
ID Job ID Ran Files Coverage
1 24380230612.1 14 Apr 2026 04:00AM UTC 71
53.57
GitHub Action Run
Source Files on build 24380230612
  • Tree
  • List 71
  • Changed 9
  • Source Changed 9
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24380230612
  • 0f4f7da4 on github
  • Prev Build on master (#24379885746)
  • Next Build on master (#24380432725)
  • Delete
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

© 2026 Coveralls, Inc