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

umputun / tg-spam / 29611674358
84%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2026 08:38PM UTC
Jobs 1
Files 42
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

17 Jul 2026 08:33PM UTC coverage: 83.742% (+0.02%) from 83.723%
29611674358

push

github

web-flow
feat: add optional --meta.image-text-len for image-only check (#430)

the image-only meta check reused `--min-msg-len` as its caption-length threshold, coupling two unrelated knobs. A short caption exactly at the `--min-msg-len` boundary slips through, because the check compares with strict `<`. Seen in production: an image ad with a 15-rune caption against `MIN_MSG_LEN=15` passed every content check, since the spam pitch was baked into the image pixels and only the short caption is visible to the classifier and LLM.

this adds `--meta.image-text-len` / `META_IMAGE_TEXT_LEN` (config `Meta.ImageTextLen`) to set a separate minimum caption length for image messages. `0` (the default) falls back to `--min-msg-len`, so existing behavior is unchanged unless you set it.

wired through every config layer: CLI/env, the CLI-to-Settings mapping, DB-backed config (with a `zeroAwarePaths` entry so an explicit `0` survives merges), and the web settings UI (form input plus read-only row, `min="0"` and a `Validate` bound that rejects negatives). Covered by unit tests for the mapping, the web form parse, and the `makeDetector` override-vs-fallback selection, plus an e2e UI round-trip, and documented in both README sections.

13 of 15 new or added lines in 4 files covered. (86.67%)

1 existing line in 1 file now uncovered.

8921 of 10653 relevant lines covered (83.74%)

254.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.41
-2.05% app/config/settings.go

Coverage Regressions

Lines Coverage ∆ File
1
85.54
-0.1% app/webapi/webapi.go
Jobs
ID Job ID Ran Files Coverage
1 29611674358.1 17 Jul 2026 08:38PM UTC 42
83.74
GitHub Action Run
Source Files on build 29611674358
  • Tree
  • List 42
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0990f8ef on github
  • Prev Build on master (#29400565840)
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